summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/tegra11_soctherm.c
diff options
context:
space:
mode:
authorDiwakar Tundlam <dtundlam@nvidia.com>2014-06-09 16:14:05 -0700
committerMandar Padmawar <mpadmawar@nvidia.com>2014-06-13 02:18:25 -0700
commit22f28a48d4270dcc6b932f1e6bd3cf78afa86833 (patch)
treed136b861462b7f90a578b79ec4f492cdd0cf4c5e /arch/arm/mach-tegra/tegra11_soctherm.c
parentb4d6faa5e696db0724822c3f7ce37b72cda77c66 (diff)
thermal: remove all unsigned type use for temperature
Bug 1516918 Change-Id: I5615b0657d255d9134415d92d372771baa4271e1 Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com> Reviewed-on: http://git-master/r/420818 GVS: Gerrit_Virtual_Submit Reviewed-by: Josh Kuo <joshk@nvidia.com> Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/tegra11_soctherm.c')
-rw-r--r--arch/arm/mach-tegra/tegra11_soctherm.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/arch/arm/mach-tegra/tegra11_soctherm.c b/arch/arm/mach-tegra/tegra11_soctherm.c
index 9e217bf5a04e..b6112b343d7f 100644
--- a/arch/arm/mach-tegra/tegra11_soctherm.c
+++ b/arch/arm/mach-tegra/tegra11_soctherm.c
@@ -1512,8 +1512,7 @@ static int soctherm_unbind(struct thermal_zone_device *thz,
*
* Return: 0
*/
-static int soctherm_get_temp(struct thermal_zone_device *thz,
- unsigned long *temp)
+static int soctherm_get_temp(struct thermal_zone_device *thz, long *temp)
{
struct soctherm_therm *therm = thz->devdata;
ptrdiff_t index = therm - plat_data.therm;
@@ -1612,11 +1611,11 @@ static int soctherm_get_trip_type(struct thermal_zone_device *thz,
*/
static int soctherm_get_trip_temp(struct thermal_zone_device *thz,
- int trip, unsigned long *temp)
+ int trip, long *temp)
{
struct soctherm_therm *therm = thz->devdata;
struct thermal_trip_info *trip_state;
- unsigned long trip_temp, zone_temp;
+ long trip_temp, zone_temp;
trip_state = &therm->trips[trip];
trip_temp = trip_state->trip_temp;
@@ -1649,7 +1648,7 @@ static int soctherm_get_trip_temp(struct thermal_zone_device *thz,
* Return: 0 if successful else %-EINVAL
*/
static int soctherm_set_trip_temp(struct thermal_zone_device *thz,
- int trip, unsigned long temp)
+ int trip, long temp)
{
struct soctherm_therm *therm = thz->devdata;
struct thermal_trip_info *trip_state;
@@ -1696,8 +1695,7 @@ static int soctherm_set_trip_temp(struct thermal_zone_device *thz,
* Return: 0 if it is able to find a critical temperature point and stores it
* into the variable pointed by the address in @temp; Otherwise, return -EINVAL.
*/
-static int soctherm_get_crit_temp(struct thermal_zone_device *thz,
- unsigned long *temp)
+static int soctherm_get_crit_temp(struct thermal_zone_device *thz, long *temp)
{
int i;
struct soctherm_therm *therm = thz->devdata;