thermal: consistently use int for trip temp
authorWei Ni <wni@nvidia.com>
Thu, 3 Mar 2016 09:33:46 +0000 (17:33 +0800)
committerEduardo Valentin <edubezval@gmail.com>
Thu, 21 Apr 2016 03:31:14 +0000 (20:31 -0700)
commit1d0fd42fa31d18ba0a3e0dd008c9e93e1cebe451
tree8f18189a7e6a3b178718d1e9459b9c893cdadbca
parent62e14f6fd383f756ff3fe5f6fb7aa5b546bb47e3
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>
drivers/thermal/thermal_core.c
include/linux/thermal.h