iio: adc : mt6360 : replace deprecated iio_push_to_buffers_with_timestamp()
Subsystems (2)
PATCH 10/11 iio: adc : mt6360 : replace deprecated iio_push_to_buffers_with_timestamp()
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 <[email protected]>
--- drivers/iio/adc/mt6360-adc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/adc/mt6360-adc.c +1 -1
@@ -276,7 +276,7 @@ static irqreturn_t mt6360_adc_trigger_handler(int irq, void *p) data.values[i++] = val; } -iio_push_to_buffers_with_timestamp (indio_dev, &data,iio_get_time_ns (indio_dev)); +iio_push_to_buffers_with_ts (indio_dev, &data,sizeof (data),iio_get_time_ns (indio_dev)); out:iio_trigger_notify_done (indio_dev->trig);
Signature · 1 line
2.43.0