Commit 21af7b26 authored by Guenter Roeck's avatar Guenter Roeck Committed by Zheng Zengkai
Browse files

hwmon: (lm90) Drop critical attribute support for MAX6654

stable inclusion
from stable-v5.10.89
commit 51c7b2a7b86a923cc410882f3b8bde09ba412f3c
bugzilla: 186140 https://gitee.com/openeuler/kernel/issues/I4S8HA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=51c7b2a7b86a923cc410882f3b8bde09ba412f3c



--------------------------------

[ Upstream commit 16ba51b5 ]

Tests with a real chip and a closer look into the datasheet show that
MAX6654 does not support CRIT/THERM/OVERTEMP limits, so drop support
of the respective attributes for this chip.

Introduce LM90_HAVE_CRIT flag and use it to instantiate critical limit
attributes to solve the problem.

Cc: Josh Lehan <krellan@google.com>
Fixes: 229d495d ("hwmon: (lm90) Add max6654 support to lm90 driver")
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 5903e78e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment