Skip to contentSkip to conversation

leds: Add driver for Chrome OS keyboard LEDs

PATCH New Simon Que 1 participant 1 message Jan 8, 2016 LED

lore
Share & tools
lore

Simon Que

author
#0 lore raw

PATCH 1/1 leds: Add driver for Chrome OS keyboard LEDs

Some Chrome OS devices use ACPI-based keyboard backlight LEDs.

---
 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
index 72156c1..4b64e80 100644
@@ -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
index 3cd76db..bf88b27 100644
@@ -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