diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2009-03-16 22:06:53 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-04-03 14:54:13 -0700 |
commit | 502dd07999b48994dc3c86a0c44f1a684299d44f (patch) | |
tree | 3f9afe01a730de912c5a2b6ab5387c28e7c8ddfc /drivers | |
parent | fe0ff175329a83de8f9aac7c0b759cde15cb2247 (diff) |
Staging: comedi: acl7225b: Remove boardtype typedef
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/comedi/drivers/acl7225b.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/staging/comedi/drivers/acl7225b.c b/drivers/staging/comedi/drivers/acl7225b.c index 78349300ecd3..b21320f0959f 100644 --- a/drivers/staging/comedi/drivers/acl7225b.c +++ b/drivers/staging/comedi/drivers/acl7225b.c @@ -25,18 +25,18 @@ Devices: [Adlink] ACL-7225b (acl7225b), [ICP] P16R16DIO (p16r16dio) static int acl7225b_attach(struct comedi_device *dev, struct comedi_devconfig * it); static int acl7225b_detach(struct comedi_device *dev); -typedef struct { +struct boardtype { const char *name; // driver name int io_range; // len of I/O space -} boardtype; +}; -static const boardtype boardtypes[] = { +static const struct boardtype boardtypes[] = { {"acl7225b", ACL7225_SIZE,}, {"p16r16dio", P16R16DIO_SIZE,}, }; -#define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype)) -#define this_board ((const boardtype *)dev->board_ptr) +#define n_boardtypes (sizeof(boardtypes)/sizeof(struct boardtype)) +#define this_board ((const struct boardtype *)dev->board_ptr) static struct comedi_driver driver_acl7225b = { driver_name:"acl7225b", @@ -45,7 +45,7 @@ static struct comedi_driver driver_acl7225b = { detach:acl7225b_detach, board_name:&boardtypes[0].name, num_names:n_boardtypes, - offset:sizeof(boardtype), + offset:sizeof(struct boardtype), }; COMEDI_INITCLEANUP(driver_acl7225b); |