[PATCH 2/3] iio: gyro: bmg160: use iio_push_to_buffers_with_ts()

From: Gabriel Rondon

Date: Fri Aug 21 2026 - 10:13:07 EST


Replace the deprecated iio_push_to_buffers_with_timestamp() with
iio_push_to_buffers_with_ts(), passing the size of the pushed buffer.

Signed-off-by: Gabriel Rondon <grondon@xxxxxxxxx>
---
drivers/iio/gyro/bmg160_core.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/iio/gyro/bmg160_core.c b/drivers/iio/gyro/bmg160_core.c
index d611341a0e2a..b007f46d3fd6 100644
--- a/drivers/iio/gyro/bmg160_core.c
+++ b/drivers/iio/gyro/bmg160_core.c
@@ -897,8 +897,8 @@ static irqreturn_t bmg160_trigger_handler(int irq, void *p)
if (ret < 0)
goto err;

- iio_push_to_buffers_with_timestamp(indio_dev, &data->scan,
- pf->timestamp);
+ iio_push_to_buffers_with_ts(indio_dev, &data->scan,
+ sizeof(data->scan), pf->timestamp);
err:
iio_trigger_notify_done(indio_dev->trig);

--
2.50.1 (Apple Git-155)