Add support for the generic backlight device to the IBM ACPI driver
PATCH 5/8 Add support for the generic backlight device to the IBM ACPI driver
From: Holger Macht <[email protected]>
Add support for the generic backlight interface below /sys/class/backlight. The patch keeps the procfs brightness handling for backward compatibility.
For this to archive, the patch adds two generic functions brightness_get and brightness_set to be used both by the procfs related and the sysfs related methods.
[[email protected]: backlight users need to select BACKLIGHT_CLASS_DEVICE]
Signed-off-by Holger Macht <[email protected]>
Cc "Brown, Len" <[email protected]>
Signed-off-by Andy Whitcroft <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/acpi/Kconfig | 1 drivers/acpi/ibm_acpi.c | 75 ++++++++++++++++++++++++++++++-------- 2 files changed, 62 insertions(+), 14 deletions(-)
drivers/acpi/Kconfig renamed from drivers/acpi/Kconfig~add-support-for-the-generic-backlight-device-to-the-ibm-acpi-driver +1 -0
@@ -207,6 +207,7 @@ config ACPI_ASUS config ACPI_IBM tristate "IBM ThinkPad Laptop Extras" depends on X86 + select BACKLIGHT_CLASS_DEVICE ---help--- This is a Linux ACPI driver for the IBM ThinkPad laptops. It adds support for Fn-Fx key combinations, Bluetooth control, video
drivers/acpi/ibm_acpi.c renamed from drivers/acpi/ibm_acpi.c~add-support-for-the-generic-backlight-device-to-the-ibm-acpi-driver +61 -14
136 lines not on this page · raw message
_