linux-stable/drivers/iio/light
Frank Li c3b25245e3 iio: light: vcnl4035: fixed chip ID check
commit a551c26e8e upstream.

VCNL4035 register(0xE) ID_L and ID_M define as:

 ID_L: 0x80
 ID_H: 7:6 (0:0)
       5:4 (0:0) slave address = 0x60 (7-bit)
           (0:1) slave address = 0x51 (7-bit)
           (1:0) slave address = 0x40 (7-bit)
           (1:0) slave address = 0x41 (7-bit)
       3:0 Version code default	(0:0:0:0)

So just check ID_L.

Fixes: 55707294c4 ("iio: light: Add support for vishay vcnl4035")
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20230501143605.1615549-1-Frank.Li@nxp.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-06-09 10:28:59 +02:00
..
acpi-als.c
adjd_s311.c
al3320a.c
apds9300.c
apds9960.c iio: light: apds9960: fix wrong register for gesture gain 2022-12-08 11:22:59 +01:00
bh1750.c
bh1780.c
cm3232.c
cm3323.c
cm3605.c
cm32181.c
cm36651.c
cros_ec_light_prox.c
gp2ap020a00f.c
hid-sensor-als.c
hid-sensor-prox.c
isl29018.c
isl29028.c iio: light: isl29028: Fix the warning in isl29028_remove() 2022-08-25 11:17:24 +02:00
isl29125.c iio: light: isl29125: Fix buffer alignment in iio_push_to_buffers_with_timestamp() 2021-07-14 16:53:39 +02:00
jsa1212.c
Kconfig iio: light: rpr0521: add missing Kconfig dependencies 2022-12-08 11:23:02 +01:00
lm3533-als.c
ltr501.c iio: ltr501: Don't return error code in trigger handler 2021-12-14 14:49:05 +01:00
lv0104cs.c
Makefile
max44000.c
max44009.c iio: light: max44009: add missing OF device matching 2023-05-17 11:35:46 +02:00
noa1305.c
opt3001.c iio: light: opt3001: Fixed timeout error when 0 lux 2021-10-20 11:40:15 +02:00
pa12203001.c
rpr0521.c
si1133.c
si1145.c
st_uvis25.h
st_uvis25_core.c
st_uvis25_i2c.c
st_uvis25_spi.c
stk3310.c iio: stk3310: Don't return error code in interrupt handler 2021-12-14 14:49:05 +01:00
tcs3414.c iio: light: tcs3414: Fix buffer alignment in iio_push_to_buffers_with_timestamp() 2021-07-14 16:53:39 +02:00
tcs3472.c iio: light: tcs3472: Fix buffer alignment in iio_push_to_buffers_with_timestamp() 2021-07-14 16:53:39 +02:00
tsl2563.c
tsl2583.c iio: light: tsl2583: Fix module unloading 2022-11-03 23:56:53 +09:00
tsl2772.c iio: light: tsl2772: fix reading proximity-diodes from device tree 2023-04-26 11:24:04 +02:00
tsl4531.c
us5182d.c
vcnl4000.c
vcnl4035.c iio: light: vcnl4035: fixed chip ID check 2023-06-09 10:28:59 +02:00
veml6070.c
vl6180.c
zopt2201.c