From: Jonathan Cameron <jic23@kernel.org>
To: linux-iio@vger.kernel.org
Subject: Re: [PATCH] staging:iio:adc:max1363 actually make timestamp controllable
Date: Sun, 04 Dec 2011 20:44:56 +0000 [thread overview]
Message-ID: <4EDBDBC8.5040508@kernel.org> (raw)
In-Reply-To: <1322396541-29959-1-git-send-email-jic23@kernel.org>
gone to Greg
> From: Jonathan Cameron <jic23@cam.ac.uk>
>
> Previously timestamps were always on in this driver.
>
> Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
> ---
> A random minor fixlet that has been in my tree far too long.
>
> drivers/staging/iio/adc/max1363_ring.c | 5 ++---
> 1 files changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/staging/iio/adc/max1363_ring.c b/drivers/staging/iio/adc/max1363_ring.c
> index a87fbe8..3c5e199 100644
> --- a/drivers/staging/iio/adc/max1363_ring.c
> +++ b/drivers/staging/iio/adc/max1363_ring.c
> @@ -138,9 +138,8 @@ static irqreturn_t max1363_trigger_handler(int irq, void *p)
> goto done;
>
> time_ns = iio_get_time_ns();
> -
> - memcpy(rxbuf + d_size - sizeof(s64), &time_ns, sizeof(time_ns));
> -
> + if (indio_dev->buffer->scan_timestamp)
> + memcpy(rxbuf + d_size - sizeof(s64), &time_ns, sizeof(time_ns));
> indio_dev->buffer->access->store_to(indio_dev->buffer, rxbuf, time_ns);
> done:
> iio_trigger_notify_done(indio_dev->trig);
prev parent reply other threads:[~2011-12-04 20:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-27 12:22 [PATCH] staging:iio:adc:max1363 actually make timestamp controllable Jonathan Cameron
2011-12-04 20:44 ` 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=4EDBDBC8.5040508@kernel.org \
--to=jic23@kernel.org \
--cc=linux-iio@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.