linux/drivers/iio
Oliver Lang 202a64ad8f iio: ltr501: ltr501_read_ps(): add missing endianness conversion
commit 71b33f6f93ef9462c84560e2236ed22209d26a58 upstream.

The PS ADC Channel data is spread over 2 registers in little-endian
form. This patch adds the missing endianness conversion.

Fixes: 2690be9051 ("iio: Add Lite-On ltr501 ambient light / proximity sensor driver")
Signed-off-by: Oliver Lang <Oliver.Lang@gossenmetrawatt.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Tested-by: Nikita Travkin <nikita@trvn.ru> # ltr559
Link: https://lore.kernel.org/r/20210610134619.2101372-4-mkl@pengutronix.de
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-07-14 16:53:06 +02:00
..
accel iio:accel:adis16201: Fix wrong axis assignment that prevents loading 2021-05-14 09:44:12 +02:00
adc iio: adc: ad7793: Add missing error code in ad7793_setup() 2021-06-03 08:59:04 +02:00
afe
amplifiers
buffer
chemical
common
dac iio: ad5504: Fix setting power-down state 2021-01-27 11:47:48 +01:00
dummy
frequency
gyro iio: gyro: fxas21002c: balance runtime power in error path 2021-06-03 08:59:04 +02:00
health
humidity iio: hid-sensor-humidity: Fix alignment issue of timestamp channel 2021-03-24 11:26:42 +01:00
imu iio: adis16400: Fix an error code in adis16400_initial_setup() 2021-03-24 11:26:42 +01:00
light iio: ltr501: ltr501_read_ps(): add missing endianness conversion 2021-07-14 16:53:06 +02:00
magnetometer iio:magnetometer:mag3110: Fix alignment and data leak issues. 2020-12-30 11:51:44 +01:00
multiplexer
orientation
potentiometer
potentiostat
pressure iio:pressure:mpl3115: Force alignment of buffer 2020-12-30 11:51:44 +01:00
proximity iio: proximity: pulsedlight: Fix rumtime PM imbalance on error 2021-05-19 10:08:30 +02:00
resolver
temperature iio: hid-sensor-temperature: Fix issues of timestamp channel 2021-03-24 11:26:43 +01:00
trigger iio: hrtimer-trigger: Mark hrtimer to expire in hard interrupt context 2020-12-30 11:51:17 +01:00
Kconfig
Makefile
iio_core.h
iio_core_trigger.h
industrialio-buffer.c iio: buffer: Fix demux update 2020-12-30 11:51:44 +01:00
industrialio-configfs.c
industrialio-core.c
industrialio-event.c
industrialio-sw-device.c
industrialio-sw-trigger.c
industrialio-trigger.c
industrialio-triggered-event.c
inkern.c