diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2009-03-16 22:08:19 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-04-03 14:54:00 -0700 |
commit | 6e8131a86d6c1a9896282f572d17c447a85262ad (patch) | |
tree | 3c93106e2067f3b0ef60ed4e13f9c97cd98c467f | |
parent | 7875a00b702e62ebafe68cd2abf96570e2d747e5 (diff) |
Staging: comedi: Remove pci1710_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/adv_pci1710.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/comedi/drivers/adv_pci1710.c b/drivers/staging/comedi/drivers/adv_pci1710.c index 1d392d99a40..29eac743c8e 100644 --- a/drivers/staging/comedi/drivers/adv_pci1710.c +++ b/drivers/staging/comedi/drivers/adv_pci1710.c @@ -266,7 +266,7 @@ static struct comedi_driver driver_pci1710 = { .offset = sizeof(struct boardtype), }; -typedef struct { +struct pci1710_private { struct pci_dev *pcidev; // ptr to PCI device char valid; // card is usable char neverending_ai; // we do unlimited AI @@ -295,9 +295,9 @@ typedef struct { unsigned int ai_timer2; short ao_data[4]; // data output buffer unsigned int cnt0_write_wait; // after a write, wait for update of the internal state -} pci1710_private; +}; -#define devpriv ((pci1710_private *)dev->private) +#define devpriv ((struct pci1710_private *)dev->private) #define this_board ((const struct boardtype *)dev->board_ptr) /* @@ -1334,7 +1334,7 @@ static int pci1710_attach(struct comedi_device * dev, struct comedi_devconfig * opt_bus = it->options[0]; opt_slot = it->options[1]; - if ((ret = alloc_private(dev, sizeof(pci1710_private))) < 0) { + if ((ret = alloc_private(dev, sizeof(struct pci1710_private))) < 0) { rt_printk(" - Allocation failed!\n"); return -ENOMEM; } |