diff options
author | Durgadoss R <dugardoss.r@intel.com> | 2012-07-25 10:10:58 +0800 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2012-07-24 23:17:20 -0400 |
commit | c56f5c0342dfee11a1a13d2f5bb7618de5b17590 (patch) | |
tree | 4f5bae9424271e41d10d0c9d9fc17be6f63fba63 /drivers/acpi/thermal.c | |
parent | 28a33cbc24e4256c143dce96c7d93bf423229f92 (diff) | |
download | op-kernel-dev-c56f5c0342dfee11a1a13d2f5bb7618de5b17590.zip op-kernel-dev-c56f5c0342dfee11a1a13d2f5bb7618de5b17590.tar.gz |
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/thermal.c')
-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 7dbebea..2107d1b 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) if (tz->trips.passive.flags.valid) tz->thermal_zone = - thermal_zone_device_register("acpitz", trips, tz, + thermal_zone_device_register("acpitz", trips, 0, tz, &acpi_thermal_zone_ops, tz->trips.passive.tc1, tz->trips.passive.tc2, @@ -853,7 +853,7 @@ static int acpi_thermal_register_thermal_zone(struct acpi_thermal *tz) tz->polling_frequency*100); else tz->thermal_zone = - thermal_zone_device_register("acpitz", trips, tz, + thermal_zone_device_register("acpitz", trips, 0, tz, &acpi_thermal_zone_ops, 0, 0, 0, tz->polling_frequency*100); |