diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2009-03-19 17:58:41 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-04-03 14:54:16 -0700 |
commit | f4c6b31958afecc08c8e83f3bc25161ce4442542 (patch) | |
tree | a8dd20ae409588207d9096b3a805fe5ff3dd679e | |
parent | 97070b32a886d53b7343bcb28ed38d906fa95f50 (diff) |
Staging: comedi: Remove ni6527_private typedef
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/comedi/drivers/ni_6527.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/staging/comedi/drivers/ni_6527.c b/drivers/staging/comedi/drivers/ni_6527.c index 0d07c851433..e01ecb6760f 100644 --- a/drivers/staging/comedi/drivers/ni_6527.c +++ b/drivers/staging/comedi/drivers/ni_6527.c @@ -112,12 +112,13 @@ static DEFINE_PCI_DEVICE_TABLE(ni6527_pci_table) = { MODULE_DEVICE_TABLE(pci, ni6527_pci_table); -typedef struct { +struct ni6527_private { struct mite_struct *mite; unsigned int filter_interval; unsigned int filter_enable; -} ni6527_private; -#define devpriv ((ni6527_private *)dev->private) +}; + +#define devpriv ((struct ni6527_private *)dev->private) static int ni6527_find_device(struct comedi_device * dev, int bus, int slot); @@ -370,7 +371,7 @@ static int ni6527_attach(struct comedi_device * dev, struct comedi_devconfig * i printk("comedi%d: ni6527:", dev->minor); - if ((ret = alloc_private(dev, sizeof(ni6527_private))) < 0) + if ((ret = alloc_private(dev, sizeof(struct ni6527_private))) < 0) return ret; ret = ni6527_find_device(dev, it->options[0], it->options[1]); |