Skip to content

Commit

Permalink
Staging: comedi: Remove board_type typedef in aio_aio12_8.c
Browse files Browse the repository at this point in the history
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent 4cb1335 commit 7475371
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions drivers/staging/comedi/drivers/aio_aio12_8.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,16 @@ Configuration Options:

#define DAC_ENABLE 0x18

typedef struct {
struct aio12_8_boardtype {
const char *name;
} board_type;
};

static const board_type board_types[] = {
static const struct aio12_8_boardtype board_types[] = {
{
name: "aio_aio12_8"},
};

#define thisboard ((const board_type *) dev->board_ptr)
#define thisboard ((const struct aio12_8_boardtype *) dev->board_ptr)

typedef struct {
unsigned int ao_readback[4];
Expand Down Expand Up @@ -220,7 +220,7 @@ static struct comedi_driver driver_aio_aio12_8 = {
detach:aio_aio12_8_detach,
board_name:&board_types[0].name,
num_names:1,
offset:sizeof(board_type),
offset:sizeof(struct aio12_8_boardtype),
};

COMEDI_INITCLEANUP(driver_aio_aio12_8);

0 comments on commit 7475371

Please sign in to comment.