From: Bill Pemberton Date: Tue, 17 Mar 2009 02:16:39 +0000 (-0400) Subject: Staging: comedi: Remove nidio_board typedef X-Git-Tag: v2.6.30-rc1~202^2~164 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a7195f3d92f5fc560e597598a56d9c394b65ee81;p=karo-tx-linux.git Staging: comedi: Remove nidio_board typedef Signed-off-by: Bill Pemberton Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/ni_pcidio.c b/drivers/staging/comedi/drivers/ni_pcidio.c index 339f059bab8e..639c1676a805 100644 --- a/drivers/staging/comedi/drivers/ni_pcidio.c +++ b/drivers/staging/comedi/drivers/ni_pcidio.c @@ -298,14 +298,16 @@ static struct comedi_driver driver_pcidio = { detach:nidio_detach, }; -typedef struct { +struct nidio_board { + int dev_id; const char *name; int n_8255; unsigned int is_diodaq:1; unsigned int uses_firmware:1; -} nidio_board; -static const nidio_board nidio_boards[] = { +}; + +static const struct nidio_board nidio_boards[] = { { dev_id: 0x1150, name: "pci-dio-32hs", @@ -370,7 +372,7 @@ static const nidio_board nidio_boards[] = { }; #define n_nidio_boards (sizeof(nidio_boards)/sizeof(nidio_boards[0])) -#define this_board ((const nidio_board *)dev->board_ptr) +#define this_board ((const struct nidio_board *)dev->board_ptr) static DEFINE_PCI_DEVICE_TABLE(ni_pcidio_pci_table) = { {PCI_VENDOR_ID_NATINST, 0x1150, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},