Skip to content

Commit

Permalink
Staging: comedi: Remove ni_65xx_private typedef
Browse files Browse the repository at this point in the history
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent f4c6b31 commit 47c30a2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions drivers/staging/comedi/drivers/ni_65xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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]);
Expand Down

0 comments on commit 47c30a2

Please sign in to comment.