aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/comedi
diff options
context:
space:
mode:
authorBill Pemberton <wfp5p@virginia.edu>2009-03-16 22:17:01 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-04-03 14:54:13 -0700
commit292090dcc85a6e8a4132a6551d73bc467b270693 (patch)
tree2de981a47246d5a85650a558f02afd87d025c646 /drivers/staging/comedi
parent747887a6210a6dc3dcfd40bdcc88ea65c85fcea3 (diff)
Staging: comedi: pcl730: 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/pcl730.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/staging/comedi/drivers/pcl730.c b/drivers/staging/comedi/drivers/pcl730.c
index f290e119586..f2c6d7c5693 100644
--- a/drivers/staging/comedi/drivers/pcl730.c
+++ b/drivers/staging/comedi/drivers/pcl730.c
@@ -29,19 +29,21 @@ The ACL-7130 card have an 8254 timer/counter not supported by this driver.
static int pcl730_attach(struct comedi_device * dev, struct comedi_devconfig * it);
static int pcl730_detach(struct comedi_device * dev);
-typedef struct {
+struct pcl730_board {
+
const char *name; // board name
unsigned int io_range; // len of I/O space
-} boardtype;
+};
+
-static const boardtype boardtypes[] = {
+static const struct pcl730_board boardtypes[] = {
{"pcl730", PCL730_SIZE,},
{"iso730", PCL730_SIZE,},
{"acl7130", ACL7130_SIZE,},
};
-#define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype))
-#define this_board ((const boardtype *)dev->board_ptr)
+#define n_boardtypes (sizeof(boardtypes)/sizeof(struct pcl730_board))
+#define this_board ((const struct pcl730_board *)dev->board_ptr)
static struct comedi_driver driver_pcl730 = {
driver_name:"pcl730",
@@ -50,7 +52,7 @@ static struct comedi_driver driver_pcl730 = {
detach:pcl730_detach,
board_name:&boardtypes[0].name,
num_names:n_boardtypes,
- offset:sizeof(boardtype),
+ offset:sizeof(struct pcl730_board),
};
COMEDI_INITCLEANUP(driver_pcl730);