Frank Li
a551c26e8e
iio: light: vcnl4035: fixed chip ID check
...
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: 55707294c4eb ("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>
2023-05-13 17:54:58 +01:00
..
2023-05-13 17:54:57 +01:00
2023-05-13 17:54:57 +01:00
2023-04-10 12:26:34 +01:00
2022-07-16 19:01:14 +01:00
2022-11-23 19:44:01 +00:00
2022-11-23 19:44:04 +00:00
2023-01-08 12:59:44 +00:00
2023-03-11 12:18:27 +00:00
2023-03-11 12:18:29 +00:00
2023-04-27 12:07:50 -07:00
2022-06-04 14:04:27 -07:00
2022-11-23 19:43:57 +00:00
2023-03-18 16:35:26 +00:00
2023-03-11 12:18:29 +00:00
2022-11-27 15:05:05 +01:00
2023-03-11 12:18:29 +00:00
2023-04-27 12:07:50 -07:00
2023-05-13 17:54:58 +01:00
2023-05-13 17:54:56 +01:00
2022-11-23 19:43:57 +00:00
2021-07-13 18:21:53 +01:00
2021-06-16 14:53:13 +01:00
2022-11-23 20:20:30 +00:00
2023-03-11 12:18:29 +00:00
2023-03-11 12:18:29 +00:00
2023-03-12 16:18:41 +00:00
2022-06-14 11:53:19 +01:00
2023-03-11 12:18:29 +00:00
2022-08-15 22:30:01 +01:00
2023-03-11 12:18:29 +00:00
2021-03-11 20:47:02 +00:00
2021-11-17 17:51:35 +00:00
2023-02-18 14:07:58 +00:00
2023-01-21 17:35:23 +00:00
2022-11-27 15:05:05 +01:00
2023-05-13 17:54:57 +01:00
2022-07-01 11:19:08 +01:00
2022-11-12 17:53:35 +00:00
2023-03-11 12:18:29 +00:00
2021-05-17 13:49:13 +01:00
2022-08-15 22:30:00 +01:00
2023-04-10 12:26:34 +01:00
2023-04-10 12:26:34 +01:00
2022-11-23 19:44:00 +00:00