[PATCH] iio: adc: ad7766: Update to use iio_push_to_buffers_with_ts()

From: Ethan Tidmore

Date: Sun May 10 2026 - 18:14:25 EST


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@xxxxxxxxx>
---
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