]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (nct7904) Fix incorrect temperature limitation register setting of LTD.
authoramy.shih <amy.shih@advantech.com.tw>
Mon, 18 Jun 2085 15:57:19 +0000 (15:57 +0000)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 3 Sep 2019 19:47:17 +0000 (12:47 -0700)
commit9798d470bc5a8689f8d748ddc9b72beb1a60710a
tree04d6a008000472754fc5188a9258091620ec6702
parent885f172b76735f467c817183d612221836b5a3e1
hwmon: (nct7904) Fix incorrect temperature limitation register setting of LTD.

According to kernel hwmon sysfs-interface documentation, temperature
critical max value, typically greater than corresponding temp_max values.
Thus, reads the LTD_HV_HL (LTD HIGH VALUE HIGH LIMITATION) and LTD_LV_HL
(LTD LOW VALUE HIGH LIMITATION) for case hwmon_temp_crit and
hwmon_temp_crit_hyst. Reads the LTD_HV_LL (HIGH VALUE LOW LIMITATION)
and LTD_LV_LL (LOW VALUE LOW LIMITATION) for case hwmon_temp_max
and hwmon_temp_max_hyst.

Signed-off-by: amy.shih <amy.shih@advantech.com.tw>
Link: https://lore.kernel.org/r/20850618155720.24857-1-Amy.Shih@advantech.com.tw
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/nct7904.c