diff options
author | Durgadoss R <dugardoss.r@intel.com> | 2012-07-24 22:10:58 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2012-07-24 23:17:20 -0400 |
commit | c56f5c0342dfee11a1a13d2f5bb7618de5b17590 (patch) | |
tree | 4f5bae9424271e41d10d0c9d9fc17be6f63fba63 /drivers/acpi | |
parent | 28a33cbc24e4256c143dce96c7d93bf423229f92 (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/acpi')
-rw-r--r-- | drivers/acpi/thermal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c index 7dbebea1ec31..2107d1bb84af 100644 --- a/drivers/acpi/thermal.c +++ b/drivers/acpi/thermal.c | |||
@@ -845,7 +845,7 @@ static int acpi_thermal_register_thermal_zone(struct acpi_thermal *tz) | |||
845 | 845 | ||
846 | if (tz->trips.passive.flags.valid) | 846 | if (tz->trips.passive.flags.valid) |
847 | tz->thermal_zone = | 847 | tz->thermal_zone = |
848 | thermal_zone_device_register("acpitz", trips, tz, | 848 | thermal_zone_device_register("acpitz", trips, 0, tz, |
849 | &acpi_thermal_zone_ops, | 849 | &acpi_thermal_zone_ops, |
850 | tz->trips.passive.tc1, | 850 | tz->trips.passive.tc1, |
851 | tz->trips.passive.tc2, | 851 | tz->trips.passive.tc2, |
@@ -853,7 +853,7 @@ static int acpi_thermal_register_thermal_zone(struct acpi_thermal *tz) | |||
853 | tz->polling_frequency*100); | 853 | tz->polling_frequency*100); |
854 | else | 854 | else |
855 | tz->thermal_zone = | 855 | tz->thermal_zone = |
856 | thermal_zone_device_register("acpitz", trips, tz, | 856 | thermal_zone_device_register("acpitz", trips, 0, tz, |
857 | &acpi_thermal_zone_ops, | 857 | &acpi_thermal_zone_ops, |
858 | 0, 0, 0, | 858 | 0, 0, 0, |
859 | tz->polling_frequency*100); | 859 | tz->polling_frequency*100); |