diff options
author | Zhang Rui <rui.zhang@intel.com> | 2012-06-26 04:35:57 -0400 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2012-09-24 02:44:36 -0400 |
commit | 9d99842f99d847191ebd0c28469d2c70fcc5bf9e (patch) | |
tree | 211624d5fbc557c1226b6270a96807acc3b383df /include | |
parent | 74051ba50583a5880d4536c1d9333e2493ddfd76 (diff) |
Thermal: set upper and lower limits
set upper and lower limits when binding
a thermal cooling device to a thermal zone device.
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Reviewed-by: Rafael J. Wysocki <rjw@sisk.pl>
Reviewed-by: Eduardo Valentin <eduardo.valentin@ti.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/thermal.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/thermal.h b/include/linux/thermal.h index 4b94a61955df..5946a3b90bb2 100644 --- a/include/linux/thermal.h +++ b/include/linux/thermal.h | |||
@@ -75,6 +75,8 @@ struct thermal_cooling_device_ops { | |||
75 | int (*set_cur_state) (struct thermal_cooling_device *, unsigned long); | 75 | int (*set_cur_state) (struct thermal_cooling_device *, unsigned long); |
76 | }; | 76 | }; |
77 | 77 | ||
78 | #define THERMAL_NO_LIMIT -1UL /* no upper/lower limit requirement */ | ||
79 | |||
78 | #define THERMAL_TRIPS_NONE -1 | 80 | #define THERMAL_TRIPS_NONE -1 |
79 | #define THERMAL_MAX_TRIPS 12 | 81 | #define THERMAL_MAX_TRIPS 12 |
80 | #define THERMAL_NAME_LENGTH 20 | 82 | #define THERMAL_NAME_LENGTH 20 |
@@ -157,7 +159,8 @@ struct thermal_zone_device *thermal_zone_device_register(const char *, int, int, | |||
157 | void thermal_zone_device_unregister(struct thermal_zone_device *); | 159 | void thermal_zone_device_unregister(struct thermal_zone_device *); |
158 | 160 | ||
159 | int thermal_zone_bind_cooling_device(struct thermal_zone_device *, int, | 161 | int thermal_zone_bind_cooling_device(struct thermal_zone_device *, int, |
160 | struct thermal_cooling_device *); | 162 | struct thermal_cooling_device *, |
163 | unsigned long, unsigned long); | ||
161 | int thermal_zone_unbind_cooling_device(struct thermal_zone_device *, int, | 164 | int thermal_zone_unbind_cooling_device(struct thermal_zone_device *, int, |
162 | struct thermal_cooling_device *); | 165 | struct thermal_cooling_device *); |
163 | void thermal_zone_device_update(struct thermal_zone_device *); | 166 | void thermal_zone_device_update(struct thermal_zone_device *); |