[PATCH 02/11] iio: ad7766: replace deprecated iio_push_to_buffers_with_timestamp()

From: Atharv Dubey

Date: Mon Mar 16 2026 - 13:28:53 EST


iio_push_to_buffers_with_timestamp() is deprecated. Replace it with
iio_push_to_buffers_with_ts(), which takes the buffer size as an
argument and helps avoid potential buffer overflows.

Signed-off-by: Atharv Dubey <atharvd440@xxxxxxxxx>
---
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..cc47b0474ceb 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.43.0