Commit b9a69a19 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: ni_mio_common: use comedi_handle_events()

cfc_handle_events() is just a wrapper around comedi_handle_events().
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1c27ce60
...@@ -1462,7 +1462,7 @@ static void handle_gpct_interrupt(struct comedi_device *dev, ...@@ -1462,7 +1462,7 @@ static void handle_gpct_interrupt(struct comedi_device *dev,
ni_tio_handle_interrupt(&devpriv->counter_dev->counters[counter_index], ni_tio_handle_interrupt(&devpriv->counter_dev->counters[counter_index],
s); s);
cfc_handle_events(dev, s); comedi_handle_events(dev, s);
#endif #endif
} }
...@@ -1518,7 +1518,7 @@ static void handle_a_interrupt(struct comedi_device *dev, unsigned short status, ...@@ -1518,7 +1518,7 @@ static void handle_a_interrupt(struct comedi_device *dev, unsigned short status,
if (comedi_is_subdevice_running(s)) { if (comedi_is_subdevice_running(s)) {
s->async->events |= s->async->events |=
COMEDI_CB_ERROR | COMEDI_CB_EOA; COMEDI_CB_ERROR | COMEDI_CB_EOA;
cfc_handle_events(dev, s); comedi_handle_events(dev, s);
} }
return; return;
} }
...@@ -1533,7 +1533,7 @@ static void handle_a_interrupt(struct comedi_device *dev, unsigned short status, ...@@ -1533,7 +1533,7 @@ static void handle_a_interrupt(struct comedi_device *dev, unsigned short status,
if (status & (AI_Overrun_St | AI_Overflow_St)) if (status & (AI_Overrun_St | AI_Overflow_St))
s->async->events |= COMEDI_CB_OVERFLOW; s->async->events |= COMEDI_CB_OVERFLOW;
cfc_handle_events(dev, s); comedi_handle_events(dev, s);
return; return;
} }
if (status & AI_SC_TC_St) { if (status & AI_SC_TC_St) {
...@@ -1559,7 +1559,7 @@ static void handle_a_interrupt(struct comedi_device *dev, unsigned short status, ...@@ -1559,7 +1559,7 @@ static void handle_a_interrupt(struct comedi_device *dev, unsigned short status,
if ((status & AI_STOP_St)) if ((status & AI_STOP_St))
ni_handle_eos(dev, s); ni_handle_eos(dev, s);
cfc_handle_events(dev, s); comedi_handle_events(dev, s);
} }
static void ack_b_interrupt(struct comedi_device *dev, unsigned short b_status) static void ack_b_interrupt(struct comedi_device *dev, unsigned short b_status)
...@@ -1635,7 +1635,7 @@ static void handle_b_interrupt(struct comedi_device *dev, ...@@ -1635,7 +1635,7 @@ static void handle_b_interrupt(struct comedi_device *dev,
} }
#endif #endif
cfc_handle_events(dev, s); comedi_handle_events(dev, s);
} }
static void ni_ai_munge(struct comedi_device *dev, struct comedi_subdevice *s, static void ni_ai_munge(struct comedi_device *dev, struct comedi_subdevice *s,
...@@ -3693,7 +3693,7 @@ static void handle_cdio_interrupt(struct comedi_device *dev) ...@@ -3693,7 +3693,7 @@ static void handle_cdio_interrupt(struct comedi_device *dev)
M_Offset_CDIO_Command); M_Offset_CDIO_Command);
/* s->async->events |= COMEDI_CB_EOA; */ /* s->async->events |= COMEDI_CB_EOA; */
} }
cfc_handle_events(dev, s); comedi_handle_events(dev, s);
} }
static int ni_serial_hw_readwrite8(struct comedi_device *dev, static int ni_serial_hw_readwrite8(struct comedi_device *dev,
......
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