]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
hwmon: (tmp421) really disable channels
authorKrzysztof Adamski <krzysztof.adamski@nokia.com>
Thu, 14 Oct 2021 13:09:08 +0000 (15:09 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 15 Oct 2021 22:52:47 +0000 (15:52 -0700)
commitf3fbf4b81d30421d429c47b381353057c1fc1d68
tree72cbe4dbe2d3e95bb929c8d4b52a311dfc2c86ee
parent3fba10dc0341462a907c2eb31e1dc60b83da23fa
hwmon: (tmp421) really disable channels

Recent patch added possibility to disable selected channels. That would
only make sure that the ENODATA is returned for those channels but would
not configure the actual hardware.

With this patch, the config register is written to make sure the
channels are disabled also at hardware level.

Signed-off-by: Krzysztof Adamski <krzysztof.adamski@nokia.com>
Link: https://lore.kernel.org/r/d451cacdf21bf8eff38a47c055aad8c0c6e8755a.1634206677.git.krzysztof.adamski@nokia.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/tmp421.c