aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
authorDurgadoss R <dugardoss.r@intel.com>2012-07-24 22:10:58 -0400
committerLen Brown <len.brown@intel.com>2012-07-24 23:17:20 -0400
commitc56f5c0342dfee11a1a13d2f5bb7618de5b17590 (patch)
tree4f5bae9424271e41d10d0c9d9fc17be6f63fba63 /drivers/platform
parent28a33cbc24e4256c143dce96c7d93bf423229f92 (diff)
Thermal: Make Thermal trip points writeable
Some of the thermal drivers using the Generic Thermal Framework require (all/some) trip points to be writeable. This patch makes the trip point temperatures writeable on a per-trip point basis, and modifies the required function call in thermal.c. This patch also updates the Documentation to reflect the new change. Signed-off-by: Durgadoss R <durgadoss.r@intel.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/acerhdf.c2
-rw-r--r--drivers/platform/x86/intel_mid_thermal.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/platform/x86/acerhdf.c b/drivers/platform/x86/acerhdf.c
index 2fd9d36acd15..39abb150bdd4 100644
--- a/drivers/platform/x86/acerhdf.c
+++ b/drivers/platform/x86/acerhdf.c
@@ -660,7 +660,7 @@ static int acerhdf_register_thermal(void)
660 if (IS_ERR(cl_dev)) 660 if (IS_ERR(cl_dev))
661 return -EINVAL; 661 return -EINVAL;
662 662
663 thz_dev = thermal_zone_device_register("acerhdf", 1, NULL, 663 thz_dev = thermal_zone_device_register("acerhdf", 1, 0, NULL,
664 &acerhdf_dev_ops, 0, 0, 0, 664 &acerhdf_dev_ops, 0, 0, 0,
665 (kernelmode) ? interval*1000 : 0); 665 (kernelmode) ? interval*1000 : 0);
666 if (IS_ERR(thz_dev)) 666 if (IS_ERR(thz_dev))
diff --git a/drivers/platform/x86/intel_mid_thermal.c b/drivers/platform/x86/intel_mid_thermal.c
index 5ae9cd9c7e6e..2b2c212ad37d 100644
--- a/drivers/platform/x86/intel_mid_thermal.c
+++ b/drivers/platform/x86/intel_mid_thermal.c
@@ -499,7 +499,7 @@ static int mid_thermal_probe(struct platform_device *pdev)
499 goto err; 499 goto err;
500 } 500 }
501 pinfo->tzd[i] = thermal_zone_device_register(name[i], 501 pinfo->tzd[i] = thermal_zone_device_register(name[i],
502 0, td_info, &tzd_ops, 0, 0, 0, 0); 502 0, 0, td_info, &tzd_ops, 0, 0, 0, 0);
503 if (IS_ERR(pinfo->tzd[i])) { 503 if (IS_ERR(pinfo->tzd[i])) {
504 kfree(td_info); 504 kfree(td_info);
505 ret = PTR_ERR(pinfo->tzd[i]); 505 ret = PTR_ERR(pinfo->tzd[i]);