summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Pemberton <wfp5p@virginia.edu>2009-03-16 22:15:45 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-04-03 14:54:09 -0700
commit16d38ca3514bfcfad78f97dc136c955616303bf4 (patch)
treeba4b3951fb1817e65d14a702c412170ced08d102
parent6555be0a1c25576be6270bb43f1bd444df7d86f8 (diff)
Staging: comedi: Remove ni6527_board typedef
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/comedi/drivers/ni_6527.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/staging/comedi/drivers/ni_6527.c b/drivers/staging/comedi/drivers/ni_6527.c
index 18fb7995c7c5..0d07c8514336 100644
--- a/drivers/staging/comedi/drivers/ni_6527.c
+++ b/drivers/staging/comedi/drivers/ni_6527.c
@@ -84,11 +84,13 @@ static struct comedi_driver driver_ni6527 = {
detach:ni6527_detach,
};
-typedef struct {
+struct ni6527_board {
+
int dev_id;
const char *name;
-} ni6527_board;
-static const ni6527_board ni6527_boards[] = {
+};
+
+static const struct ni6527_board ni6527_boards[] = {
{
dev_id: 0x2b20,
name: "pci-6527",
@@ -100,7 +102,7 @@ static const ni6527_board ni6527_boards[] = {
};
#define n_ni6527_boards (sizeof(ni6527_boards)/sizeof(ni6527_boards[0]))
-#define this_board ((const ni6527_board *)dev->board_ptr)
+#define this_board ((const struct ni6527_board *)dev->board_ptr)
static DEFINE_PCI_DEVICE_TABLE(ni6527_pci_table) = {
{PCI_VENDOR_ID_NATINST, 0x2b10, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},