]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (lm90) Stop using R_/W_ register prefix
authorGuenter Roeck <linux@roeck-us.net>
Sun, 31 Oct 2021 09:01:41 +0000 (02:01 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 13 Jul 2022 15:38:17 +0000 (08:38 -0700)
commitf3e4fc458d9c070ef56dd18996994a580db74e2a
treec26116d30dc3156987983a70c4b60214281f7a27
parent33ee5100837181a77543205daa1d1d85e0334907
hwmon: (lm90) Stop using R_/W_ register prefix

The register write address either matches the read address, or it is the
read address plus 6. Simplify the code and resolve the write address
programmatically instead of having two defines for each register.

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