aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Pemberton <wfp5p@virginia.edu>2009-03-16 22:10:17 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-04-03 14:54:02 -0700
commita27872bf7b3fc4ac7ddb561662cf7eb06e8b3895 (patch)
tree202189a79b1038a3032539c116b793397fd402e4
parent5a676a21f496b68506d6ebc94bc137b7acecdbd3 (diff)
Staging: comedi: Remove pci224_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/amplc_pci224.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/comedi/drivers/amplc_pci224.c b/drivers/staging/comedi/drivers/amplc_pci224.c
index 74c5a2a9485..770b9664893 100644
--- a/drivers/staging/comedi/drivers/amplc_pci224.c
+++ b/drivers/staging/comedi/drivers/amplc_pci224.c
@@ -398,7 +398,7 @@ MODULE_DEVICE_TABLE(pci, pci224_pci_table);
/* this structure is for data unique to this hardware driver. If
several hardware drivers keep similar information in this structure,
feel free to suggest moving the variable to the struct comedi_device struct. */
-typedef struct {
+struct pci224_private {
struct pci_dev *pci_dev; /* PCI device */
const unsigned short *hwrange;
unsigned long iobase1;
@@ -416,9 +416,9 @@ typedef struct {
short ao_stop_continuous;
unsigned short ao_enab; /* max 16 channels so 'short' will do */
unsigned char intsce;
-} pci224_private;
+};
-#define devpriv ((pci224_private *)dev->private)
+#define devpriv ((struct pci224_private *)dev->private)
/*
* The struct comedi_driver structure tells the Comedi core module
@@ -1336,7 +1336,7 @@ static int pci224_attach(struct comedi_device * dev, struct comedi_devconfig * i
bus = it->options[0];
slot = it->options[1];
- if ((ret = alloc_private(dev, sizeof(pci224_private))) < 0) {
+ if ((ret = alloc_private(dev, sizeof(struct pci224_private))) < 0) {
printk(KERN_ERR "comedi%d: error! out of memory!\n",
dev->minor);
return ret;