Add support for the generic backlight device to the TOSHIBA ACPI driver
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]
Signed-off-by Holger Macht <[email protected]>
Signed-off-by Andy Whitcroft <[email protected]>
Cc "Brown, Len" <[email protected]>
Signed-off-by Andrew Morton <[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
@@ -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
_