diff options
author | 2016-03-03 17:33:46 +0800 | |
---|---|---|
committer | 2016-04-20 20:31:14 -0700 | |
commit | 1d0fd42fa31d18ba0a3e0dd008c9e93e1cebe451 (patch) | |
tree | 8f18189a7e6a3b178718d1e9459b9c893cdadbca /include/linux/thermal.h | |
parent | thermal: fix mtk_thermal build dependency (diff) | |
download | linux-1d0fd42fa31d18ba0a3e0dd008c9e93e1cebe451.tar.gz linux-1d0fd42fa31d18ba0a3e0dd008c9e93e1cebe451.tar.bz2 linux-1d0fd42fa31d18ba0a3e0dd008c9e93e1cebe451.zip |
thermal: consistently use int for trip temp
The commit 17e8351a7739 consistently use int for temperature,
however it missed a few in trip temperature and thermal_core.
In current codes, the trip->temperature used "unsigned long"
and zone->temperature used"int", if the temperature is negative
value, it will get wrong result when compare temperature with
trip temperature.
This patch can fix it.
Signed-off-by: Wei Ni <wni@nvidia.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'include/linux/thermal.h')
-rw-r--r-- | include/linux/thermal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/thermal.h b/include/linux/thermal.h index a55d0523f75d..1b8a5a7876ce 100644 --- a/include/linux/thermal.h +++ b/include/linux/thermal.h @@ -352,8 +352,8 @@ struct thermal_zone_of_device_ops { struct thermal_trip { struct device_node *np; - unsigned long int temperature; - unsigned long int hysteresis; + int temperature; + int hysteresis; enum thermal_trip_type type; }; |