Commit 47c30a2c authored by Bill Pemberton's avatar Bill Pemberton Committed by Greg Kroah-Hartman

Staging: comedi: Remove ni_65xx_private typedef

Signed-off-by: default avatarBill Pemberton <wfp5p@virginia.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent f4c6b319
...@@ -282,14 +282,15 @@ static DEFINE_PCI_DEVICE_TABLE(ni_65xx_pci_table) = { ...@@ -282,14 +282,15 @@ static DEFINE_PCI_DEVICE_TABLE(ni_65xx_pci_table) = {
MODULE_DEVICE_TABLE(pci, ni_65xx_pci_table); MODULE_DEVICE_TABLE(pci, ni_65xx_pci_table);
typedef struct { struct ni_65xx_private {
struct mite_struct *mite; struct mite_struct *mite;
unsigned int filter_interval; unsigned int filter_interval;
unsigned short filter_enable[NI_65XX_MAX_NUM_PORTS]; unsigned short filter_enable[NI_65XX_MAX_NUM_PORTS];
unsigned short output_bits[NI_65XX_MAX_NUM_PORTS]; unsigned short output_bits[NI_65XX_MAX_NUM_PORTS];
unsigned short dio_direction[NI_65XX_MAX_NUM_PORTS]; unsigned short dio_direction[NI_65XX_MAX_NUM_PORTS];
} ni_65xx_private; };
static inline ni_65xx_private *private(struct comedi_device * dev)
static inline struct ni_65xx_private *private(struct comedi_device * dev)
{ {
return dev->private; return dev->private;
} }
...@@ -625,7 +626,7 @@ static int ni_65xx_attach(struct comedi_device * dev, struct comedi_devconfig * ...@@ -625,7 +626,7 @@ static int ni_65xx_attach(struct comedi_device * dev, struct comedi_devconfig *
printk("comedi%d: ni_65xx:", dev->minor); printk("comedi%d: ni_65xx:", dev->minor);
if ((ret = alloc_private(dev, sizeof(ni_65xx_private))) < 0) if ((ret = alloc_private(dev, sizeof(struct ni_65xx_private))) < 0)
return ret; return ret;
ret = ni_65xx_find_device(dev, it->options[0], it->options[1]); ret = ni_65xx_find_device(dev, it->options[0], it->options[1]);
......
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