aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorBill Pemberton <wfp5p@virginia.edu>2009-03-19 17:58:46 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-04-03 14:54:16 -0700
commit47c30a2cc336d493d624d8437f41c19a270bb672 (patch)
tree096fe3ed4295bdd47016ca071aefb597c2c10b77 /drivers
parentf4c6b31958afecc08c8e83f3bc25161ce4442542 (diff)
Staging: comedi: Remove ni_65xx_private typedef
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/comedi/drivers/ni_65xx.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/staging/comedi/drivers/ni_65xx.c b/drivers/staging/comedi/drivers/ni_65xx.c
index c5fac96f25d..4f6e7787933 100644
--- a/drivers/staging/comedi/drivers/ni_65xx.c
+++ b/drivers/staging/comedi/drivers/ni_65xx.c
@@ -282,14 +282,15 @@ static DEFINE_PCI_DEVICE_TABLE(ni_65xx_pci_table) = {
MODULE_DEVICE_TABLE(pci, ni_65xx_pci_table);
-typedef struct {
+struct ni_65xx_private {
struct mite_struct *mite;
unsigned int filter_interval;
unsigned short filter_enable[NI_65XX_MAX_NUM_PORTS];
unsigned short output_bits[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;
}
@@ -625,7 +626,7 @@ static int ni_65xx_attach(struct comedi_device * dev, struct comedi_devconfig *
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;
ret = ni_65xx_find_device(dev, it->options[0], it->options[1]);