Skip to content

Commit

Permalink
Staging: comedi: serial2002: Remove serial2002_private typedef
Browse files Browse the repository at this point in the history
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent 404d108 commit e21ffa4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions drivers/staging/comedi/drivers/serial2002.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ struct serial2002_range_table_t {
};


typedef struct {
struct serial2002_private {

int port; // /dev/ttyS<port>
int speed; // baudrate
struct file *tty;
Expand All @@ -79,13 +80,14 @@ typedef struct {
unsigned char analog_out_mapping[32];
unsigned char encoder_in_mapping[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
* 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_detach(struct comedi_device * dev);
Expand Down Expand Up @@ -786,7 +788,7 @@ static int serial2002_attach(struct comedi_device * dev, struct comedi_devconfig

printk("comedi%d: serial2002: ", dev->minor);
dev->board_name = thisboard->name;
if (alloc_private(dev, sizeof(serial2002_private)) < 0) {
if (alloc_private(dev, sizeof(struct serial2002_private)) < 0) {
return -ENOMEM;
}
dev->open = serial_2002_open;
Expand Down

0 comments on commit e21ffa4

Please sign in to comment.