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

index d142278268173ca867a794ed823e42cb51c68367..ed5f5576d992b7e10693e4e00f7fe011f1193753 100644 (file)
@@ -156,16 +156,18 @@ static const a2150_board a2150_boards[] = {
  */
 #define thisboard ((const a2150_board *)dev->board_ptr)
 
-typedef struct {
+struct a2150_private {
+
        volatile unsigned int count;    /* number of data points left to be taken */
        unsigned int dma;       // dma channel
        s16 *dma_buffer;        // dma buffer
        unsigned int dma_transfer_size; // size in bytes of dma transfers
        int irq_dma_bits;       // irq/dma register bits
        int config_bits;        // config register bits
-} a2150_private;
+};
+
 
-#define devpriv ((a2150_private *)dev->private)
+#define devpriv ((struct a2150_private *)dev->private)
 
 static int a2150_attach(struct comedi_device * dev, struct comedi_devconfig * it);
 static int a2150_detach(struct comedi_device * dev);
@@ -346,7 +348,7 @@ static int a2150_attach(struct comedi_device * dev, struct comedi_devconfig * it
        printk("\n");
 
        /* allocate and initialize dev->private */
-       if (alloc_private(dev, sizeof(a2150_private)) < 0)
+       if (alloc_private(dev, sizeof(struct a2150_private)) < 0)
                return -ENOMEM;
 
        if (iobase == 0) {