linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Peter Meerwald <pmeerw@pmeerw.net>
Cc: linux-iio@vger.kernel.org
Subject: Re: [PATCH] staging iio: use iio_trigger_generic_data_rdy_poll() in accel/adis16209,adis16240 driver
Date: Sat, 13 Oct 2012 10:42:25 +0100	[thread overview]
Message-ID: <50793781.4030007@kernel.org> (raw)
In-Reply-To: <1350115595-7107-3-git-send-email-pmeerw@pmeerw.net>

On 10/13/2012 09:06 AM, Peter Meerwald wrote:
> Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
> Acked-by: Lars-Peter Clausen <lars@metafoo.de>
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);
> 

  reply	other threads:[~2012-10-13  9:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-13  8:06 [PATCH] iio: remove useless irq_enabled variable in at91 Peter Meerwald
2012-10-13  8:06 ` [PATCH] iio: use iio_push_to_buffer() in at91 driver Peter Meerwald
2012-10-13  9:40   ` Jonathan Cameron
2012-10-13  8:06 ` [PATCH] staging iio: use iio_trigger_generic_data_rdy_poll() in accel/adis16209,adis16240 driver Peter Meerwald
2012-10-13  9:42   ` Jonathan Cameron [this message]
2012-10-13  8:06 ` [PATCH] iio: fix spelling of Accelerometer in Kconfig Peter Meerwald
2012-10-13  9:43   ` Jonathan Cameron
2012-10-13  9:37 ` [PATCH] iio: remove useless irq_enabled variable in at91 Jonathan Cameron

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50793781.4030007@kernel.org \
    --to=jic23@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=pmeerw@pmeerw.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).