summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/glue.c
diff options
context:
space:
mode:
authorZhang Rui <rui.zhang@intel.com>2009-04-09 08:24:35 +0200
committerLen Brown <len.brown@intel.com>2009-04-11 07:05:58 +0200
commite047cca66c6bb0b1c346e91305011aab79dfc4b0 (patch)
treec656787366e002db0ce091a1629f19d0566f94fa /drivers/acpi/glue.c
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-2.6-mn10300 (diff)
downloadlinux-e047cca66c6bb0b1c346e91305011aab79dfc4b0.tar.xz
linux-e047cca66c6bb0b1c346e91305011aab79dfc4b0.zip
ACPI video: handle indexed _BQC correctly
In the current code, for a box with an indexed _BQC method, we 1. get the current brightness level by evaluating _BQC 2. set the value gotten in step 1 to _BCM 3. get the current brightness level again 4. set the _BQC_use_index flag if the results gotten in step 1 and in step 3 don't equal. But this logic doesn't work actually, because the _BQC_use_index is not set when acpi_video_device_lcd_set_level is invoked. This results in a failure in step 2. http://bugzilla.kernel.org/show_bug.cgi?id=12249#c83 Now, we set the _BQC_use_index flag after invoking _BQC for the first time. And reevaluate the _BQC to get the correct brightness level. Signed-off-by: Zhang Rui <rui.zhang@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/glue.c')
0 files changed, 0 insertions, 0 deletions