ACPI: ibm_acpi: Add support for the generic backlight device
commit14ce0921c66cad9f42fa41b509d054edf7b2395f
authorHolger Macht <hmacht@suse.de>
Fri, 20 Oct 2006 21:30:28 +0000 (20 14:30 -0700)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 3 Mar 2007 22:55:04 +0000 (3 19:55 -0300)
treea92bfba7d187d940b22359c8529db31f5fc66965
parent73be75e621f85c4edeef58872e65e23f117a6853
ACPI: ibm_acpi: Add support for the generic backlight device

Add support for the generic backlight interface below /sys/class/backlight.
The patch keeps the procfs brightness handling for backward compatibility.

Add two generic functions brightness_get and brightness_set
to be used both by the procfs related and the sysfs related methods.

[apw@shadowen.org: backlight users need to select BACKLIGHT_CLASS_DEVICE]

Signed-off-by: Holger Macht <hmacht@suse.de>
Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/Kconfig
drivers/acpi/ibm_acpi.c