Staging: comedi: Remove aio12_8_private typedef
authorBill Pemberton <wfp5p@virginia.edu>
Tue, 17 Mar 2009 02:09:02 +0000 (22:09 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Apr 2009 21:54:00 +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/aio_aio12_8.c

index 883dd11c0a1581856965d8e97c7766911263c9b4..b97b4d82611b3abf08520a254fc8167bfac011ea 100644 (file)
@@ -82,11 +82,11 @@ static const struct aio12_8_boardtype board_types[] = {
 
 #define        thisboard       ((const struct aio12_8_boardtype  *) dev->board_ptr)
 
-typedef struct {
+struct aio12_8_private {
        unsigned int ao_readback[4];
-} aio12_8_private;
+};
 
-#define devpriv        ((aio12_8_private *) dev->private)
+#define devpriv        ((struct aio12_8_private *) dev->private)
 
 static int aio_aio12_8_ai_read(struct comedi_device * dev, struct comedi_subdevice * s,
        struct comedi_insn * insn, unsigned int * data)
@@ -176,7 +176,7 @@ static int aio_aio12_8_attach(struct comedi_device * dev, struct comedi_devconfi
 
        dev->iobase = iobase;
 
-       if (alloc_private(dev, sizeof(aio12_8_private)) < 0)
+       if (alloc_private(dev, sizeof(struct aio12_8_private)) < 0)
                return -ENOMEM;
 
        if (alloc_subdevices(dev, 3) < 0)