Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
#include <linux/iio/trigger.h>
#include "adis16209.h"
-/**
- * adis16209_data_rdy_trig_poll() the event handler for the data rdy trig
- **/
-static irqreturn_t adis16209_data_rdy_trig_poll(int irq, void *trig)
-{
- iio_trigger_poll(trig, iio_get_time_ns());
- return IRQ_HANDLED;
-}
-
/**
* adis16209_data_rdy_trigger_set_state() set datardy interrupt state
**/
}
ret = request_irq(st->us->irq,
- adis16209_data_rdy_trig_poll,
+ iio_trigger_generic_data_rdy_poll,
IRQF_TRIGGER_RISING,
"adis16209",
st->trig);
#include <linux/iio/trigger.h>
#include "adis16240.h"
-/**
- * adis16240_data_rdy_trig_poll() the event handler for the data rdy trig
- **/
-static irqreturn_t adis16240_data_rdy_trig_poll(int irq, void *trig)
-{
- iio_trigger_poll(trig, iio_get_time_ns());
- return IRQ_HANDLED;
-}
-
/**
* adis16240_data_rdy_trigger_set_state() set datardy interrupt state
**/
}
ret = request_irq(st->us->irq,
- adis16240_data_rdy_trig_poll,
+ iio_trigger_generic_data_rdy_poll,
IRQF_TRIGGER_RISING,
"adis16240",
st->trig);