On 10/13/2012 09:06 AM, Peter Meerwald wrote: > Signed-off-by: Peter Meerwald <pmeerw@xxxxxxxxxx> > Acked-by: Lars-Peter Clausen <lars@xxxxxxxxxx> added to togreg branch of iio.git > --- > drivers/staging/iio/accel/adis16209_trigger.c | 11 +---------- > drivers/staging/iio/accel/adis16240_trigger.c | 11 +---------- > 2 files changed, 2 insertions(+), 20 deletions(-) > > diff --git a/drivers/staging/iio/accel/adis16209_trigger.c b/drivers/staging/iio/accel/adis16209_trigger.c > index 2ad93dc..1122803 100644 > --- a/drivers/staging/iio/accel/adis16209_trigger.c > +++ b/drivers/staging/iio/accel/adis16209_trigger.c > @@ -8,15 +8,6 @@ > #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 > **/ > static int adis16209_data_rdy_trigger_set_state(struct iio_trigger *trig, > @@ -45,7 +36,7 @@ int adis16209_probe_trigger(struct iio_dev *indio_dev) > } > > ret = request_irq(st->us->irq, > - adis16209_data_rdy_trig_poll, > + iio_trigger_generic_data_rdy_poll, > IRQF_TRIGGER_RISING, > "adis16209", > st->trig); > diff --git a/drivers/staging/iio/accel/adis16240_trigger.c b/drivers/staging/iio/accel/adis16240_trigger.c > index fa90a22..f3caf09 100644 > --- a/drivers/staging/iio/accel/adis16240_trigger.c > +++ b/drivers/staging/iio/accel/adis16240_trigger.c > @@ -8,15 +8,6 @@ > #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 > **/ > static int adis16240_data_rdy_trigger_set_state(struct iio_trigger *trig, > @@ -45,7 +36,7 @@ int adis16240_probe_trigger(struct iio_dev *indio_dev) > } > > ret = request_irq(st->us->irq, > - adis16240_data_rdy_trig_poll, > + iio_trigger_generic_data_rdy_poll, > IRQF_TRIGGER_RISING, > "adis16240", > st->trig); > -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html