mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] acer-wmi: Fix regression in backlight detection
@ 2009-02-24  5:41 Michael Spang
  2009-02-24  9:25 ` Carlos Corbacho
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Spang @ 2009-02-24  5:41 UTC (permalink / raw)
  To: Carlos Corbacho
  Cc: Thomas Renninger, Andi Kleen, Len Brown, Linus Torvalds, linux-kernel

Currently we disable the Acer WMI backlight device if there is no ACPI
backlight device. As a result, we end up with no backlight device at
all. We should instead disable it if there is an ACPI device, as the
other laptop drivers do. This regression was introduced in febf2d9.

Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
---
 drivers/platform/x86/acer-wmi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Each laptop driver with backlight support got a similar change around
febf2d9. The changes to the other drivers look correct; see e.g. a598c82f
for a similar but correct change. The regression is also in 2.6.28.

diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c
index 94c9f91..6bcca61 100644
--- a/drivers/platform/x86/acer-wmi.c
+++ b/drivers/platform/x86/acer-wmi.c
@@ -1297,7 +1297,7 @@ static int __init acer_wmi_init(void)
 
 	set_quirks();
 
-	if (!acpi_video_backlight_support() && has_cap(ACER_CAP_BRIGHTNESS)) {
+	if (acpi_video_backlight_support() && has_cap(ACER_CAP_BRIGHTNESS)) {
 		interface->capability &= ~ACER_CAP_BRIGHTNESS;
 		printk(ACER_INFO "Brightness must be controlled by "
 		       "generic video driver\n");
-- 
1.6.0.6


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-02-24  9:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-24  5:41 [PATCH] acer-wmi: Fix regression in backlight detection Michael Spang
2009-02-24  9:25 ` Carlos Corbacho

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®