aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/thermal.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/thermal.c')
-rw-r--r--drivers/acpi/thermal.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c
index 21dd4c268aef..9fe90e9fecb5 100644
--- a/drivers/acpi/thermal.c
+++ b/drivers/acpi/thermal.c
@@ -552,8 +552,6 @@ static int thermal_get_temp(struct thermal_zone_device *thermal,
552 return 0; 552 return 0;
553} 553}
554 554
555static const char enabled[] = "kernel";
556static const char disabled[] = "user";
557static int thermal_get_mode(struct thermal_zone_device *thermal, 555static int thermal_get_mode(struct thermal_zone_device *thermal,
558 enum thermal_device_mode *mode) 556 enum thermal_device_mode *mode)
559{ 557{
@@ -590,8 +588,8 @@ static int thermal_set_mode(struct thermal_zone_device *thermal,
590 if (enable != tz->tz_enabled) { 588 if (enable != tz->tz_enabled) {
591 tz->tz_enabled = enable; 589 tz->tz_enabled = enable;
592 ACPI_DEBUG_PRINT((ACPI_DB_INFO, 590 ACPI_DEBUG_PRINT((ACPI_DB_INFO,
593 "%s ACPI thermal control\n", 591 "%s kernel ACPI thermal control\n",
594 tz->tz_enabled ? enabled : disabled)); 592 tz->tz_enabled ? "Enable" : "Disable"));
595 acpi_thermal_check(tz); 593 acpi_thermal_check(tz);
596 } 594 }
597 return 0; 595 return 0;
@@ -847,7 +845,7 @@ static int acpi_thermal_register_thermal_zone(struct acpi_thermal *tz)
847 845
848 if (tz->trips.passive.flags.valid) 846 if (tz->trips.passive.flags.valid)
849 tz->thermal_zone = 847 tz->thermal_zone =
850 thermal_zone_device_register("acpitz", trips, tz, 848 thermal_zone_device_register("acpitz", trips, 0, tz,
851 &acpi_thermal_zone_ops, 849 &acpi_thermal_zone_ops,
852 tz->trips.passive.tc1, 850 tz->trips.passive.tc1,
853 tz->trips.passive.tc2, 851 tz->trips.passive.tc2,
@@ -855,7 +853,7 @@ static int acpi_thermal_register_thermal_zone(struct acpi_thermal *tz)
855 tz->polling_frequency*100); 853 tz->polling_frequency*100);
856 else 854 else
857 tz->thermal_zone = 855 tz->thermal_zone =
858 thermal_zone_device_register("acpitz", trips, tz, 856 thermal_zone_device_register("acpitz", trips, 0, tz,
859 &acpi_thermal_zone_ops, 857 &acpi_thermal_zone_ops,
860 0, 0, 0, 858 0, 0, 0,
861 tz->polling_frequency*100); 859 tz->polling_frequency*100);