]> git.baikalelectronics.ru Git - kernel.git/commitdiff
hwmon: (lm90) Mark alert as broken for MAX6680
authorGuenter Roeck <linux@roeck-us.net>
Fri, 7 Jan 2022 19:11:00 +0000 (11:11 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 24 Jan 2022 02:21:27 +0000 (18:21 -0800)
Experiments with MAX6680 and MAX6681 show that the alert function of those
chips is broken, similar to other chips supported by the lm90 driver.
Mark it accordingly.

Fixes: d5fab981f794 ("hwmon: (lm90) Introduce chip parameter structure")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/lm90.c

index 280ae5f58187b4c364d79956fca2f3ea39fb93ef..06cb971c889b40816840bd26872f62379bee5821 100644 (file)
@@ -419,7 +419,7 @@ static const struct lm90_params lm90_params[] = {
        },
        [max6680] = {
                .flags = LM90_HAVE_OFFSET | LM90_HAVE_CRIT
-                 | LM90_HAVE_CRIT_ALRM_SWP,
+                 | LM90_HAVE_CRIT_ALRM_SWP | LM90_HAVE_BROKEN_ALERT,
                .alert_alarms = 0x7c,
                .max_convrate = 7,
        },