]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: light: tcs3414: Use iio_push_to_buffers_with_ts() to allow source size runtime...
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 2 Aug 2025 16:44:32 +0000 (17:44 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 16 Aug 2025 14:56:47 +0000 (15:56 +0100)
commit7cacdd9380e4f8e3dd8cbb410f79061fb078ccdb
tree24bf6343b602feea4e68b8d8ef0db77e4b67f8db
parentcb8453db633071ae2b8fefd4be37d74e925d16f5
iio: light: tcs3414: 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-13-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/tcs3414.c