leds: Add Chrome OS keyboard LEDs driver
PATCH v2 1/1 leds: Add Chrome OS keyboard LEDs driver
Some Chrome OS devices use ACPI-based keyboard backlight LEDs.
Enable with menuconfig option under Device Drivers -> LED Support.
Change-Id Id5a762b97e131c3b66c90fd0da93658c98bd8bc8
Signed-off-by Simon Que <[email protected]>
--- drivers/leds/Kconfig | 7 +++ drivers/leds/Makefile | 1 + drivers/leds/leds-chromeos-keyboard.c | 115 ++++++++++++++++++++++++++++++++++ 3 files changed, 123 insertions(+) create mode 100644 drivers/leds/leds-chromeos-keyboard.c
drivers/leds/Kconfig +7 -0
@@ -487,6 +487,13 @@ config LEDS_BLINKM This option enables support for the BlinkM RGB LED connected through I2C. Say Y to enable support for the BlinkM LED. +config LEDS_CHROMEOS_KEYBOARD + tristate "LED support for Chrome OS keyboards" + depends on LEDS_CLASS && ACPI + help + This option enables support for the LEDs on Chrome OS keyboards. + Say Y to enable keyboard LEDs on Chrome OS systems. + comment "LED Triggers" source "drivers/leds/trigger/Kconfig"
drivers/leds/Makefile +1 -0
@@ -54,6 +54,7 @@ obj-$(CONFIG_LEDS_ASIC3) += leds-asic3.o obj-$(CONFIG_LEDS_MAX8997) += leds-max8997.o obj-$(CONFIG_LEDS_LM355x) += leds-lm355x.o obj-$(CONFIG_LEDS_BLINKM) += leds-blinkm.o +obj-$(CONFIG_LEDS_CHROMEOS_KEYBOARD) += leds-chromeos-keyboard.o # LED SPI Drivers obj-$(CONFIG_LEDS_DAC124S085) += leds-dac124s085.o
drivers/leds/leds-chromeos-keyboard.c new file +115 -0
115 lines not on this page · raw message
Signature · 1 line
2.6.0.rc2.230.g3dd15c0
Hi Simon,
This patch doesn't apply due to outdated LED tree you're using. Please fix the issues and resubmit the patch when the required dependencies mentioned by Evan are merged.
Quoted 12 lines · Simon Que
Some Chrome OS devices use ACPI-based keyboard backlight LEDs.
Enable with menuconfig option under Device Drivers -> LED Support.
Change-Id Id5a762b97e131c3b66c90fd0da93658c98bd8bc8Signed-off-by Simon Que <[email protected]>--- drivers/leds/Kconfig | 7 +++ drivers/leds/Makefile | 1 + drivers/leds/leds-chromeos-keyboard.c | 115 ++++++++++++++++++++++++++++++++++ 3 files changed, 123 insertions(+)create mode 100644
drivers/leds/leds-chromeos-keyboard.c
[...]
Signature · 2 lines
Best Regards, Jacek Anaszewski