iio: magnetometer: Use iio_push_to_buffers_with_ts() to provide length for runtime...
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 13 Apr 2025 10:34:43 +0000 (11:34 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 21 May 2025 13:20:27 +0000 (14:20 +0100)
commitf4cd499970cc9a0ade52132075d4faabf5ef77f5
tree4cd8d1fb12917aeca531f73862bfafd35e54a0f4
parent77e8a16a7d820af111679952ded15a795471abdd
iio: magnetometer: 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-21-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/magnetometer/af8133j.c
drivers/iio/magnetometer/ak8974.c
drivers/iio/magnetometer/ak8975.c
drivers/iio/magnetometer/als31300.c
drivers/iio/magnetometer/bmc150_magn.c
drivers/iio/magnetometer/hmc5843.h
drivers/iio/magnetometer/hmc5843_core.c
drivers/iio/magnetometer/mag3110.c
drivers/iio/magnetometer/rm3100-core.c
drivers/iio/magnetometer/yamaha-yas530.c