thinkpad-acpi: fix incorrect use of TPACPI_BRGHT_MODE_ECNVRAM
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 1 Aug 2009 15:04:20 +0000 (12:04 -0300)
committerLen Brown <len.brown@intel.com>
Sun, 2 Aug 2009 03:55:53 +0000 (23:55 -0400)
commit59fe4fe34d7afdf63208124f313be9056feaa2f4
tree519c227b9f27509ac2ce03de9e6d271698536375
parent5b05d4696d38c3172e79e855cc1e2ed044589508
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>
Cc: stable@kernel.org
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/platform/x86/thinkpad_acpi.c