]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Staging: comedi: Remove das16cs_private typedef
authorBill Pemberton <wfp5p@virginia.edu>
Tue, 17 Mar 2009 02:10:34 +0000 (22:10 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Apr 2009 21:54:02 +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/cb_das16_cs.c

index 12f0085b189495a77c09b9b37e0997f4aa04b3ad..fc08d039705c0c385c3f53a39370c1c264821209 100644 (file)
@@ -80,14 +80,14 @@ static const struct das16cs_board das16cs_boards[] = {
 #define n_boards (sizeof(das16cs_boards)/sizeof(das16cs_boards[0]))
 #define thisboard ((const struct das16cs_board *)dev->board_ptr)
 
-typedef struct {
+struct das16cs_private {
        struct pcmcia_device *link;
 
        unsigned int ao_readback[2];
        unsigned short status1;
        unsigned short status2;
-} das16cs_private;
-#define devpriv ((das16cs_private *)dev->private)
+};
+#define devpriv ((struct das16cs_private *)dev->private)
 
 static int das16cs_attach(struct comedi_device * dev, struct comedi_devconfig * it);
 static int das16cs_detach(struct comedi_device * dev);
@@ -201,7 +201,7 @@ static int das16cs_attach(struct comedi_device * dev, struct comedi_devconfig *
 
        dev->board_name = thisboard->name;
 
-       if (alloc_private(dev, sizeof(das16cs_private)) < 0)
+       if (alloc_private(dev, sizeof(struct das16cs_private)) < 0)
                return -ENOMEM;
 
        if (alloc_subdevices(dev, 4) < 0)