diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2009-03-16 22:10:01 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-04-03 14:54:01 -0700 |
commit | 4beb86c25085f875935480aa0422e0a983a917f3 (patch) | |
tree | 52b13ecd0389e028cfac4a46d4812a68a27a1242 /drivers/staging/comedi/drivers/amplc_pc263.c | |
parent | f1ee810a1383b623ec523edd521467a7b620a09a (diff) |
Staging: comedi: Remove pc263_board typedef
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/comedi/drivers/amplc_pc263.c')
-rw-r--r-- | drivers/staging/comedi/drivers/amplc_pc263.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/staging/comedi/drivers/amplc_pc263.c b/drivers/staging/comedi/drivers/amplc_pc263.c index 99db1a987ca2..2602e7e7b2de 100644 --- a/drivers/staging/comedi/drivers/amplc_pc263.c +++ b/drivers/staging/comedi/drivers/amplc_pc263.c @@ -65,14 +65,14 @@ The state of the outputs can be read. enum pc263_bustype { isa_bustype, pci_bustype }; enum pc263_model { pc263_model, pci263_model, anypci_model }; -typedef struct pc263_board_struct { +struct pc263_board { const char *name; const char *fancy_name; unsigned short devid; enum pc263_bustype bustype; enum pc263_model model; -} pc263_board; -static const pc263_board pc263_boards[] = { +}; +static const struct pc263_board pc263_boards[] = { { name: "pc263", fancy_name:"PC263", @@ -112,7 +112,7 @@ MODULE_DEVICE_TABLE(pci, pc263_pci_table); /* * Useful for shorthand access to the particular board structure */ -#define thisboard ((const pc263_board *)dev->board_ptr) +#define thisboard ((const struct pc263_board *)dev->board_ptr) /* this structure is for data unique to this hardware driver. If several hardware drivers keep similar information in this structure, @@ -140,8 +140,8 @@ static struct comedi_driver driver_amplc_pc263 = { attach:pc263_attach, detach:pc263_detach, board_name:&pc263_boards[0].name, - offset:sizeof(pc263_board), - num_names:sizeof(pc263_boards) / sizeof(pc263_board), + offset:sizeof(struct pc263_board), + num_names:sizeof(pc263_boards) / sizeof(struct pc263_board), }; static int pc263_request_region(unsigned minor, unsigned long from, |