summaryrefslogtreecommitdiff
path: root/drivers/cdx/controller/cdx_rpmsg.c
diff options
context:
space:
mode:
authorDavid Lechner <dlechner@baylibre.com>2025-07-22 15:54:21 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-08-28 16:31:09 +0200
commit993e0cadd807995f35e3389fdf1c3da39519f816 (patch)
tree9e67af4d1c62f436dc80445e1cc0f312c4a4c87c /drivers/cdx/controller/cdx_rpmsg.c
parent88818b5288a60504dc99504ec73e219f80e32a90 (diff)
iio: proximity: isl29501: fix buffered read on big-endian systems
commit de18e978d0cda23e4c102e18092b63a5b0b3a800 upstream. 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: 1c28799257bc ("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/cdx/controller/cdx_rpmsg.c')
0 files changed, 0 insertions, 0 deletions