linux-yocto/drivers/iio/light
Javier Carrasco 71c3926459 iio: light: as73211: fix channel handling in only-color triggered buffer
commit ab09c6cfe0 upstream.

The channel index is off by one unit if AS73211_SCAN_MASK_ALL is not
set (optimized path for color channel readings), and it must be shifted
instead of leaving an empty channel for the temperature when it is off.

Once the channel index is fixed, the uninitialized channel must be set
to zero to avoid pushing uninitialized data.

Add available_scan_masks for all channels and only-color channels to let
the IIO core demux and repack the enabled channels.

Cc: stable@vger.kernel.org
Fixes: 403e5586b5 ("iio: light: as73211: New driver")
Tested-by: Christian Eggers <ceggers@arri.de>
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://patch.msgid.link/20241214-iio_memset_scan_holes-v4-1-260b395b8ed5@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-02-21 13:49:48 +01:00
..
acpi-als.c
adjd_s311.c
adux1020.c
al3010.c iio: light: al3010: Fix an error handling path in al3010_probe() 2024-12-14 19:53:52 +01:00
al3320a.c
apds9300.c
apds9960.c
as73211.c iio: light: as73211: fix channel handling in only-color triggered buffer 2025-02-21 13:49:48 +01:00
bh1750.c
bh1780.c
cm3232.c
cm3323.c
cm3605.c
cm32181.c
cm36651.c
cros_ec_light_prox.c
gp2ap002.c
gp2ap020a00f.c
hid-sensor-als.c
hid-sensor-prox.c
iqs621-als.c
isl29018.c
isl29028.c
isl29125.c
jsa1212.c
Kconfig
lm3533-als.c
ltr501.c iio: light: ltr501: Add LTER0303 to the supported devices 2024-12-14 19:54:48 +01:00
ltrf216a.c
lv0104cs.c
Makefile
max44000.c
max44009.c
noa1305.c
opt3001.c iio: light: opt3001: add missing full-scale range value 2024-10-22 15:56:47 +02:00
pa12203001.c
rpr0521.c
si1133.c
si1145.c
st_uvis25_core.c
st_uvis25_i2c.c
st_uvis25_spi.c
st_uvis25.h
stk3310.c
tcs3414.c
tcs3472.c
tsl2563.c
tsl2583.c
tsl2591.c
tsl2772.c
tsl4531.c
us5182d.c
vcnl4000.c
vcnl4035.c iio: light: vcnl4035: fix information leak in triggered buffer 2025-01-17 13:34:46 +01:00
veml6030.c iio: light: veml6030: fix microlux value calculation 2024-11-08 16:26:45 +01:00
veml6070.c
vl6180.c
zopt2201.c