From: Guenter Roeck Date: Fri, 7 Jan 2022 19:05:23 +0000 (-0800) Subject: hwmon: (lm90) Mark alert as broken for MAX6654 X-Git-Tag: accepted/tizen/unified/20230118.172025~2729 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f4a61d7989d561a64a0513cd76ca860fd93c657d;p=platform%2Fkernel%2Flinux-rpi.git hwmon: (lm90) Mark alert as broken for MAX6654 [ Upstream commit a53fff96f35763d132a36c620b183fdf11022d7a ] Experiments with MAX6654 show that its alert function is broken, similar to other chips supported by the lm90 driver. Mark it accordingly. Fixes: 229d495d8189 ("hwmon: (lm90) Add max6654 support to lm90 driver") Cc: Josh Lehan Signed-off-by: Guenter Roeck Signed-off-by: Sasha Levin --- diff --git a/drivers/hwmon/lm90.c b/drivers/hwmon/lm90.c index 09efdc4..ba01127 100644 --- a/drivers/hwmon/lm90.c +++ b/drivers/hwmon/lm90.c @@ -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,