Commit 1de6a6fd authored by Bill Pemberton's avatar Bill Pemberton Committed by Greg Kroah-Hartman

Staging: comedi: rti800: Remove boardtype typedef

Signed-off-by: default avatarBill Pemberton <wfp5p@virginia.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 180089a8
...@@ -118,16 +118,18 @@ static const struct comedi_lrange range_rti800_ai_unipolar = { 4, { ...@@ -118,16 +118,18 @@ static const struct comedi_lrange range_rti800_ai_unipolar = { 4, {
} }
}; };
typedef struct { struct rti800_board {
const char *name; const char *name;
int has_ao; int has_ao;
} boardtype; };
static const boardtype boardtypes[] = {
static const struct rti800_board boardtypes[] = {
{"rti800", 0}, {"rti800", 0},
{"rti815", 1}, {"rti815", 1},
}; };
#define this_board ((const boardtype *)dev->board_ptr) #define this_board ((const struct rti800_board *)dev->board_ptr)
static int rti800_attach(struct comedi_device * dev, struct comedi_devconfig * it); static int rti800_attach(struct comedi_device * dev, struct comedi_devconfig * it);
static int rti800_detach(struct comedi_device * dev); static int rti800_detach(struct comedi_device * dev);
...@@ -136,9 +138,9 @@ static struct comedi_driver driver_rti800 = { ...@@ -136,9 +138,9 @@ static struct comedi_driver driver_rti800 = {
module:THIS_MODULE, module:THIS_MODULE,
attach:rti800_attach, attach:rti800_attach,
detach:rti800_detach, detach:rti800_detach,
num_names:sizeof(boardtypes) / sizeof(boardtype), num_names:sizeof(boardtypes) / sizeof(struct rti800_board),
board_name:&boardtypes[0].name, board_name:&boardtypes[0].name,
offset:sizeof(boardtype), offset:sizeof(struct rti800_board),
}; };
COMEDI_INITCLEANUP(driver_rti800); COMEDI_INITCLEANUP(driver_rti800);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment