Commit 28fa7754 authored by Bill Pemberton's avatar Bill Pemberton Committed by Greg Kroah-Hartman

Staging: comedi: Remove aio_iiro_16_board typedef

Signed-off-by: default avatarBill Pemberton <wfp5p@virginia.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 4b1d53f0
...@@ -44,20 +44,20 @@ Configuration Options: ...@@ -44,20 +44,20 @@ Configuration Options:
#define AIO_IIRO_16_RELAY_8_15 0x04 #define AIO_IIRO_16_RELAY_8_15 0x04
#define AIO_IIRO_16_INPUT_8_15 0x05 #define AIO_IIRO_16_INPUT_8_15 0x05
typedef struct aio_iiro_16_board_struct { struct aio_iiro_16_board {
const char *name; const char *name;
int do_; int do_;
int di; int di;
} aio_iiro_16_board; };
static const aio_iiro_16_board aio_iiro_16_boards[] = { static const struct aio_iiro_16_board aio_iiro_16_boards[] = {
{ {
name: "aio_iiro_16", name: "aio_iiro_16",
di: 16, di: 16,
do_: 16}, do_: 16},
}; };
#define thisboard ((const aio_iiro_16_board *) dev->board_ptr) #define thisboard ((const struct aio_iiro_16_board *) dev->board_ptr)
typedef struct { typedef struct {
int data; int data;
...@@ -77,8 +77,8 @@ static struct comedi_driver driver_aio_iiro_16 = { ...@@ -77,8 +77,8 @@ static struct comedi_driver driver_aio_iiro_16 = {
attach:aio_iiro_16_attach, attach:aio_iiro_16_attach,
detach:aio_iiro_16_detach, detach:aio_iiro_16_detach,
board_name:&aio_iiro_16_boards[0].name, board_name:&aio_iiro_16_boards[0].name,
offset:sizeof(aio_iiro_16_board), offset:sizeof(struct aio_iiro_16_board),
num_names:sizeof(aio_iiro_16_boards) / sizeof(aio_iiro_16_board), num_names:sizeof(aio_iiro_16_boards) / sizeof(struct aio_iiro_16_board),
}; };
static int aio_iiro_16_dio_insn_bits_read(struct comedi_device * dev, static int aio_iiro_16_dio_insn_bits_read(struct comedi_device * dev,
......
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