]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (lm90) Let lm90_read16() handle 8-bit read operations
authorGuenter Roeck <linux@roeck-us.net>
Fri, 19 Nov 2021 22:24:18 +0000 (14:24 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 13 Jul 2022 15:38:18 +0000 (08:38 -0700)
commit66984c45e7a73d980e24e454fba5c3cb90c72410
tree2ed811b77df957a7027c1a25992349e44af61d71
parentf9e3660c05178853ef4d68ef1c341e5fe22870e8
hwmon: (lm90) Let lm90_read16() handle 8-bit read operations

Simplify the code a bit by handling single-register read operations
in lm90_read16(). All we need to do is to skip the low-byte read
operation if the register address is 0.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/lm90.c