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)
commitb1526b38e363bd87840c0e2c22a16e6fd42fea56
tree3b6f62cbbf98ca4b1c6547c7636d6a22d124f9a3
parent41e6d7215d79f98758def6ef60161fd891bbac0d
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