Commit e21ffa44 authored by Bill Pemberton's avatar Bill Pemberton Committed by Greg Kroah-Hartman

Staging: comedi: serial2002: Remove serial2002_private typedef

Signed-off-by: default avatarBill Pemberton <wfp5p@virginia.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 404d108d
...@@ -68,7 +68,8 @@ struct serial2002_range_table_t { ...@@ -68,7 +68,8 @@ struct serial2002_range_table_t {
}; };
typedef struct { struct serial2002_private {
int port; // /dev/ttyS<port> int port; // /dev/ttyS<port>
int speed; // baudrate int speed; // baudrate
struct file *tty; struct file *tty;
...@@ -79,13 +80,14 @@ typedef struct { ...@@ -79,13 +80,14 @@ typedef struct {
unsigned char analog_out_mapping[32]; unsigned char analog_out_mapping[32];
unsigned char encoder_in_mapping[32]; unsigned char encoder_in_mapping[32];
struct serial2002_range_table_t in_range[32], out_range[32]; struct serial2002_range_table_t in_range[32], out_range[32];
} serial2002_private; };
/* /*
* most drivers define the following macro to make it easy to * most drivers define the following macro to make it easy to
* access the private structure. * access the private structure.
*/ */
#define devpriv ((serial2002_private *)dev->private) #define devpriv ((struct serial2002_private *)dev->private)
static int serial2002_attach(struct comedi_device * dev, struct comedi_devconfig * it); static int serial2002_attach(struct comedi_device * dev, struct comedi_devconfig * it);
static int serial2002_detach(struct comedi_device * dev); static int serial2002_detach(struct comedi_device * dev);
...@@ -786,7 +788,7 @@ static int serial2002_attach(struct comedi_device * dev, struct comedi_devconfig ...@@ -786,7 +788,7 @@ static int serial2002_attach(struct comedi_device * dev, struct comedi_devconfig
printk("comedi%d: serial2002: ", dev->minor); printk("comedi%d: serial2002: ", dev->minor);
dev->board_name = thisboard->name; dev->board_name = thisboard->name;
if (alloc_private(dev, sizeof(serial2002_private)) < 0) { if (alloc_private(dev, sizeof(struct serial2002_private)) < 0) {
return -ENOMEM; return -ENOMEM;
} }
dev->open = serial_2002_open; dev->open = serial_2002_open;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment