]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Staging: comedi: Remove cnt_device_private typedef
authorBill Pemberton <wfp5p@virginia.edu>
Tue, 17 Mar 2009 02:18:21 +0000 (22:18 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Apr 2009 21:54:10 +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/ke_counter.c

index 6f538720d79f3c39c13bb7cf134607dda4614ed0..79f6fe5646c51b003eea3fa4025f4186b1ddd6a8 100644 (file)
@@ -82,11 +82,13 @@ static const struct cnt_board_struct cnt_boards[] = {
 
 /*-- device private structure -----------------------------------------------*/
 
-typedef struct {
+struct cnt_device_private {
+
        struct pci_dev *pcidev;
-} cnt_device_private;
+};
+
 
-#define devpriv ((cnt_device_private *)dev->private)
+#define devpriv ((struct cnt_device_private *)dev->private)
 
 static struct comedi_driver cnt_driver = {
       driver_name:CNT_DRIVER_NAME,
@@ -155,7 +157,7 @@ static int cnt_attach(struct comedi_device * dev, struct comedi_devconfig * it)
        int error, i;
 
        /* allocate device private structure */
-       if ((error = alloc_private(dev, sizeof(cnt_device_private))) < 0) {
+       if ((error = alloc_private(dev, sizeof(struct cnt_device_private))) < 0) {
                return error;
        }