]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (lm75) Fixup tmp75b clr_mask
authorIker Perez del Palomar Sustatxa <iker.perez@codethink.co.uk>
Thu, 1 Aug 2019 07:53:24 +0000 (08:53 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 7 Aug 2019 21:50:49 +0000 (14:50 -0700)
commitf083517ad53576205358493aa9c7c2f70e43df5d
tree015b2e5ac38396edee6023302ea974331ffb64fc
parent26a4d97171e2f4f10fb32ca6679ee97e57996352
hwmon: (lm75) Fixup tmp75b clr_mask

The configuration register of the tmp75b sensor is 16bit long, however
the first byte is reserved, so there is not no need to take care of it.

Because the order of the bytes is little endian and it is only necessary
to write one byte, the desired bits must be shifted into a 8 bit range.

Fixes: c03d32d3b6df ("hwmon: (lm75) Add support for TMP75B")
Cc: stable@vger.kernel.org
Signed-off-by: Iker Perez del Palomar Sustatxa <iker.perez@codethink.co.uk>
Link: https://lore.kernel.org/r/20190801075324.4638-1-iker.perez@codethink.co.uk
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/lm75.c