Skip to contentSkip to conversation

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

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

lore
Share & tools
lore
#0 lore raw

PATCH 7/8 Add support for the generic backlight device to the TOSHIBA 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 get_lcd and set_lcd 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/toshiba_acpi.c |   88 +++++++++++++++++++++++++---------
 2 files changed, 66 insertions(+), 23 deletions(-)
drivers/acpi/Kconfig renamed from drivers/acpi/Kconfig~add-support-for-the-generic-backlight-device-to-the-toshiba-acpi-driver +1 -0
diff -puN drivers/acpi/Kconfig~add-support-for-the-generic-backlight-device-to-the-toshiba-acpi-driver drivers/acpi/Kconfig
@@ -234,6 +234,7 @@ config ACPI_IBM_DOCK
 config ACPI_TOSHIBA
 	tristate "Toshiba Laptop Extras"
 	depends on X86
+	select BACKLIGHT_CLASS_DEVICE
 	---help---
 	  This driver adds support for access to certain system settings
 	  on "legacy free" Toshiba laptops.  These laptops can be recognized by
drivers/acpi/toshiba_acpi.c renamed from drivers/acpi/toshiba_acpi.c~add-support-for-the-generic-backlight-device-to-the-toshiba-acpi-driver +65 -23

136 lines not on this page · raw message

_