From 747537121d060557132ac82e7e37cae393e16dcc Mon Sep 17 00:00:00 2001 From: Bill Pemberton Date: Mon, 16 Mar 2009 22:08:56 -0400 Subject: [PATCH] Staging: comedi: Remove board_type typedef in aio_aio12_8.c Signed-off-by: Bill Pemberton Signed-off-by: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/aio_aio12_8.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/comedi/drivers/aio_aio12_8.c b/drivers/staging/comedi/drivers/aio_aio12_8.c index c3e8f99ec4e..883dd11c0a1 100644 --- a/drivers/staging/comedi/drivers/aio_aio12_8.c +++ b/drivers/staging/comedi/drivers/aio_aio12_8.c @@ -71,16 +71,16 @@ Notes: #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]; @@ -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); -- 2.41.0