From: Thomas Tuttle Date: Tue, 19 Dec 2006 20:56:14 +0000 (-0800) Subject: ACPI: Implement acpi_video_get_next_level() X-Git-Tag: v2.6.20-rc2~6^2~5^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4715189dfb1c381ad36b7e02e3716fb7a7f84db;p=pandora-kernel.git ACPI: Implement acpi_video_get_next_level() acpi_video_get_next_level was supposed to implement an algorithm to select a new brightness level based on the old brightness level of an ACPI video device, but it simply says "/* Fix me */" and returns the current brightness. This patch implements acpi_video_get_next_level properly. It had to change a few constants at the top of the file because they were (apparently) wrong, but it appears to work on my Dell Inspiron e1405 (with BIOS A05 only--BIOS A04 doesn't seem to send ACPI video hotkey events). [akpm@osdl.org: cleanups] Signed-off-by: Thomas Tuttle Signed-off-by: Andrew Morton Signed-off-by: Len Brown --- Reading git-diff-tree failed