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 /drivers/platform | |
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 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/acerhdf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/platform/x86/acerhdf.c b/drivers/platform/x86/acerhdf.c index 39abb150bdd4..a207466f4ba8 100644 --- a/drivers/platform/x86/acerhdf.c +++ b/drivers/platform/x86/acerhdf.c | |||
@@ -329,7 +329,8 @@ static int acerhdf_bind(struct thermal_zone_device *thermal, | |||
329 | if (cdev != cl_dev) | 329 | if (cdev != cl_dev) |
330 | return 0; | 330 | return 0; |
331 | 331 | ||
332 | if (thermal_zone_bind_cooling_device(thermal, 0, cdev)) { | 332 | if (thermal_zone_bind_cooling_device(thermal, 0, cdev, |
333 | THERMAL_NO_LIMIT, THERMAL_NO_LIMIT)) { | ||
333 | pr_err("error binding cooling dev\n"); | 334 | pr_err("error binding cooling dev\n"); |
334 | return -EINVAL; | 335 | return -EINVAL; |
335 | } | 336 | } |