]> err.no Git - linux-2.6/commit
ACPI: ibm_acpi: Add support for the generic backlight device
authorHolger Macht <hmacht@suse.de>
Fri, 20 Oct 2006 21:30:28 +0000 (14:30 -0700)
committerLen Brown <len.brown@intel.com>
Sat, 21 Oct 2006 05:34:48 +0000 (01:34 -0400)
commit8acb025085aa88c41063bfa0f2c3b4d0a3f2ef11
tree3bc37ab8a95ff4f5d1878c2fd2553b46a3e08d02
parentc7a3bd177f248d01ee18a01d22048c80e071c331
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