diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2009-03-19 17:58:51 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-04-03 14:54:16 -0700 |
commit | 6179e3e9bbec5df830ccca3970df80967347b410 (patch) | |
tree | 097ab04f70dee11e6119c5bf58d374a66311bcdb /drivers/staging | |
parent | 47c30a2cc336d493d624d8437f41c19a270bb672 (diff) | |
download | talos-obmc-linux-6179e3e9bbec5df830ccca3970df80967347b410.tar.gz talos-obmc-linux-6179e3e9bbec5df830ccca3970df80967347b410.zip |
Staging: comedi: Remove ni_65xx_subdevice_private typedef
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/comedi/drivers/ni_65xx.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/staging/comedi/drivers/ni_65xx.c b/drivers/staging/comedi/drivers/ni_65xx.c index 4f6e77879338..6e85da16a241 100644 --- a/drivers/staging/comedi/drivers/ni_65xx.c +++ b/drivers/staging/comedi/drivers/ni_65xx.c @@ -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; |