linux/drivers/iio/proximity
David Lechner de18e978d0 iio: proximity: isl29501: fix buffered read on big-endian systems
Fix passing a u32 value as a u16 buffer scan item. This works on little-
endian systems, but not on big-endian systems.

A new local variable is introduced for getting the register value and
the array is changed to a struct to make the data layout more explicit
rather than just changing the type and having to recalculate the proper
length needed for the timestamp.

Fixes: 1c28799257 ("iio: light: isl29501: Add support for the ISL29501 ToF sensor.")
Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250722-iio-use-more-iio_declare_buffer_with_ts-7-v2-1-d3ebeb001ed3@baylibre.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2025-08-11 21:35:01 +01:00
..
Kconfig iio: Add driver for Nicera D3-323-AA PIR sensor 2025-07-14 19:20:55 +01:00
Makefile iio: Add driver for Nicera D3-323-AA PIR sensor 2025-07-14 19:20:55 +01:00
as3935.c iio: proximity: Use iio_push_to_buffers_with_ts() to provide length for runtime checks. 2025-05-21 14:20:26 +01:00
aw96103.c iio: proximity: aw96103: Constify struct iio_info​ 2024-12-07 17:54:21 +00:00
cros_ec_mkbp_proximity.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
d3323aa.c iio: Add driver for Nicera D3-323-AA PIR sensor 2025-07-14 19:20:55 +01:00
hx9023s.c iio: proximity: Use iio_push_to_buffers_with_ts() to provide length for runtime checks. 2025-05-21 14:20:26 +01:00
irsd200.c iio: proximity: irsd200: use = { } instead of memset() 2025-06-26 19:32:57 +01:00
isl29501.c iio: proximity: isl29501: fix buffered read on big-endian systems 2025-08-11 21:35:01 +01:00
mb1232.c iio: proximity: Use iio_push_to_buffers_with_ts() to provide length for runtime checks. 2025-05-21 14:20:26 +01:00
ping.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
pulsedlight-lidar-lite-v2.c iio: proximity: Use iio_push_to_buffers_with_ts() to provide length for runtime checks. 2025-05-21 14:20:26 +01:00
rfd77402.c iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
srf04.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
srf08.c iio: proximity: Use iio_push_to_buffers_with_ts() to provide length for runtime checks. 2025-05-21 14:20:26 +01:00
sx9310.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
sx9324.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
sx9360.c iio: proximity: sx9360: Stop using iio_device_claim_direct_scoped() 2025-02-17 12:57:31 +00:00
sx9500.c iio: Remove single use of macro definition for IRQ name 2025-06-09 07:45:36 +01:00
sx_common.c iio: proximity: Use iio_push_to_buffers_with_ts() to provide length for runtime checks. 2025-05-21 14:20:26 +01:00
sx_common.h iio: proximity: Use aligned_s64 instead of open coding alignment. 2024-12-28 14:28:15 +00:00
vcnl3020.c iio: proximity: vcnl3020: make vcnl3020_property const 2025-07-13 15:36:23 +01:00
vl53l0x-i2c.c iio: proximity: Use iio_push_to_buffers_with_ts() to provide length for runtime checks. 2025-05-21 14:20:26 +01:00