thinkpad-acpi: fix incorrect use of TPACPI_BRGHT_MODE_ECNVRAM
commite3390e2a7e12e510304d803f2fa6d23a34ce2bc2
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 1 Aug 2009 17:22:25 +0000 (1 14:22 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 1 Aug 2009 17:22:25 +0000 (1 14:22 -0300)
treedf8acb830808c8bd07b6421cc23e974e7a8ff4f1
parentee33f1c146b5794518c9d9b4efc1127116c38fa8
thinkpad-acpi: fix incorrect use of TPACPI_BRGHT_MODE_ECNVRAM

HBRV-based default selection of backlight control strategy didn't work
well, at least the X41 defines it but doesn't use it and I don't think
it will stop there.

Switch to a white/blacklist.  All models that have HBRV defined have
been included in the list, and initially all ATI GPUs will get
ECNVRAM, and the Intel GPUs will get UCMS_STEP.

Symptoms of incorrect backlight mode selection are:

1. Non-working backlight control through sysfs;

2. Backlight gets reset to the lowest level at every shutdown, reboot
   and when thinkpad-acpi gets unloaded;

This fixes a regression in 2.6.30, bugzilla #13826

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Reported-by: Tobias Diedrich <ranma+kernel@tdiedrich.de>
drivers/platform/x86/thinkpad_acpi.c