summaryrefslogtreecommitdiffstats
path: root/drivers/iio/dac
diff options
context:
space:
mode:
authorFrank Li <Frank.Li@nxp.com>2023-05-01 10:36:04 -0400
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2023-05-13 17:54:58 +0100
commita551c26e8e568fad42120843521529241b9bceec (patch)
tree64d0d2b939126778382db7488e7d4e840118efe1 /drivers/iio/dac
parent72c1d11074d6160f19760d57fc78b2a7f52bcb1a (diff)
downloadlinux-stable-a551c26e8e568fad42120843521529241b9bceec.tar.gz
linux-stable-a551c26e8e568fad42120843521529241b9bceec.tar.bz2
linux-stable-a551c26e8e568fad42120843521529241b9bceec.zip
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>
Diffstat (limited to 'drivers/iio/dac')
0 files changed, 0 insertions, 0 deletions