android_kernel_samsung_univ.../drivers/thermal
Krzysztof Kozlowski e692edec93 thermal: hwmon: Properly report critical temperature in sysfs
commit f37fabb8643eaf8e3b613333a72f683770c85eca upstream.

In the critical sysfs entry the thermal hwmon was returning wrong
temperature to the user-space.  It was reporting the temperature of the
first trip point instead of the temperature of critical trip point.

For example:
	/sys/class/hwmon/hwmon0/temp1_crit:50000
	/sys/class/thermal/thermal_zone0/trip_point_0_temp:50000
	/sys/class/thermal/thermal_zone0/trip_point_0_type:active
	/sys/class/thermal/thermal_zone0/trip_point_3_temp:120000
	/sys/class/thermal/thermal_zone0/trip_point_3_type:critical

Since commit e68b16abd9 ("thermal: add hwmon sysfs I/F") the driver
have been registering a sysfs entry if get_crit_temp() callback was
provided.  However when accessed, it was calling get_trip_temp() instead
of the get_crit_temp().

Fixes: e68b16abd9 ("thermal: add hwmon sysfs I/F")
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-01-09 08:07:44 +01:00
..
int340x_thermal
samsung
st
ti-soc-thermal
armada_thermal.c
clock_cooling.c
cpu_cooling.c thermal: cpu_cooling: fix improper order during initialization 2016-07-27 09:47:29 -07:00
db8500_cpufreq_cooling.c
db8500_thermal.c
devfreq_cooling.c
dove_thermal.c
fair_share.c
gov_bang_bang.c
hisi_thermal.c
imx_thermal.c imx: thermal: use CPU temperature grade info for thresholds 2015-11-23 16:38:40 -08:00
intel_pch_thermal.c
intel_powerclamp.c
intel_quark_dts_thermal.c
intel_soc_dts_iosf.c
intel_soc_dts_iosf.h
intel_soc_dts_thermal.c
Kconfig Revert "thermal: qcom_spmi: allow compile test" 2015-11-23 15:33:56 -08:00
kirkwood_thermal.c
Makefile
of-thermal.c thermal: of-thermal: Reduce log level for message when can't fine thermal zone 2015-11-16 10:49:17 -08:00
power_allocator.c thermal: power_allocator: Use temperature reading from tz 2015-11-12 10:47:24 -08:00
qcom-spmi-temp-alarm.c
rcar_thermal.c thermal: rcar_thermal: remove redundant operation 2015-11-16 10:53:08 -08:00
rockchip_thermal.c thermal: rockchip: fix a impossible condition caused by the warning 2016-05-04 14:48:54 -07:00
spear_thermal.c
step_wise.c Thermal: initialize thermal zone device correctly 2016-03-03 15:07:25 -08:00
tegra_soctherm.c
thermal_core.c Thermal: Ignore invalid trip points 2016-04-12 09:08:35 -07:00
thermal_core.h Thermal: initialize thermal zone device correctly 2016-03-03 15:07:25 -08:00
thermal_hwmon.c thermal: hwmon: Properly report critical temperature in sysfs 2017-01-09 08:07:44 +01:00
thermal_hwmon.h
user_space.c
x86_pkg_temp_thermal.c