ACPI: thinkpad-acpi: prefer standard ACPI backlight level control
commite11e211a0b21bbb625fac2056bdb54dd02020556
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Tue, 30 Oct 2007 19:46:22 +0000 (30 17:46 -0200)
committerLen Brown <len.brown@intel.com>
Mon, 5 Nov 2007 18:07:11 +0000 (5 13:07 -0500)
treec3ac4b86432138f467190c7bad40fae68b4cda6a
parent87cc537a54fc017d998cf603f5fab9ca4a85d668
ACPI: thinkpad-acpi: prefer standard ACPI backlight level control

Newer Lenovo BIOSes support the standard ACPI backlight brightness
interface (_BCM, _BQC, _BCL).  It should be used instead of the native
thinkpad backlight brightness control interface when possible.

This patch disables the native brightness support in the driver by default
when we detect that the standard ACPI interface is available.  The local
admin can still enable it using the module parameter "brightness_enable".

Note that we need to detect the standard ACPI backlight interface only in
boxes for which we would load the native backlight interface in the first
place, and that no ThinkPad BIOS has _BCL but misses the other methods, so
the detection routines can be really simple.

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: Len Brown <len.brown@intel.com>
Documentation/thinkpad-acpi.txt
drivers/misc/thinkpad_acpi.c