]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: light: st_uvis25: Use iio_push_to_buffers_with_ts() to allow source size runtime...
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 2 Aug 2025 16:44:31 +0000 (17:44 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 16 Aug 2025 14:55:57 +0000 (15:55 +0100)
commitcb8453db633071ae2b8fefd4be37d74e925d16f5
treed07b4218aa35aabbde967e49d8e447144961fb54
parent596081d33bd872e5148439f2da0172fcc56d956f
iio: light: st_uvis25: Use iio_push_to_buffers_with_ts() to allow source size runtime check

Use iio_push_to_buffers_with_ts() to allow source size runtime check.

Also move the structure used as the source to the stack as it is only 16
bytes and not the target of an DMA or similar.

Reviewed-by: Matti Vaittinen <mazziesaccount@gmail.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Link: https://patch.msgid.link/20250802164436.515988-12-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/st_uvis25.h
drivers/iio/light/st_uvis25_core.c