]> Pileus Git - ~andy/linux/commitdiff
Staging: comedi: Remove addi_private typedef in addi-data
authorBill Pemberton <wfp5p@virginia.edu>
Wed, 25 Mar 2009 15:05:52 +0000 (11:05 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 19 Jun 2009 18:00:26 +0000 (11:00 -0700)
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/addi-data/addi_common.c
drivers/staging/comedi/drivers/addi-data/addi_common.h

index cc21587657ccd9f3cb7562138de3b7bee3ff5a56..50f59fa97d24814f33bdc5b6bde438721ccdf362 100644 (file)
@@ -72,7 +72,7 @@ You shoud also find the complete GPL in the COPYING file accompanying this sourc
 //Update-0.7.57->0.7.68MODULE_DESCRIPTION("Comedi ADDI-DATA module");
 //Update-0.7.57->0.7.68MODULE_LICENSE("GPL");
 
-#define devpriv ((addi_private *)dev->private)
+#define devpriv ((struct addi_private *)dev->private)
 #define this_board ((struct addi_board *)dev->board_ptr)
 
 #if defined(CONFIG_APCI_1710) || defined(CONFIG_APCI_3200) || defined(CONFIG_APCI_3300)
@@ -2575,7 +2575,7 @@ static int i_ADDI_Attach(struct comedi_device * dev, struct comedi_devconfig * i
        sprintf(c_Identifier, "Addi-Data GmbH Comedi %s",
                this_board->pc_DriverName);
 
-       if ((ret = alloc_private(dev, sizeof(addi_private))) < 0) {
+       if ((ret = alloc_private(dev, sizeof(struct addi_private))) < 0) {
                return -ENOMEM;
        }
 
index 60e7291e496d09658640636f424ddc1afca4f519..aeb3df00a752e5b094db3ef0fb9054c451adf10f 100644 (file)
@@ -345,7 +345,7 @@ union str_ModuleInfo {
 };
 
 /* Private structure for the addi_apci3120 driver */
-typedef struct {
+struct addi_private {
 
        int iobase;
        int i_IobaseAmcc;       // base+size for AMCC chip
@@ -434,7 +434,7 @@ typedef struct {
        union str_ModuleInfo s_ModuleInfo[4];
        unsigned int ul_TTLPortConfiguration[10];
 
-} addi_private;
+};
 
 static unsigned short pci_list_builded;        /* set to 1 when list of card is known */