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

Fixes: 920c22942f35 ("hwmon: (lm90) Add max6654 support to lm90 driver")
Cc: Josh Lehan <krellan@google.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/lm90.c

index e4ecf3440d7cff97c89ee5e8e9818b6c80d88fcf..280ae5f58187b4c364d79956fca2f3ea39fb93ef 100644 (file)
@@ -400,6 +400,7 @@ static const struct lm90_params lm90_params[] = {
                .reg_local_ext = MAX6657_REG_R_LOCAL_TEMPL,
        },
        [max6654] = {
+               .flags = LM90_HAVE_BROKEN_ALERT,
                .alert_alarms = 0x7c,
                .max_convrate = 7,
                .reg_local_ext = MAX6657_REG_R_LOCAL_TEMPL,