[PATCH 07/11] iio: adc : at91 : replace deprecated iio_push_to_buffers_with_timestamp()

From: Atharv Dubey

Date: Mon Mar 16 2026 - 13:35:30 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/at91_adc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iio/adc/at91_adc.c b/drivers/iio/adc/at91_adc.c
index 920dd9ffd27a..840dc9000022 100644
--- a/drivers/iio/adc/at91_adc.c
+++ b/drivers/iio/adc/at91_adc.c
@@ -275,7 +275,7 @@ static irqreturn_t at91_adc_trigger_handler(int irq, void *p)
j++;
}

- iio_push_to_buffers_with_timestamp(idev, st->buffer, pf->timestamp);
+ iio_push_to_buffers_with_ts(idev, st->buffer, sizeof(st->buffer), pf->timestamp);

iio_trigger_notify_done(idev->trig);

--
2.43.0