]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (dell-smm) Improve temperature sensors detection
authorArmin Wolf <W_Armin@gmx.de>
Tue, 15 Feb 2022 19:11:10 +0000 (20:11 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 28 Feb 2022 01:03:19 +0000 (17:03 -0800)
commit12326106fb0fafef23fff993da7850f0169aba27
tree0d3c3ad8390afaa09e375452bc3eb329703345c8
parent98d64b466a5c44506254ac0155b7a824ca579102
hwmon: (dell-smm) Improve temperature sensors detection

On the Dell Inspiron 3505, three temperature sensors are
available through the SMM interface. However since they
do not have an associated type, they are not detected.
Probe for those sensors in case no type was detected.
_i8k_get_temp() is used instead of i8k_get_temp()
since it is sometimes faster and the result is
easier to check (no -ENODATA) since we do not
care about the actual temp value.

Tested on a Dell Inspiron 3505.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20220215191113.16640-5-W_Armin@gmx.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/dell-smm-hwmon.c