• Thomas Tuttle's avatar
    ACPI: Implement acpi_video_get_next_level() · f4715189
    Thomas Tuttle authored
    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: default avatarThomas Tuttle <linux-kernel@ttuttle.net>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLen Brown <len.brown@intel.com>
    f4715189
video.c 45.8 KB