aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorZhang Rui <rui.zhang@intel.com>2012-07-24 22:11:00 -0400
committerLen Brown <len.brown@intel.com>2012-07-24 23:20:40 -0400
commit8eaa8d6ca27788aa23659082362a608c1fabcdfe (patch)
treec6df5382dd740a98e29676a96630a11d09d7ec47 /drivers
parent27365a6c7d64a3bba22ee62109e4a071bbd7f933 (diff)
Thermal: Documentation update
With commit 6503e5df08008b9a47022b5e9ebba658c8fa69af, the value of /sys/class/thermal/thermal_zoneX/mode has been changed from user/kernel to enabled/disabled. Update the documentation so that users won't be confused. Signed-off-by: Zhang Rui <rui.zhang@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/acpi/thermal.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c
index 2107d1bb84af..8275e7b06962 100644
--- a/drivers/acpi/thermal.c
+++ b/drivers/acpi/thermal.c
@@ -550,8 +550,6 @@ static int thermal_get_temp(struct thermal_zone_device *thermal,
550 return 0; 550 return 0;
551} 551}
552 552
553static const char enabled[] = "kernel";
554static const char disabled[] = "user";
555static int thermal_get_mode(struct thermal_zone_device *thermal, 553static int thermal_get_mode(struct thermal_zone_device *thermal,
556 enum thermal_device_mode *mode) 554 enum thermal_device_mode *mode)
557{ 555{
@@ -588,8 +586,8 @@ static int thermal_set_mode(struct thermal_zone_device *thermal,
588 if (enable != tz->tz_enabled) { 586 if (enable != tz->tz_enabled) {
589 tz->tz_enabled = enable; 587 tz->tz_enabled = enable;
590 ACPI_DEBUG_PRINT((ACPI_DB_INFO, 588 ACPI_DEBUG_PRINT((ACPI_DB_INFO,
591 "%s ACPI thermal control\n", 589 "%s kernel ACPI thermal control\n",
592 tz->tz_enabled ? enabled : disabled)); 590 tz->tz_enabled ? "Enable" : "Disable"));
593 acpi_thermal_check(tz); 591 acpi_thermal_check(tz);
594 } 592 }
595 return 0; 593 return 0;