ACPI: thinkpad-acpi: support 16 levels of brightness
commitea17b198e2cf068efb1eb9165b18edc28aa51bae
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Wed, 3 Oct 2007 04:43:52 +0000 (3 01:43 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Wed, 3 Oct 2007 01:49:54 +0000 (2 22:49 -0300)
tree2d2b89bf55a1a89a6f9da1617f7899f6ad4b9cb5
parentef7f595282849733873349edc54f750760cf2ce0
ACPI: thinkpad-acpi: support 16 levels of brightness

Lenovo ThinkPads with ACPI Video brightness control (_BQC, _BCL, _BCM)
often have 16 brightness levels in EC, and not just eight like older
ThinkPads.

We detect the number of brightness levels by evaluating BCLL on Lenovo
ThinkPads.  It returns a list of valid ThinkPad brightness levels.  If
BCLL is not there, we can assume eight levels.  If it is there and
returns 16 levels, we switch to 16-level mode.

The driver doesn't handle anything other than 16 levels or 8 levels.

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Documentation/thinkpad-acpi.txt
drivers/misc/thinkpad_acpi.c
drivers/misc/thinkpad_acpi.h