thinkpad-acpi: fix incorrect use of TPACPI_BRGHT_MODE_ECNVRAM
commit30f5582a68a013f742657c3f2b8737f0c5ad6c79
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 26 Sep 2009 00:57:33 +0000 (25 21:57 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Oct 2009 15:28:07 +0000 (5 08:28 -0700)
treebf70e61911f4b31be19681f0b52064c5ce6dd8ef
parent51acd2e6291fe7527bfd3106f5535e68993de0f9
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 blacklist, and make sure only Radeon-
based models get ECNVRAM.

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.  This fix is
already present on 2.6.31.

This is a minimal patch for 2.6.30-stable, based on mainline
commits: 050df107c408a3df048524b3783a5fc6d4dccfdb,
 7d95a3d564901e88ed42810f054e579874151999,
 59fe4fe34d7afdf63208124f313be9056feaa2f4,
 6da25bf51689a5cc60370d30275dbb9e6852e0cb

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Reported-by: Tobias Diedrich <ranma+kernel@tdiedrich.de>
Reported-by: Robert de Rooy <robert.de.rooy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/platform/x86/thinkpad_acpi.c