]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (shtc1) fix shtc1 and shtw1 id mask
authorDan Robertson <dan@dlrobertson.com>
Thu, 5 Sep 2019 01:45:54 +0000 (01:45 +0000)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 10 Sep 2019 18:42:22 +0000 (11:42 -0700)
commit136d969b98798bec42fd9c303548129ae49f4942
tree76fbfc56928bbf23a623861ee90fa608eb2010b3
parent1a993fe9a757212a76cb39700fb000e199822a86
hwmon: (shtc1) fix shtc1 and shtw1 id mask

Fix an error in the bitmaskfor the shtc1 and shtw1 bitmask used to
retrieve the chip ID from the ID register. See section 5.7 of the shtw1
or shtc1 datasheet for details.

Fixes: 43bf019b4b487df9dba97b34cd6ecc62255ee4ac ("hwmon: add support for Sensirion SHTC1 sensor")
Signed-off-by: Dan Robertson <dan@dlrobertson.com>
Link: https://lore.kernel.org/r/20190905014554.21658-3-dan@dlrobertson.com
[groeck: Reordered to be first in series and adjusted accordingly]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/shtc1.c