diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2009-03-16 22:17:33 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-04-03 14:54:15 -0700 |
commit | 1de6a6fd5b672f3a2d8aa6ebe4c85552f091277b (patch) | |
tree | e4f496f22ab719d59fda0aa7a61ebfa124ea699b | |
parent | 180089a8966e712cb8cb9af1d7401c3e12453d74 (diff) |
Staging: comedi: rti800: Remove boardtype 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/rti800.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/staging/comedi/drivers/rti800.c b/drivers/staging/comedi/drivers/rti800.c index 594c5e82211..334ac5773a1 100644 --- a/drivers/staging/comedi/drivers/rti800.c +++ b/drivers/staging/comedi/drivers/rti800.c @@ -118,16 +118,18 @@ static const struct comedi_lrange range_rti800_ai_unipolar = { 4, { } }; -typedef struct { +struct rti800_board { + const char *name; int has_ao; -} boardtype; -static const boardtype boardtypes[] = { +}; + +static const struct rti800_board boardtypes[] = { {"rti800", 0}, {"rti815", 1}, }; -#define this_board ((const boardtype *)dev->board_ptr) +#define this_board ((const struct rti800_board *)dev->board_ptr) static int rti800_attach(struct comedi_device * dev, struct comedi_devconfig * it); static int rti800_detach(struct comedi_device * dev); @@ -136,9 +138,9 @@ static struct comedi_driver driver_rti800 = { module:THIS_MODULE, attach:rti800_attach, detach:rti800_detach, - num_names:sizeof(boardtypes) / sizeof(boardtype), + num_names:sizeof(boardtypes) / sizeof(struct rti800_board), board_name:&boardtypes[0].name, - offset:sizeof(boardtype), + offset:sizeof(struct rti800_board), }; COMEDI_INITCLEANUP(driver_rti800); |