Commit 52b3e348 authored by Bill Pemberton's avatar Bill Pemberton Committed by Greg Kroah-Hartman

Staging: comedi: Remove hpdi_board typedef

Signed-off-by: default avatarBill Pemberton <wfp5p@virginia.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent fa11f7a9
...@@ -260,13 +260,15 @@ uint32_t intr_active_high_bit(int interrupt_source) ...@@ -260,13 +260,15 @@ uint32_t intr_active_high_bit(int interrupt_source)
return 0x1 << interrupt_source; return 0x1 << interrupt_source;
} }
typedef struct { struct hpdi_board {
char *name; char *name;
int device_id; // pci device id int device_id; // pci device id
int subdevice_id; // pci subdevice id int subdevice_id; // pci subdevice id
} hpdi_board; };
static const hpdi_board hpdi_boards[] = { static const struct hpdi_board hpdi_boards[] = {
{ {
name: "pci-hpdi32", name: "pci-hpdi32",
device_id:PCI_DEVICE_ID_PLX_9080, device_id:PCI_DEVICE_ID_PLX_9080,
...@@ -283,7 +285,7 @@ static const hpdi_board hpdi_boards[] = { ...@@ -283,7 +285,7 @@ static const hpdi_board hpdi_boards[] = {
static inline unsigned int num_boards(void) static inline unsigned int num_boards(void)
{ {
return sizeof(hpdi_boards) / sizeof(hpdi_board); return sizeof(hpdi_boards) / sizeof(struct hpdi_board);
} }
static DEFINE_PCI_DEVICE_TABLE(hpdi_pci_table) = { static DEFINE_PCI_DEVICE_TABLE(hpdi_pci_table) = {
...@@ -294,9 +296,9 @@ static DEFINE_PCI_DEVICE_TABLE(hpdi_pci_table) = { ...@@ -294,9 +296,9 @@ static DEFINE_PCI_DEVICE_TABLE(hpdi_pci_table) = {
MODULE_DEVICE_TABLE(pci, hpdi_pci_table); MODULE_DEVICE_TABLE(pci, hpdi_pci_table);
static inline hpdi_board *board(const struct comedi_device * dev) static inline struct hpdi_board *board(const struct comedi_device * dev)
{ {
return (hpdi_board *) dev->board_ptr; return (struct hpdi_board *) dev->board_ptr;
} }
typedef struct { typedef struct {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment