From: Bill Pemberton Date: Tue, 17 Mar 2009 02:09:23 +0000 (-0400) Subject: Staging: comedi: Remove dio200_board typedef X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3d7a42ef60e93352b49c5da7cba00f20ce255afc;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git Staging: comedi: Remove dio200_board typedef Signed-off-by: Bill Pemberton Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/amplc_dio200.c b/drivers/staging/comedi/drivers/amplc_dio200.c index f5f20edddae0..2a46e7eb59f6 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