diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2009-03-16 22:12:05 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-04-03 14:54:05 -0700 |
commit | 9da18ff8c352c8827abee8ebd8570d8bf2767ebb (patch) | |
tree | a89438fb9fcc11f683be50f9970a512ccb0ddb37 | |
parent | 79c7b392b32fc3154911fe3d8c65274cda5d5728 (diff) |
Staging: comedi: Remove boardtype typedef in daqboard2000.c
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/comedi/drivers/daqboard2000.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/staging/comedi/drivers/daqboard2000.c b/drivers/staging/comedi/drivers/daqboard2000.c index b02bf5c8d079..ae1f6145c565 100644 --- a/drivers/staging/comedi/drivers/daqboard2000.c +++ b/drivers/staging/comedi/drivers/daqboard2000.c @@ -306,17 +306,17 @@ static struct comedi_driver driver_daqboard2000 = { detach:daqboard2000_detach, }; -typedef struct { +struct daq200_boardtype { const char *name; int id; -} boardtype; -static const boardtype boardtypes[] = { +}; +static const struct daq200_boardtype boardtypes[] = { {"ids2", DAQBOARD2000_SUBSYSTEM_IDS2}, {"ids4", DAQBOARD2000_SUBSYSTEM_IDS4}, }; -#define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype)) -#define this_board ((const boardtype *)dev->board_ptr) +#define n_boardtypes (sizeof(boardtypes)/sizeof(struct daq200_boardtype)) +#define this_board ((const struct daq200_boardtype *)dev->board_ptr) static DEFINE_PCI_DEVICE_TABLE(daqboard2000_pci_table) = { {0x1616, 0x0409, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, |