ACPI: toshiba_acpi: Add support for the generic backlight device
authorHolger Macht <hmacht@suse.de>
Fri, 20 Oct 2006 21:30:29 +0000 (14:30 -0700)
committerLen Brown <len.brown@intel.com>
Sat, 21 Oct 2006 05:37:28 +0000 (01:37 -0400)
commitc92635572489b810d03acdf03f61bf6dd1af5433
tree1cd8aa4bc014a40aad2780eb3fe743768c78fc40
parent2039a6eb72d4b5d0dd71de5c4dff5db129848c44
ACPI: toshiba_acpi: Add support for the generic backlight device

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

To achive this, add two generic functions get_lcd and set_lcd
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/toshiba_acpi.c