From: Ethan Tidmore <ethantidmore06@gmail.com>
To: Lars-Peter Clausen <lars@metafoo.de>,
Michael Hennerich <Michael.Hennerich@analog.com>,
Jonathan Cameron <jic23@kernel.org>
Cc: "David Lechner" <dlechner@baylibre.com>,
"Nuno Sá" <nuno.sa@analog.com>,
"Andy Shevchenko" <andy@kernel.org>,
linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org,
"Ethan Tidmore" <ethantidmore06@gmail.com>
Subject: [PATCH] iio: adc: ad7766: Update to use iio_push_to_buffers_with_ts()
Date: Sun, 10 May 2026 17:14:04 -0500 [thread overview]
Message-ID: <20260510221404.22834-1-ethantidmore06@gmail.com> (raw)
The old ABI function iio_push_to_buffers_with_timestamp() is no longer
preferred due to it being inherently unsafe.
Update to the current standard iio_push_to_buffers_with_ts().
Signed-off-by: Ethan Tidmore <ethantidmore06@gmail.com>
---
I asked a while back regarding possible things that would suffice for a
GSoC proposal, that has came and went, but I remember Jonathan
mentioning wanting this to be done. If this is correct, would a series
be preferred next time?
drivers/iio/adc/ad7766.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/iio/adc/ad7766.c b/drivers/iio/adc/ad7766.c
index 9e4a66477d2d..4f256ce522c2 100644
--- a/drivers/iio/adc/ad7766.c
+++ b/drivers/iio/adc/ad7766.c
@@ -74,8 +74,8 @@ static irqreturn_t ad7766_trigger_handler(int irq, void *p)
if (ret < 0)
goto done;
- iio_push_to_buffers_with_timestamp(indio_dev, ad7766->data,
- pf->timestamp);
+ iio_push_to_buffers_with_ts(indio_dev, ad7766->data, sizeof(ad7766->data),
+ pf->timestamp);
done:
iio_trigger_notify_done(indio_dev->trig);
--
2.54.0
reply other threads:[~2026-05-10 22:14 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20260510221404.22834-1-ethantidmore06@gmail.com \
--to=ethantidmore06@gmail.com \
--cc=Michael.Hennerich@analog.com \
--cc=andy@kernel.org \
--cc=dlechner@baylibre.com \
--cc=jic23@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nuno.sa@analog.com \
/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