iio: chemical: Use iio_push_to_buffers_with_ts() to provide length for runtime checks.
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 13 Apr 2025 10:34:35 +0000 (11:34 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 21 May 2025 13:20:26 +0000 (14:20 +0100)
commitcb4691913d9edafe1d126548dfcdc748733da00b
treecac9af80e9e7bacc8e2cccc6a3e4f2d785113d42
parent838a65c1d650b72849fe79ec4d52583542d7e346
iio: chemical: Use iio_push_to_buffers_with_ts() to provide length for runtime checks.

This new function allows us to perform debug checks in the helper to ensure
that the overrun does not occur.  Use it in all the simple cases where
either a static buffer or a structure is used in the drivers.

Reviewed-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250413103443.2420727-13-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/chemical/atlas-sensor.c
drivers/iio/chemical/bme680_core.c
drivers/iio/chemical/ccs811.c
drivers/iio/chemical/ens160_core.c
drivers/iio/chemical/pms7003.c
drivers/iio/chemical/scd30_core.c
drivers/iio/chemical/scd4x.c
drivers/iio/chemical/sps30.c