UPSTREAM: thermal: consistently use int for trip temp
authorWei Ni <wni@nvidia.com>
Thu, 3 Mar 2016 09:33:46 +0000 (17:33 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Fri, 13 May 2016 02:10:21 +0000 (10:10 +0800)
commitacb72fede655d6024631bc9a2a6ef1b8fca7eed0
tree1010f440795e374933511b1b5aa2a1fbfeb49ac7
parenta772af0b7053c2d728b9ffacdea4f0adee2ca69b
UPSTREAM: 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.

Change-Id: I4b31f577a6142bc02f8e0deae79ab2ff7c8bd978
Signed-off-by: Wei Ni <wni@nvidia.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
(cherry picked from commit 1d0fd42fa31d18ba0a3e0dd008c9e93e1cebe451)
drivers/thermal/thermal_core.c
include/linux/thermal.h