* [RESEND PATCH 7/7] ACPI : add a warning message if _BQC is not found
@ 2009-03-12 8:57 Zhang Rui
0 siblings, 0 replies; only message in thread
From: Zhang Rui @ 2009-03-12 8:57 UTC (permalink / raw)
To: Len Brown; +Cc: linux-acpi, Matthew Garrett, Thomas Renninger, Zhang, Rui
ACPI backlight control w/o _BQC support is kinda firmware bug.
Add a warning if _BQC is not implemented.
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
---
drivers/acpi/video_detect.c | 3 +++
1 file changed, 3 insertions(+)
Index: linux-2.6/drivers/acpi/video_detect.c
===================================================================
--- linux-2.6.orig/drivers/acpi/video_detect.c
+++ linux-2.6/drivers/acpi/video_detect.c
@@ -55,6 +55,9 @@ acpi_backlight_cap_match(acpi_handle han
ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Found generic backlight "
"support\n"));
*cap |= ACPI_VIDEO_BACKLIGHT;
+ if (ACPI_FAILURE(acpi_get_handle(handle, "_BQC", &h_dummy)))
+ printk(KERN_WARNING FW_BUG PREFIX "ACPI brightness "
+ "control misses _BQC function\n");
/* We have backlight support, no need to scan further */
return AE_CTRL_TERMINATE;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-03-12 8:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-12 8:57 [RESEND PATCH 7/7] ACPI : add a warning message if _BQC is not found Zhang Rui
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox