Commit 6179e3e9 authored by Bill Pemberton's avatar Bill Pemberton Committed by Greg Kroah-Hartman

Staging: comedi: Remove ni_65xx_subdevice_private typedef

Signed-off-by: default avatarBill Pemberton <wfp5p@virginia.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 47c30a2c
...@@ -295,17 +295,18 @@ static inline struct ni_65xx_private *private(struct comedi_device * dev) ...@@ -295,17 +295,18 @@ static inline struct ni_65xx_private *private(struct comedi_device * dev)
return dev->private; return dev->private;
} }
typedef struct { struct ni_65xx_subdevice_private {
unsigned base_port; 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; 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 = struct ni_65xx_subdevice_private *subdev_private =
kzalloc(sizeof(ni_65xx_subdevice_private), GFP_KERNEL); kzalloc(sizeof(struct ni_65xx_subdevice_private), GFP_KERNEL);
if (subdev_private == NULL) if (subdev_private == NULL)
return NULL; return NULL;
return subdev_private; return subdev_private;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment