diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2009-03-19 17:59:44 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-04-03 14:54:17 -0700 |
commit | 2e93aa5b5b8050090a22e162f9af6b18ca3ec47a (patch) | |
tree | 9fba998eb239ca1b7cbd8ff8916e168ac8cb7de0 /drivers | |
parent | 30570f0dee2b0e3ede09e08eb5dfd514317a7587 (diff) |
Staging: comedi: Remove nidio96_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_pcidio.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/comedi/drivers/ni_pcidio.c b/drivers/staging/comedi/drivers/ni_pcidio.c index 639c1676a80..87def2cc9a2 100644 --- a/drivers/staging/comedi/drivers/ni_pcidio.c +++ b/drivers/staging/comedi/drivers/ni_pcidio.c @@ -390,7 +390,7 @@ static DEFINE_PCI_DEVICE_TABLE(ni_pcidio_pci_table) = { MODULE_DEVICE_TABLE(pci, ni_pcidio_pci_table); -typedef struct { +struct nidio96_private { struct mite_struct *mite; int boardtype; int dio; @@ -398,8 +398,8 @@ typedef struct { struct mite_channel *di_mite_chan; struct mite_dma_descriptor_ring *di_mite_ring; spinlock_t mite_channel_lock; -} nidio96_private; -#define devpriv ((nidio96_private *)dev->private) +}; +#define devpriv ((struct nidio96_private *)dev->private) static int ni_pcidio_cmdtest(struct comedi_device * dev, struct comedi_subdevice * s, struct comedi_cmd * cmd); @@ -1161,7 +1161,7 @@ static int nidio_attach(struct comedi_device * dev, struct comedi_devconfig * it printk("comedi%d: nidio:", dev->minor); - if ((ret = alloc_private(dev, sizeof(nidio96_private))) < 0) + if ((ret = alloc_private(dev, sizeof(struct nidio96_private))) < 0) return ret; spin_lock_init(&devpriv->mite_channel_lock); |