aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorBill Pemberton <wfp5p@virginia.edu>2009-03-16 22:09:23 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-04-03 14:54:01 -0700
commit3d7a42ef60e93352b49c5da7cba00f20ce255afc (patch)
tree62d0e6b870ce3009846dc9b81b8a97a585954110 /drivers
parent55d996391fa73df06e33609f0d6f82de775d1045 (diff)
Staging: comedi: Remove dio200_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/amplc_dio200.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/staging/comedi/drivers/amplc_dio200.c b/drivers/staging/comedi/drivers/amplc_dio200.c
index f5f20edddae..2a46e7eb59f 100644
--- a/drivers/staging/comedi/drivers/amplc_dio200.c
+++ b/drivers/staging/comedi/drivers/amplc_dio200.c
@@ -278,15 +278,15 @@ enum dio200_layout {
pc272_layout
};
-typedef struct dio200_board_struct {
+struct dio200_board {
const char *name;
unsigned short devid;
enum dio200_bustype bustype;
enum dio200_model model;
enum dio200_layout layout;
-} dio200_board;
+};
-static const dio200_board dio200_boards[] = {
+static const struct dio200_board dio200_boards[] = {
{
name: "pc212e",
bustype: isa_bustype,
@@ -431,8 +431,8 @@ MODULE_DEVICE_TABLE(pci, dio200_pci_table);
/*
* Useful for shorthand access to the particular board structure
*/
-#define thisboard ((const dio200_board *)dev->board_ptr)
-#define thislayout (&dio200_layouts[((dio200_board *)dev->board_ptr)->layout])
+#define thisboard ((const struct dio200_board *)dev->board_ptr)
+#define thislayout (&dio200_layouts[((struct dio200_board *)dev->board_ptr)->layout])
/* this structure is for data unique to this hardware driver. If
several hardware drivers keep similar information in this structure,
@@ -481,8 +481,8 @@ static struct comedi_driver driver_amplc_dio200 = {
attach:dio200_attach,
detach:dio200_detach,
board_name:&dio200_boards[0].name,
- offset:sizeof(dio200_board),
- num_names:sizeof(dio200_boards) / sizeof(dio200_board),
+ offset:sizeof(struct dio200_board),
+ num_names:sizeof(dio200_boards) / sizeof(struct dio200_board),
};
#ifdef CONFIG_COMEDI_PCI