diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2009-03-16 22:19:26 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-04-03 14:54:11 -0700 |
commit | e2b523aab1b04e7edc092588abbafa67f560deb4 (patch) | |
tree | 0622503b77a8d03a607d2fbe112c46cdea6f5c97 | |
parent | 201007e8bc7b3e94be823eda5a684199152410d1 (diff) |
Staging: comedi: Remove config_t typedef
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/comedi/drivers/serial2002.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/drivers/staging/comedi/drivers/serial2002.c b/drivers/staging/comedi/drivers/serial2002.c index 91fc281c1e9f..77c234533005 100644 --- a/drivers/staging/comedi/drivers/serial2002.c +++ b/drivers/staging/comedi/drivers/serial2002.c @@ -401,16 +401,18 @@ static void serial_2002_open(struct comedi_device * dev) printk("serial_2002: file open error = %ld\n", PTR_ERR(devpriv->tty)); } else { - typedef struct { + struct config_t { + int kind; int bits; int min; int max; - } config_t; - config_t dig_in_config[32]; - config_t dig_out_config[32]; - config_t chan_in_config[32]; - config_t chan_out_config[32]; + }; + + struct config_t dig_in_config[32]; + struct config_t dig_out_config[32]; + struct config_t chan_in_config[32]; + struct config_t chan_out_config[32]; int i; for (i = 0; i < 32; i++) { @@ -443,7 +445,7 @@ static void serial_2002_open(struct comedi_device * dev) break; } else { int command, channel, kind; - config_t *cur_config = 0; + struct config_t *cur_config = 0; channel = data.value & 0x1f; kind = (data.value >> 5) & 0x7; @@ -554,7 +556,7 @@ static void serial_2002_open(struct comedi_device * dev) } for (i = 0; i <= 4; i++) { // Fill in subdev data - config_t *c; + struct config_t *c; unsigned char *mapping = 0; struct serial2002_range_table_t *range = 0; int kind = 0; |