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

Staging: comedi: Remove config_t typedef

Signed-off-by: default avatarBill Pemberton <wfp5p@virginia.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 201007e8
...@@ -401,16 +401,18 @@ static void serial_2002_open(struct comedi_device * dev) ...@@ -401,16 +401,18 @@ static void serial_2002_open(struct comedi_device * dev)
printk("serial_2002: file open error = %ld\n", printk("serial_2002: file open error = %ld\n",
PTR_ERR(devpriv->tty)); PTR_ERR(devpriv->tty));
} else { } else {
typedef struct { struct config_t {
int kind; int kind;
int bits; int bits;
int min; int min;
int max; int max;
} config_t; };
config_t dig_in_config[32];
config_t dig_out_config[32]; struct config_t dig_in_config[32];
config_t chan_in_config[32]; struct config_t dig_out_config[32];
config_t chan_out_config[32]; struct config_t chan_in_config[32];
struct config_t chan_out_config[32];
int i; int i;
for (i = 0; i < 32; i++) { for (i = 0; i < 32; i++) {
...@@ -443,7 +445,7 @@ static void serial_2002_open(struct comedi_device * dev) ...@@ -443,7 +445,7 @@ static void serial_2002_open(struct comedi_device * dev)
break; break;
} else { } else {
int command, channel, kind; int command, channel, kind;
config_t *cur_config = 0; struct config_t *cur_config = 0;
channel = data.value & 0x1f; channel = data.value & 0x1f;
kind = (data.value >> 5) & 0x7; kind = (data.value >> 5) & 0x7;
...@@ -554,7 +556,7 @@ static void serial_2002_open(struct comedi_device * dev) ...@@ -554,7 +556,7 @@ static void serial_2002_open(struct comedi_device * dev)
} }
for (i = 0; i <= 4; i++) { for (i = 0; i <= 4; i++) {
// Fill in subdev data // Fill in subdev data
config_t *c; struct config_t *c;
unsigned char *mapping = 0; unsigned char *mapping = 0;
struct serial2002_range_table_t *range = 0; struct serial2002_range_table_t *range = 0;
int kind = 0; int kind = 0;
......
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