summaryrefslogtreecommitdiff
path: root/include
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 /include
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 'include')
-rw-r--r--include/linux/thermal.h22
1 files changed, 9 insertions, 13 deletions
diff --git a/include/linux/thermal.h b/include/linux/thermal.h
index 4b203c9055a7..338dcfa3a8bc 100644
--- a/include/linux/thermal.h
+++ b/include/linux/thermal.h
@@ -113,23 +113,19 @@ struct thermal_zone_device_ops {
struct thermal_cooling_device *);
int (*unbind) (struct thermal_zone_device *,
struct thermal_cooling_device *);
- int (*get_temp) (struct thermal_zone_device *, unsigned long *);
+ int (*get_temp) (struct thermal_zone_device *, long *);
int (*get_mode) (struct thermal_zone_device *,
enum thermal_device_mode *);
int (*set_mode) (struct thermal_zone_device *,
enum thermal_device_mode);
int (*get_trip_type) (struct thermal_zone_device *, int,
enum thermal_trip_type *);
- int (*get_trip_temp) (struct thermal_zone_device *, int,
- unsigned long *);
- int (*set_trip_temp) (struct thermal_zone_device *, int,
- unsigned long);
- int (*get_trip_hyst) (struct thermal_zone_device *, int,
- unsigned long *);
- int (*set_trip_hyst) (struct thermal_zone_device *, int,
- unsigned long);
- int (*get_crit_temp) (struct thermal_zone_device *, unsigned long *);
- int (*set_emul_temp) (struct thermal_zone_device *, unsigned long);
+ int (*get_trip_temp) (struct thermal_zone_device *, int, long *);
+ int (*set_trip_temp) (struct thermal_zone_device *, int, long);
+ int (*get_trip_hyst) (struct thermal_zone_device *, int, long *);
+ int (*set_trip_hyst) (struct thermal_zone_device *, int, long);
+ int (*get_crit_temp) (struct thermal_zone_device *, long *);
+ int (*set_emul_temp) (struct thermal_zone_device *, long);
int (*get_trend) (struct thermal_zone_device *, int,
enum thermal_trend *);
int (*notify) (struct thermal_zone_device *, int,
@@ -175,7 +171,7 @@ struct thermal_zone_device {
int last_temperature;
int emul_temperature;
int passive;
- unsigned int forced_passive;
+ int forced_passive;
struct thermal_zone_device_ops *ops;
const struct thermal_zone_params *tzp;
struct thermal_governor *governor;
@@ -301,7 +297,7 @@ thermal_of_cooling_device_register(struct device_node *np, char *, void *,
const struct thermal_cooling_device_ops *);
void thermal_cooling_device_unregister(struct thermal_cooling_device *);
struct thermal_zone_device *thermal_zone_get_zone_by_name(const char *name);
-int thermal_zone_get_temp(struct thermal_zone_device *tz, unsigned long *temp);
+int thermal_zone_get_temp(struct thermal_zone_device *tz, long *temp);
struct thermal_zone_device *thermal_zone_device_find(void *data,
int (*match)(struct thermal_zone_device *, void *));
struct thermal_zone_device *thermal_zone_device_find_by_name(const char *name);