]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
hwmon: (lm90) Drop critical attribute support for MAX6654
authorGuenter Roeck <linux@roeck-us.net>
Sat, 13 Nov 2021 16:55:06 +0000 (08:55 -0800)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 4 Jan 2022 08:49:43 +0000 (09:49 +0100)
commitf5302480812da9d94c683d9c254a3110939aeaf9
tree7658ec09f490a4ce41e55f6db1580691023e7c15
parent366f03999bcb414e77d8b0486e5e805f4fe08fa4
hwmon: (lm90) Drop critical attribute support for MAX6654

BugLink: https://bugs.launchpad.net/bugs/1956305
[ Upstream commit 16ba51b5dcd3f6dde2e51d5ccc86313119dcf889 ]

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: 229d495d8189 ("hwmon: (lm90) Add max6654 support to lm90 driver")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
drivers/hwmon/lm90.c