aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorBill Pemberton <wfp5p@virginia.edu>2009-03-16 22:18:54 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-04-03 14:54:15 -0700
commite21ffa44f55ebf7f6f7d1e60a49463ca579c056a (patch)
treec80f7dd666bddd292ff300acbbe220cc7f525680 /drivers
parent404d108d8f5968f47ba72417a3532f213e020914 (diff)
Staging: comedi: serial2002: Remove serial2002_private typedef
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/comedi/drivers/serial2002.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/staging/comedi/drivers/serial2002.c b/drivers/staging/comedi/drivers/serial2002.c
index 0e48887b55c..844fd5e2e3a 100644
--- a/drivers/staging/comedi/drivers/serial2002.c
+++ b/drivers/staging/comedi/drivers/serial2002.c
@@ -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;
@@ -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);
@@ -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;