Skip to contentSkip to conversation

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

PATCH In review Holger Macht 2 participants 2 messages Oct 13, 2006 – Oct 24, 2006 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 Add support for the generic backlight device to the IBM ACPI driver

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.

---

This is an updated version of the patch earlier sent which selects the right Kconfig option BACKLIGHT_DEVICE.

drivers/acpi/Kconfig +1 -0
index 0f9d4be..19b0d22 100644
@@ -200,6 +200,7 @@ config ACPI_ASUS
 config ACPI_IBM
 	tristate "IBM ThinkPad Laptop Extras"
 	depends on X86
+	select BACKLIGHT_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 +61 -14

136 lines not on this page · raw message

#1 lore raw

Hi!

Quoted 7 lines

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.

Looks okay to me, thanks!

Pavel

Signature · 1 line
Thanks for all the (sleeping) penguins.