ACPI: Implement acpi_video_get_next_level()
authorThomas Tuttle <linux-kernel@ttuttle.net>
Tue, 19 Dec 2006 20:56:14 +0000 (12:56 -0800)
committerLen Brown <len.brown@intel.com>
Wed, 20 Dec 2006 06:38:38 +0000 (01:38 -0500)
commitf4715189dfb1c381ad36b7e02e3716fb7a7f84db
treecaa02518b93f2d6d5a26138a23fbee82e8fd497c
parent4afaf54b3b97fa8cf2d1d9bcd7612b195acb53ae
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 <linux-kernel@ttuttle.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/video.c