diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2009-03-16 22:20:03 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-04-03 14:54:12 -0700 |
commit | ca9ed0f295a5e85861c63713406d86643e570580 (patch) | |
tree | f52144b7e7c8ec2de707687f697e07dc4dd720f2 | |
parent | dfb0503e2baf2292da93faae78db4bb98d9f095e (diff) |
Staging: comedi: Remove serial2002_board 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 | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/staging/comedi/drivers/serial2002.c b/drivers/staging/comedi/drivers/serial2002.c index 77c234533005..0e48887b55cb 100644 --- a/drivers/staging/comedi/drivers/serial2002.c +++ b/drivers/staging/comedi/drivers/serial2002.c @@ -46,11 +46,11 @@ Status: in development * boards in this way is optional, and completely driver-dependent. * Some drivers use arrays such as this, other do not. */ -typedef struct serial2002_board_struct { +struct serial2002_board { const char *name; -} serial2002_board; +}; -static const serial2002_board serial2002_boards[] = { +static const struct serial2002_board serial2002_boards[] = { { name: "serial2002"} }; @@ -58,7 +58,7 @@ static const serial2002_board serial2002_boards[] = { /* * Useful for shorthand access to the particular board structure */ -#define thisboard ((const serial2002_board *)dev->board_ptr) +#define thisboard ((const struct serial2002_board *)dev->board_ptr) struct serial2002_range_table_t { @@ -95,8 +95,8 @@ struct comedi_driver driver_serial2002 = { attach:serial2002_attach, detach:serial2002_detach, board_name:&serial2002_boards[0].name, - offset:sizeof(serial2002_board), - num_names:sizeof(serial2002_boards) / sizeof(serial2002_board), + offset:sizeof(struct serial2002_board), + num_names:sizeof(serial2002_boards) / sizeof(struct serial2002_board), }; static int serial2002_di_rinsn(struct comedi_device * dev, struct comedi_subdevice * s, |