From bb69096d68dd8b5a5b28c1bb8368e27eed510edf Mon Sep 17 00:00:00 2001 From: Bill Pemberton Date: Mon, 16 Mar 2009 22:14:09 -0400 Subject: [PATCH] --- yaml --- r: 141597 b: refs/heads/master c: 38baea3abba76b48ff599e1c5b7eccc80b2a7e3d h: refs/heads/master i: 141595: 32ffac27a9832bc79a92457d2aea8d7470b5980c v: v3 --- [refs] | 2 +- trunk/drivers/staging/comedi/drivers/dmm32at.c | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/[refs] b/[refs] index 0f71857932c1..7a499c1b35b2 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: c7b8bb98a46e475ae848642cf60160fc7135cd52 +refs/heads/master: 38baea3abba76b48ff599e1c5b7eccc80b2a7e3d diff --git a/trunk/drivers/staging/comedi/drivers/dmm32at.c b/trunk/drivers/staging/comedi/drivers/dmm32at.c index 1b2c58f7eb3f..4245ad5eef99 100644 --- a/trunk/drivers/staging/comedi/drivers/dmm32at.c +++ b/trunk/drivers/staging/comedi/drivers/dmm32at.c @@ -200,7 +200,7 @@ static const struct comedi_lrange dmm32at_aoranges = { * boards in this way is optional, and completely driver-dependent. * Some drivers use arrays such as this, other do not. */ -typedef struct dmm32at_board_struct { +struct dmm32at_board { const char *name; int ai_chans; int ai_bits; @@ -210,8 +210,8 @@ typedef struct dmm32at_board_struct { const struct comedi_lrange *ao_ranges; int have_dio; int dio_chans; -} dmm32at_board; -static const dmm32at_board dmm32at_boards[] = { +}; +static const struct dmm32at_board dmm32at_boards[] = { { name: "dmm32at", ai_chans:32, @@ -228,7 +228,7 @@ static const dmm32at_board dmm32at_boards[] = { /* * Useful for shorthand access to the particular board structure */ -#define thisboard ((const dmm32at_board *)dev->board_ptr) +#define thisboard ((const struct dmm32at_board *)dev->board_ptr) /* this structure is for data unique to this hardware driver. If * several hardware drivers keep similar information in this structure, @@ -284,8 +284,8 @@ static struct comedi_driver driver_dmm32at = { * devices are such boards. */ board_name:&dmm32at_boards[0].name, - offset:sizeof(dmm32at_board), - num_names:sizeof(dmm32at_boards) / sizeof(dmm32at_board), + offset:sizeof(struct dmm32at_board), + num_names:sizeof(dmm32at_boards) / sizeof(struct dmm32at_board), }; /* prototypes for driver functions below */