Staging: comedi: Remove ni_65xx_subdevice_private typedef
authorBill Pemberton <wfp5p@virginia.edu>
Thu, 19 Mar 2009 21:58:51 +0000 (17:58 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Apr 2009 21:54:16 +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_65xx.c

index 4f6e7787933831906166c3f39e1c6427aa4b3ba3..6e85da16a241bc1ffc1b9839f1ccc8669e0d6cc9 100644 (file)
@@ -295,17 +295,18 @@ static inline struct ni_65xx_private *private(struct comedi_device * dev)
        return dev->private;
 }
 
-typedef struct {
+struct ni_65xx_subdevice_private {
        unsigned base_port;
-} ni_65xx_subdevice_private;
-static inline ni_65xx_subdevice_private *sprivate(struct comedi_subdevice * subdev)
+};
+
+static inline struct ni_65xx_subdevice_private *sprivate(struct comedi_subdevice * subdev)
 {
        return subdev->private;
 }
-static ni_65xx_subdevice_private *ni_65xx_alloc_subdevice_private(void)
+static struct ni_65xx_subdevice_private *ni_65xx_alloc_subdevice_private(void)
 {
-       ni_65xx_subdevice_private *subdev_private =
-               kzalloc(sizeof(ni_65xx_subdevice_private), GFP_KERNEL);
+       struct ni_65xx_subdevice_private *subdev_private =
+               kzalloc(sizeof(struct ni_65xx_subdevice_private), GFP_KERNEL);
        if (subdev_private == NULL)
                return NULL;
        return subdev_private;