]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
Staging: comedi: Remove dio200_private typedef
authorBill Pemberton <wfp5p@virginia.edu>
Tue, 17 Mar 2009 02:09:34 +0000 (22:09 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Apr 2009 21:54:01 +0000 (14:54 -0700)
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/amplc_dio200.c

index 7ad70ae474046cdd3df23bed160dc41a0d2a0991..dad65e40095bf42ecd2211227b9a18c85b150a84 100644 (file)
@@ -437,14 +437,14 @@ MODULE_DEVICE_TABLE(pci, dio200_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 dio200_private {
 #ifdef CONFIG_COMEDI_PCI
        struct pci_dev *pci_dev;        /* PCI device */
 #endif
        int intr_sd;
-} dio200_private;
+};
 
-#define devpriv ((dio200_private *)dev->private)
+#define devpriv ((struct dio200_private *)dev->private)
 
 typedef struct {
        unsigned long iobase;   /* Counter base address */
@@ -1280,7 +1280,7 @@ static int dio200_attach(struct comedi_device * dev, struct comedi_devconfig * i
        printk(KERN_DEBUG "comedi%d: %s: attach\n", dev->minor,
                DIO200_DRIVER_NAME);
 
-       if ((ret = alloc_private(dev, sizeof(dio200_private))) < 0) {
+       if ((ret = alloc_private(dev, sizeof(struct dio200_private))) < 0) {
                printk(KERN_ERR "comedi%d: error! out of memory!\n",
                        dev->minor);
                return ret;