mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 18:13:41 +02:00
media: pci: mg4b: use iio_push_to_buffers_with_ts()
Replace iio_push_to_buffers_with_timestamp() with iio_push_to_buffers_with_ts(). This adds an extra argument with the buffer size to ensure that we aren't writing past the end of the buffer. No functional change. Suggested-by: Jonathan Cameron <jic23@kernel.org> Closes: https://lore.kernel.org/linux-iio/20250724115610.011110fb@jic23-huawei/ Signed-off-by: David Lechner <dlechner@baylibre.com> Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
parent
142b1473c8
commit
2a0935ac4b
|
|
@ -97,7 +97,7 @@ static irqreturn_t trigger_handler(int irq, void *p)
|
|||
scan.data = mgb4_read_reg(&st->mgbdev->video, 0xA0);
|
||||
mgb4_write_reg(&st->mgbdev->video, 0xA0, scan.data);
|
||||
|
||||
iio_push_to_buffers_with_timestamp(indio_dev, &scan, pf->timestamp);
|
||||
iio_push_to_buffers_with_ts(indio_dev, &scan, sizeof(scan), pf->timestamp);
|
||||
iio_trigger_notify_done(indio_dev->trig);
|
||||
|
||||
mgb4_write_reg(&st->mgbdev->video, 0xB4, 1U << 11);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user