diff options
author | Diwakar Tundlam <dtundlam@nvidia.com> | 2014-06-16 17:03:31 -0400 |
---|---|---|
committer | Nicolin Chen <nicolinc@nvidia.com> | 2017-08-14 21:38:52 -0400 |
commit | 26f2faf60b315b37acb45e10fac7b846a8d08c4f (patch) | |
tree | 2dabf987865f04b580db43816beef3f82cc607b9 /drivers/misc | |
parent | 86529c5b444ce9ebd63758c3cd6c3885622facf1 (diff) |
thermal: remove all unsigned type use for temperature
Split the changes made for nct driver into a differnt patch.
Original change: http://git-master/r/420818
Bug 1516918
Change-Id: I5615b0657d255d9134415d92d372771baa4271e1
Reviewed-on: http://git-master/r/420818
(cherry picked from commit 22f28a48d4270dcc6b932f1e6bd3cf78afa86833)
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/423860
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/therm_est.c | 7 | ||||
-rw-r--r-- | drivers/misc/therm_fan_est.c | 15 |
2 files changed, 8 insertions, 14 deletions
diff --git a/drivers/misc/therm_est.c b/drivers/misc/therm_est.c index 3f1f80be6..3f465d419 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, | |||
371 | } | 371 | } |
372 | 372 | ||
373 | static int therm_est_get_trip_temp(struct thermal_zone_device *thz, | 373 | static int therm_est_get_trip_temp(struct thermal_zone_device *thz, |
374 | int trip, unsigned long *temp) | 374 | int trip, long *temp) |
375 | { | 375 | { |
376 | struct therm_estimator *est = thz->devdata; | 376 | struct therm_estimator *est = thz->devdata; |
377 | struct therm_est_timer_trip_info *timer_info; | 377 | struct therm_est_timer_trip_info *timer_info; |
@@ -401,7 +401,7 @@ static int therm_est_get_trip_temp(struct thermal_zone_device *thz, | |||
401 | } | 401 | } |
402 | 402 | ||
403 | static int therm_est_set_trip_temp(struct thermal_zone_device *thz, | 403 | static int therm_est_set_trip_temp(struct thermal_zone_device *thz, |
404 | int trip, unsigned long temp) | 404 | int trip, long temp) |
405 | { | 405 | { |
406 | struct therm_estimator *est = thz->devdata; | 406 | struct therm_estimator *est = thz->devdata; |
407 | 407 | ||
@@ -412,8 +412,7 @@ static int therm_est_set_trip_temp(struct thermal_zone_device *thz, | |||
412 | return 0; | 412 | return 0; |
413 | } | 413 | } |
414 | 414 | ||
415 | static int therm_est_get_temp(struct thermal_zone_device *thz, | 415 | static int therm_est_get_temp(struct thermal_zone_device *thz, long *temp) |
416 | unsigned long *temp) | ||
417 | { | 416 | { |
418 | struct therm_estimator *est = thz->devdata; | 417 | struct therm_estimator *est = thz->devdata; |
419 | 418 | ||
diff --git a/drivers/misc/therm_fan_est.c b/drivers/misc/therm_fan_est.c index ad1a59672..9312a0174 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, | |||
59 | unsigned long hyst_temp, | 59 | unsigned long hyst_temp, |
60 | unsigned long trip_temp) | 60 | unsigned long trip_temp) |
61 | { | 61 | { |
62 | int i; | ||
63 | |||
64 | est->active_hysteresis[trip] = hyst_temp; | 62 | est->active_hysteresis[trip] = hyst_temp; |
65 | est->active_trip_temps[trip] = trip_temp; | 63 | est->active_trip_temps[trip] = trip_temp; |
66 | est->active_trip_temps_hyst[(trip << 1)] = trip_temp; | 64 | 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, | |||
153 | } | 151 | } |
154 | 152 | ||
155 | static int therm_fan_est_get_trip_temp(struct thermal_zone_device *thz, | 153 | static int therm_fan_est_get_trip_temp(struct thermal_zone_device *thz, |
156 | int trip, | 154 | int trip, long *temp) |
157 | unsigned long *temp) | ||
158 | { | 155 | { |
159 | struct therm_fan_estimator *est = thz->devdata; | 156 | struct therm_fan_estimator *est = thz->devdata; |
160 | 157 | ||
@@ -170,8 +167,7 @@ static int therm_fan_est_get_trip_temp(struct thermal_zone_device *thz, | |||
170 | } | 167 | } |
171 | 168 | ||
172 | static int therm_fan_est_set_trip_temp(struct thermal_zone_device *thz, | 169 | static int therm_fan_est_set_trip_temp(struct thermal_zone_device *thz, |
173 | int trip, | 170 | int trip, long temp) |
174 | unsigned long temp) | ||
175 | { | 171 | { |
176 | struct therm_fan_estimator *est = thz->devdata; | 172 | struct therm_fan_estimator *est = thz->devdata; |
177 | 173 | ||
@@ -183,8 +179,7 @@ static int therm_fan_est_set_trip_temp(struct thermal_zone_device *thz, | |||
183 | return 0; | 179 | return 0; |
184 | } | 180 | } |
185 | 181 | ||
186 | static int therm_fan_est_get_temp(struct thermal_zone_device *thz, | 182 | static int therm_fan_est_get_temp(struct thermal_zone_device *thz, long *temp) |
187 | unsigned long *temp) | ||
188 | { | 183 | { |
189 | struct therm_fan_estimator *est = thz->devdata; | 184 | struct therm_fan_estimator *est = thz->devdata; |
190 | 185 | ||
@@ -193,7 +188,7 @@ static int therm_fan_est_get_temp(struct thermal_zone_device *thz, | |||
193 | } | 188 | } |
194 | 189 | ||
195 | static int therm_fan_est_set_trip_hyst(struct thermal_zone_device *thz, | 190 | static int therm_fan_est_set_trip_hyst(struct thermal_zone_device *thz, |
196 | int trip, unsigned long hyst_temp) | 191 | int trip, long hyst_temp) |
197 | { | 192 | { |
198 | struct therm_fan_estimator *est = thz->devdata; | 193 | struct therm_fan_estimator *est = thz->devdata; |
199 | 194 | ||
@@ -207,7 +202,7 @@ static int therm_fan_est_set_trip_hyst(struct thermal_zone_device *thz, | |||
207 | } | 202 | } |
208 | 203 | ||
209 | static int therm_fan_est_get_trip_hyst(struct thermal_zone_device *thz, | 204 | static int therm_fan_est_get_trip_hyst(struct thermal_zone_device *thz, |
210 | int trip, unsigned long *temp) | 205 | int trip, long *temp) |
211 | { | 206 | { |
212 | struct therm_fan_estimator *est = thz->devdata; | 207 | struct therm_fan_estimator *est = thz->devdata; |
213 | 208 | ||