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

Staging: comedi: Remove dio200_subdev_intr typedef

Signed-off-by: default avatarBill Pemberton <wfp5p@virginia.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 93ba42e9
...@@ -456,7 +456,7 @@ struct dio200_subdev_8254 { ...@@ -456,7 +456,7 @@ struct dio200_subdev_8254 {
unsigned gate_src[3]; /* Current gate sources */ unsigned gate_src[3]; /* Current gate sources */
}; };
typedef struct { struct dio200_subdev_intr {
unsigned long iobase; unsigned long iobase;
spinlock_t spinlock; spinlock_t spinlock;
int active; int active;
...@@ -465,7 +465,7 @@ typedef struct { ...@@ -465,7 +465,7 @@ typedef struct {
unsigned int enabled_isns; unsigned int enabled_isns;
unsigned int stopcount; unsigned int stopcount;
int continuous; int continuous;
} dio200_subdev_intr; };
/* /*
* The struct comedi_driver structure tells the Comedi core module * The struct comedi_driver structure tells the Comedi core module
...@@ -575,7 +575,7 @@ static int ...@@ -575,7 +575,7 @@ static int
dio200_subdev_intr_insn_bits(struct comedi_device * dev, struct comedi_subdevice * s, dio200_subdev_intr_insn_bits(struct comedi_device * dev, struct comedi_subdevice * s,
struct comedi_insn * insn, unsigned int * data) struct comedi_insn * insn, unsigned int * data)
{ {
dio200_subdev_intr *subpriv = s->private; struct dio200_subdev_intr *subpriv = s->private;
if (subpriv->has_int_sce) { if (subpriv->has_int_sce) {
/* Just read the interrupt status register. */ /* Just read the interrupt status register. */
...@@ -593,7 +593,7 @@ dio200_subdev_intr_insn_bits(struct comedi_device * dev, struct comedi_subdevice ...@@ -593,7 +593,7 @@ dio200_subdev_intr_insn_bits(struct comedi_device * dev, struct comedi_subdevice
*/ */
static void dio200_stop_intr(struct comedi_device * dev, struct comedi_subdevice * s) static void dio200_stop_intr(struct comedi_device * dev, struct comedi_subdevice * s)
{ {
dio200_subdev_intr *subpriv = s->private; struct dio200_subdev_intr *subpriv = s->private;
subpriv->active = 0; subpriv->active = 0;
subpriv->enabled_isns = 0; subpriv->enabled_isns = 0;
...@@ -609,7 +609,7 @@ static int dio200_start_intr(struct comedi_device * dev, struct comedi_subdevice ...@@ -609,7 +609,7 @@ static int dio200_start_intr(struct comedi_device * dev, struct comedi_subdevice
{ {
unsigned int n; unsigned int n;
unsigned isn_bits; unsigned isn_bits;
dio200_subdev_intr *subpriv = s->private; struct dio200_subdev_intr *subpriv = s->private;
struct comedi_cmd *cmd = &s->async->cmd; struct comedi_cmd *cmd = &s->async->cmd;
int retval = 0; int retval = 0;
...@@ -644,7 +644,7 @@ static int ...@@ -644,7 +644,7 @@ static int
dio200_inttrig_start_intr(struct comedi_device * dev, struct comedi_subdevice * s, dio200_inttrig_start_intr(struct comedi_device * dev, struct comedi_subdevice * s,
unsigned int trignum) unsigned int trignum)
{ {
dio200_subdev_intr *subpriv; struct dio200_subdev_intr *subpriv;
unsigned long flags; unsigned long flags;
int event = 0; int event = 0;
...@@ -673,7 +673,7 @@ dio200_inttrig_start_intr(struct comedi_device * dev, struct comedi_subdevice * ...@@ -673,7 +673,7 @@ dio200_inttrig_start_intr(struct comedi_device * dev, struct comedi_subdevice *
*/ */
static int dio200_handle_read_intr(struct comedi_device * dev, struct comedi_subdevice * s) static int dio200_handle_read_intr(struct comedi_device * dev, struct comedi_subdevice * s)
{ {
dio200_subdev_intr *subpriv = s->private; struct dio200_subdev_intr *subpriv = s->private;
unsigned triggered; unsigned triggered;
unsigned intstat; unsigned intstat;
unsigned cur_enabled; unsigned cur_enabled;
...@@ -785,7 +785,7 @@ static int dio200_handle_read_intr(struct comedi_device * dev, struct comedi_sub ...@@ -785,7 +785,7 @@ static int dio200_handle_read_intr(struct comedi_device * dev, struct comedi_sub
*/ */
static int dio200_subdev_intr_cancel(struct comedi_device * dev, struct comedi_subdevice * s) static int dio200_subdev_intr_cancel(struct comedi_device * dev, struct comedi_subdevice * s)
{ {
dio200_subdev_intr *subpriv = s->private; struct dio200_subdev_intr *subpriv = s->private;
unsigned long flags; unsigned long flags;
comedi_spin_lock_irqsave(&subpriv->spinlock, flags); comedi_spin_lock_irqsave(&subpriv->spinlock, flags);
...@@ -910,7 +910,7 @@ dio200_subdev_intr_cmdtest(struct comedi_device * dev, struct comedi_subdevice * ...@@ -910,7 +910,7 @@ dio200_subdev_intr_cmdtest(struct comedi_device * dev, struct comedi_subdevice *
static int dio200_subdev_intr_cmd(struct comedi_device * dev, struct comedi_subdevice * s) static int dio200_subdev_intr_cmd(struct comedi_device * dev, struct comedi_subdevice * s)
{ {
struct comedi_cmd *cmd = &s->async->cmd; struct comedi_cmd *cmd = &s->async->cmd;
dio200_subdev_intr *subpriv = s->private; struct dio200_subdev_intr *subpriv = s->private;
unsigned long flags; unsigned long flags;
int event = 0; int event = 0;
...@@ -956,7 +956,7 @@ static int ...@@ -956,7 +956,7 @@ static int
dio200_subdev_intr_init(struct comedi_device * dev, struct comedi_subdevice * s, dio200_subdev_intr_init(struct comedi_device * dev, struct comedi_subdevice * s,
unsigned long iobase, unsigned valid_isns, int has_int_sce) unsigned long iobase, unsigned valid_isns, int has_int_sce)
{ {
dio200_subdev_intr *subpriv; struct dio200_subdev_intr *subpriv;
subpriv = kzalloc(sizeof(*subpriv), GFP_KERNEL); subpriv = kzalloc(sizeof(*subpriv), GFP_KERNEL);
if (!subpriv) { if (!subpriv) {
...@@ -1000,7 +1000,7 @@ dio200_subdev_intr_init(struct comedi_device * dev, struct comedi_subdevice * s, ...@@ -1000,7 +1000,7 @@ dio200_subdev_intr_init(struct comedi_device * dev, struct comedi_subdevice * s,
static void static void
dio200_subdev_intr_cleanup(struct comedi_device * dev, struct comedi_subdevice * s) dio200_subdev_intr_cleanup(struct comedi_device * dev, struct comedi_subdevice * s)
{ {
dio200_subdev_intr *subpriv = s->private; struct dio200_subdev_intr *subpriv = s->private;
if (subpriv) { if (subpriv) {
kfree(subpriv); kfree(subpriv);
...@@ -1249,7 +1249,7 @@ dio200_subdev_8254_init(struct comedi_device * dev, struct comedi_subdevice * s, ...@@ -1249,7 +1249,7 @@ dio200_subdev_8254_init(struct comedi_device * dev, struct comedi_subdevice * s,
static void static void
dio200_subdev_8254_cleanup(struct comedi_device * dev, struct comedi_subdevice * s) dio200_subdev_8254_cleanup(struct comedi_device * dev, struct comedi_subdevice * s)
{ {
dio200_subdev_intr *subpriv = s->private; struct dio200_subdev_intr *subpriv = s->private;
if (subpriv) { if (subpriv) {
kfree(subpriv); kfree(subpriv);
......
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