]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: light: tcs3472: Use iio_push_to_buffers_with_ts() to allow source size runtime...
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 2 Aug 2025 16:44:33 +0000 (17:44 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 16 Aug 2025 14:57:26 +0000 (15:57 +0100)
commit66c556aa8358cd71979da9738a810e6074918daa
tree5bfc3ae7e497ff7a5445356992e5cc1e39dc7c34
parent7cacdd9380e4f8e3dd8cbb410f79061fb078ccdb
iio: light: tcs3472: 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: Andy Shevchenko <andy@kernel.org>
Link: https://patch.msgid.link/20250802164436.515988-14-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/tcs3472.c