summaryrefslogtreecommitdiff
path: root/drivers/misc
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 /drivers/misc
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 'drivers/misc')
-rw-r--r--drivers/misc/nct1008.c24
-rw-r--r--drivers/misc/therm_est.c7
-rw-r--r--drivers/misc/therm_fan_est.c15
3 files changed, 16 insertions, 30 deletions
diff --git a/drivers/misc/nct1008.c b/drivers/misc/nct1008.c
index f2a04ad866fa..115a1c6ab84b 100644
--- a/drivers/misc/nct1008.c
+++ b/drivers/misc/nct1008.c
@@ -794,8 +794,7 @@ static void nct1008_update(int sensor, struct nct1008_data *data)
nct1008_thermal_set_limits(sensor, data, low_temp, high_temp);
}
-static int nct1008_ext_get_temp(struct thermal_zone_device *thz,
- unsigned long *temp)
+static int nct1008_ext_get_temp(struct thermal_zone_device *thz, long *temp)
{
struct nct1008_data *data = thz->devdata;
@@ -864,8 +863,7 @@ static inline int nct1008_loc_unbind(struct thermal_zone_device *thz,
/* This function reads the temperature value set for the given trip point. */
static int nct1008_get_trip_temp(int sensor,
struct thermal_zone_device *thz,
- int trip,
- unsigned long *temp)
+ int trip, long *temp)
{
struct nct1008_data *data = thz->devdata;
struct thermal_trip_info *trip_state =
@@ -890,8 +888,7 @@ static int nct1008_get_trip_temp(int sensor,
/* This function reads the temperature value set for the given trip point for
the local sensor. */
static inline int nct1008_loc_get_trip_temp(struct thermal_zone_device *thz,
- int trip,
- unsigned long *temp)
+ int trip, long *temp)
{
return nct1008_get_trip_temp(LOC, thz, trip, temp);
}
@@ -899,8 +896,7 @@ static inline int nct1008_loc_get_trip_temp(struct thermal_zone_device *thz,
/* This function reads the temperature value set for the given trip point for
the remote sensor. */
static inline int nct1008_ext_get_trip_temp(struct thermal_zone_device *thz,
- int trip,
- unsigned long *temp)
+ int trip, long *temp)
{
return nct1008_get_trip_temp(EXT, thz, trip, temp);
}
@@ -909,8 +905,7 @@ static inline int nct1008_ext_get_trip_temp(struct thermal_zone_device *thz,
specified. */
static int nct1008_set_trip_temp(int sensor,
struct thermal_zone_device *thz,
- int trip,
- unsigned long temp)
+ int trip, long temp)
{
struct nct1008_data *data = thz->devdata;
@@ -921,8 +916,7 @@ static int nct1008_set_trip_temp(int sensor,
/* This function allows setting trip point temperature for the local sensor. */
static inline int nct1008_loc_set_trip_temp(struct thermal_zone_device *thz,
- int trip,
- unsigned long temp)
+ int trip, long temp)
{
return nct1008_set_trip_temp(LOC, thz, trip, temp);
}
@@ -930,8 +924,7 @@ static inline int nct1008_loc_set_trip_temp(struct thermal_zone_device *thz,
/* This function allows setting trip point temperature for the external
* sensor. */
static inline int nct1008_ext_set_trip_temp(struct thermal_zone_device *thz,
- int trip,
- unsigned long temp)
+ int trip, long temp)
{
return nct1008_set_trip_temp(EXT, thz, trip, temp);
}
@@ -1012,8 +1005,7 @@ static inline int nct1008_ext_get_trend(struct thermal_zone_device *thz,
}
/* Helper function to get temperature of the local sensor. */
-static int nct1008_loc_get_temp(struct thermal_zone_device *thz,
- unsigned long *temp)
+static int nct1008_loc_get_temp(struct thermal_zone_device *thz, long *temp)
{
struct nct1008_data *data = thz->devdata;
diff --git a/drivers/misc/therm_est.c b/drivers/misc/therm_est.c
index 48f5786e6563..abc6fc3a2ce6 100644
--- a/drivers/misc/therm_est.c
+++ b/drivers/misc/therm_est.c
@@ -371,7 +371,7 @@ static int __get_trip_temp(struct thermal_zone_device *thz, int trip,
}
static int therm_est_get_trip_temp(struct thermal_zone_device *thz,
- int trip, unsigned long *temp)
+ int trip, long *temp)
{
struct therm_estimator *est = thz->devdata;
struct therm_est_timer_trip_info *timer_info;
@@ -401,7 +401,7 @@ static int therm_est_get_trip_temp(struct thermal_zone_device *thz,
}
static int therm_est_set_trip_temp(struct thermal_zone_device *thz,
- int trip, unsigned long temp)
+ int trip, long temp)
{
struct therm_estimator *est = thz->devdata;
@@ -412,8 +412,7 @@ static int therm_est_set_trip_temp(struct thermal_zone_device *thz,
return 0;
}
-static int therm_est_get_temp(struct thermal_zone_device *thz,
- unsigned long *temp)
+static int therm_est_get_temp(struct thermal_zone_device *thz, long *temp)
{
struct therm_estimator *est = thz->devdata;
diff --git a/drivers/misc/therm_fan_est.c b/drivers/misc/therm_fan_est.c
index ad1a59672d4d..9312a01741eb 100644
--- a/drivers/misc/therm_fan_est.c
+++ b/drivers/misc/therm_fan_est.c
@@ -59,8 +59,6 @@ static void fan_set_trip_temp_hyst(struct therm_fan_estimator *est, int trip,
unsigned long hyst_temp,
unsigned long trip_temp)
{
- int i;
-
est->active_hysteresis[trip] = hyst_temp;
est->active_trip_temps[trip] = trip_temp;
est->active_trip_temps_hyst[(trip << 1)] = trip_temp;
@@ -153,8 +151,7 @@ static int therm_fan_est_get_trip_type(struct thermal_zone_device *thz,
}
static int therm_fan_est_get_trip_temp(struct thermal_zone_device *thz,
- int trip,
- unsigned long *temp)
+ int trip, long *temp)
{
struct therm_fan_estimator *est = thz->devdata;
@@ -170,8 +167,7 @@ static int therm_fan_est_get_trip_temp(struct thermal_zone_device *thz,
}
static int therm_fan_est_set_trip_temp(struct thermal_zone_device *thz,
- int trip,
- unsigned long temp)
+ int trip, long temp)
{
struct therm_fan_estimator *est = thz->devdata;
@@ -183,8 +179,7 @@ static int therm_fan_est_set_trip_temp(struct thermal_zone_device *thz,
return 0;
}
-static int therm_fan_est_get_temp(struct thermal_zone_device *thz,
- unsigned long *temp)
+static int therm_fan_est_get_temp(struct thermal_zone_device *thz, long *temp)
{
struct therm_fan_estimator *est = thz->devdata;
@@ -193,7 +188,7 @@ static int therm_fan_est_get_temp(struct thermal_zone_device *thz,
}
static int therm_fan_est_set_trip_hyst(struct thermal_zone_device *thz,
- int trip, unsigned long hyst_temp)
+ int trip, long hyst_temp)
{
struct therm_fan_estimator *est = thz->devdata;
@@ -207,7 +202,7 @@ static int therm_fan_est_set_trip_hyst(struct thermal_zone_device *thz,
}
static int therm_fan_est_get_trip_hyst(struct thermal_zone_device *thz,
- int trip, unsigned long *temp)
+ int trip, long *temp)
{
struct therm_fan_estimator *est = thz->devdata;