* acpi-thermal: fix confusing define
@ 2004-10-20 18:12 Pavel Machek
[not found] ` <20041020181221.GA25015-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Pavel Machek @ 2004-10-20 18:12 UTC (permalink / raw)
To: Rusty trivial patch monkey Russell, Andrew Morton,
ACPI mailing list, Len Brown
Hi!
We have PASSIVE, ACTIVE and CRT cooling policies... Ouch, the last one
should probably be called CRITICAL otherwise everyone thinks
"TV?". This patch fixes it, please apply,
Pavel
--- foo/drivers/acpi/thermal.c 9 Oct 2004 04:09:18 -0000 1.27
+++ foo/drivers/acpi/thermal.c 20 Oct 2004 17:53:41 -0000
@@ -60,8 +60,8 @@
#define ACPI_THERMAL_NOTIFY_HOT 0xF1
#define ACPI_THERMAL_MODE_ACTIVE 0x00
#define ACPI_THERMAL_MODE_PASSIVE 0x01
-#define ACPI_THERMAL_MODE_CRT 0xff
+#define ACPI_THERMAL_MODE_CRITICAL 0xff
#define ACPI_THERMAL_PATH_POWEROFF "/sbin/poweroff"
#define ACPI_THERMAL_MAX_ACTIVE 10
@@ -953,7 +964,7 @@
seq_puts(seq, "<setting not supported>\n");
}
- if ( tz->cooling_mode == ACPI_THERMAL_MODE_CRT )
+ if ( tz->cooling_mode == ACPI_THERMAL_MODE_CRITICAL )
seq_printf(seq, "cooling mode: critical\n");
else
seq_printf(seq, "cooling mode: %s\n",
@@ -1262,7 +1276,7 @@
tz->cooling_mode = ACPI_THERMAL_MODE_ACTIVE;
} else {
/* _ACx and _PSV are optional, but _CRT is required */
- tz->cooling_mode = ACPI_THERMAL_MODE_CRT;
+ tz->cooling_mode = ACPI_THERMAL_MODE_CRITICAL;
}
}
--
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-10-20 21:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-20 18:12 acpi-thermal: fix confusing define Pavel Machek
[not found] ` <20041020181221.GA25015-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2004-10-20 21:13 ` Len Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox