leds: Add driver for Chrome OS keyboard LEDs
PATCH 1/1 leds: Add driver for Chrome OS keyboard LEDs
Some Chrome OS devices use ACPI-based keyboard backlight LEDs.
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
@@ -5,6 +5,13 @@ config LEDS_GPIO_REGISTER As this function is used by arch code it must not be compiled as a module. +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. + menuconfig NEW_LEDS bool "LED Support" help
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.1.2