]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (lm90) Only disable alerts if not already disabled
authorGuenter Roeck <linux@roeck-us.net>
Tue, 28 Dec 2021 15:59:26 +0000 (07:59 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 13 Jul 2022 15:38:19 +0000 (08:38 -0700)
commit1b2c8aba60b3a13101ccb3821eb206f721b8291d
tree3b6f62cbbf98ca4b1c6547c7636d6a22d124f9a3
parent221839cb160a7a2c06b550c703df2aaca9d9babb
hwmon: (lm90) Only disable alerts if not already disabled

It was observed that the alert handler may be called from the i2c core
even after alerts have already been disabled. Only disable alerts if
they have not already been disabled.

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