Skip to contentSkip to conversation

Add support for the generic backlight device to the IBM ACPI driver

PATCH Applied [email protected] 1 participant 1 message Oct 20, 2006 ACPI

lore
Share & tools
lore
#0 lore raw

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]
Cc "Brown, Len" <[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
diff -puN drivers/acpi/Kconfig~add-support-for-the-generic-backlight-device-to-the-ibm-acpi-driver drivers/acpi/Kconfig
@@ -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

_