diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2009-03-16 22:16:45 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-04-03 14:54:13 -0700 |
commit | 6445296e9857ff4a3992454eda7ebb63f90cdca9 (patch) | |
tree | 493d985272fe204f510fcbf204ba28c35c0e6712 /drivers/staging/comedi | |
parent | 42f1884d0683d0d0d4b0895aaed02dbed5d8b921 (diff) |
Staging: comedi: pcl711: Remove boardtype typedef
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/comedi')
-rw-r--r-- | drivers/staging/comedi/drivers/pcl711.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/staging/comedi/drivers/pcl711.c b/drivers/staging/comedi/drivers/pcl711.c index fefbe1ca654..ce42506d47b 100644 --- a/drivers/staging/comedi/drivers/pcl711.c +++ b/drivers/staging/comedi/drivers/pcl711.c @@ -132,7 +132,8 @@ static const struct comedi_lrange range_acl8112dg_ai = { 9, { static const int i8253_osc_base = 500; /* 2 Mhz */ -typedef struct { +struct pcl711_board { + const char *name; int is_pcl711b; int is_8112; @@ -142,17 +143,18 @@ typedef struct { int n_aochan; int maxirq; const struct comedi_lrange *ai_range_type; -} boardtype; +}; + -static const boardtype boardtypes[] = { +static const struct pcl711_board boardtypes[] = { {"pcl711", 0, 0, 0, 5, 8, 1, 0, &range_bipolar5}, {"pcl711b", 1, 0, 0, 5, 8, 1, 7, &range_pcl711b_ai}, {"acl8112hg", 0, 1, 0, 12, 16, 2, 15, &range_acl8112hg_ai}, {"acl8112dg", 0, 1, 1, 9, 16, 2, 15, &range_acl8112dg_ai}, }; -#define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype)) -#define this_board ((const boardtype *)dev->board_ptr) +#define n_boardtypes (sizeof(boardtypes)/sizeof(struct pcl711_board)) +#define this_board ((const struct pcl711_board *)dev->board_ptr) static int pcl711_attach(struct comedi_device * dev, struct comedi_devconfig * it); static int pcl711_detach(struct comedi_device * dev); @@ -163,7 +165,7 @@ static struct comedi_driver driver_pcl711 = { detach:pcl711_detach, board_name:&boardtypes[0].name, num_names:n_boardtypes, - offset:sizeof(boardtype), + offset:sizeof(struct pcl711_board), }; COMEDI_INITCLEANUP(driver_pcl711); |