summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorBill Pemberton <wfp5p@virginia.edu>2009-03-16 22:19:47 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-04-03 14:54:11 -0700
commit387c136adc72da7f06f37274822ad9c38f529156 (patch)
tree63b30ee6fc59275529ecd6ad6be2d51691fca4b7 /drivers
parente15849e54405152087cd343437747db8d931fcd7 (diff)
Staging: comedi: Remove pcmda12_board typedef
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/comedi/drivers/pcmda12.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/staging/comedi/drivers/pcmda12.c b/drivers/staging/comedi/drivers/pcmda12.c
index 81233355d67b..2a1ff465602a 100644
--- a/drivers/staging/comedi/drivers/pcmda12.c
+++ b/drivers/staging/comedi/drivers/pcmda12.c
@@ -68,9 +68,9 @@ Configuration Options:
/*
* Bords
*/
-typedef struct pcmda12_board_struct {
+struct pcmda12_board {
const char *name;
-} pcmda12_board;
+};
/* note these have no effect and are merely here for reference..
these are configured by jumpering the board! */
@@ -81,7 +81,7 @@ static const struct comedi_lrange pcmda12_ranges = {
}
};
-static const pcmda12_board pcmda12_boards[] = {
+static const struct pcmda12_board pcmda12_boards[] = {
{
name: "pcmda12",
},
@@ -90,7 +90,7 @@ static const pcmda12_board pcmda12_boards[] = {
/*
* Useful for shorthand access to the particular board structure
*/
-#define thisboard ((const pcmda12_board *)dev->board_ptr)
+#define thisboard ((const struct pcmda12_board *)dev->board_ptr)
struct pcmda12_private {
@@ -136,8 +136,8 @@ static struct comedi_driver driver = {
* devices are such boards.
*/
board_name:&pcmda12_boards[0].name,
- offset:sizeof(pcmda12_board),
- num_names:sizeof(pcmda12_boards) / sizeof(pcmda12_board),
+ offset:sizeof(struct pcmda12_board),
+ num_names:sizeof(pcmda12_boards) / sizeof(struct pcmda12_board),
};
static int ao_winsn(struct comedi_device * dev, struct comedi_subdevice * s,