linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Peter Meerwald <pmeerw@pmeerw.net>, linux-iio@vger.kernel.org
Subject: Re: [PATCH 1/2] iio: Remove obsolete variable in adjd_s311 driver
Date: Sat, 11 Jan 2014 11:52:07 +0000	[thread overview]
Message-ID: <52D13067.7080404@kernel.org> (raw)
In-Reply-To: <1389133774-28091-1-git-send-email-pmeerw@pmeerw.net>



On 07/01/14 22:29, Peter Meerwald wrote:
> len variable become obsolete with
> iio_push_to_buffers_with_timestamp()
>
> Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Applied to the togreg branch of iio.git.

Thanks
> ---
>   drivers/iio/light/adjd_s311.c | 2 --
>   1 file changed, 2 deletions(-)
>
> diff --git a/drivers/iio/light/adjd_s311.c b/drivers/iio/light/adjd_s311.c
> index f306847..1d8ecb7 100644
> --- a/drivers/iio/light/adjd_s311.c
> +++ b/drivers/iio/light/adjd_s311.c
> @@ -120,7 +120,6 @@ static irqreturn_t adjd_s311_trigger_handler(int irq, void *p)
>   	struct iio_dev *indio_dev = pf->indio_dev;
>   	struct adjd_s311_data *data = iio_priv(indio_dev);
>   	s64 time_ns = iio_get_time_ns();
> -	int len = 0;
>   	int i, j = 0;
>
>   	int ret = adjd_s311_req_data(indio_dev);
> @@ -135,7 +134,6 @@ static irqreturn_t adjd_s311_trigger_handler(int irq, void *p)
>   			goto done;
>
>   		data->buffer[j++] = ret & ADJD_S311_DATA_MASK;
> -		len += 2;
>   	}
>
>   	iio_push_to_buffers_with_timestamp(indio_dev, data->buffer, time_ns);
>

      parent reply	other threads:[~2014-01-11 11:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-07 22:29 [PATCH 1/2] iio: Remove obsolete variable in adjd_s311 driver Peter Meerwald
2014-01-07 22:29 ` [PATCH 2/2] iio: Remove obsolete variable in tcs3472 driver Peter Meerwald
2014-01-11 11:52   ` Jonathan Cameron
2014-01-11 11:52 ` Jonathan Cameron [this message]

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=52D13067.7080404@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).