summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorBill Pemberton <wfp5p@virginia.edu>2009-03-16 22:17:44 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-04-03 14:54:10 -0700
commitb3fb588d463c575706fe80e9c30bf4b1c7702034 (patch)
tree797f1ef7d87741b4b8851ee02ff4dd84102ab6f8 /drivers
parent6dc1ece008ab4e2bdddec3eca6d326a16b4f9849 (diff)
Staging: comedi: 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.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/staging/comedi/drivers/serial2002.c b/drivers/staging/comedi/drivers/serial2002.c
index 96430d2955b1..91fc281c1e9f 100644
--- a/drivers/staging/comedi/drivers/serial2002.c
+++ b/drivers/staging/comedi/drivers/serial2002.c
@@ -60,11 +60,13 @@ static const serial2002_board serial2002_boards[] = {
*/
#define thisboard ((const serial2002_board *)dev->board_ptr)
-typedef struct {
+struct serial2002_range_table_t {
+
// HACK...
int length;
struct comedi_krange range;
-} serial2002_range_table_t;
+};
+
typedef struct {
int port; // /dev/ttyS<port>
@@ -76,7 +78,7 @@ typedef struct {
unsigned char analog_in_mapping[32];
unsigned char analog_out_mapping[32];
unsigned char encoder_in_mapping[32];
- serial2002_range_table_t in_range[32], out_range[32];
+ struct serial2002_range_table_t in_range[32], out_range[32];
} serial2002_private;
/*
@@ -554,7 +556,7 @@ static void serial_2002_open(struct comedi_device * dev)
// Fill in subdev data
config_t *c;
unsigned char *mapping = 0;
- serial2002_range_table_t *range = 0;
+ struct serial2002_range_table_t *range = 0;
int kind = 0;
switch (i) {
@@ -623,7 +625,7 @@ static void serial_2002_open(struct comedi_device * dev)
s->range_table = 0;
s->range_table_list = range_table_list =
kmalloc(sizeof
- (serial2002_range_table_t) *
+ (struct serial2002_range_table_t) *
s->n_chan, GFP_KERNEL);
}
for (chan = 0, j = 0; j < 32; j++) {