Skip to contentSkip to conversation

leds: Add Chrome OS keyboard LEDs driver

PATCH Superseded Simon Que 2 participants 2 messages Jan 11, 2016 – Jan 12, 2016 LED

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Simon Que

author
#0 lore raw

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
---
 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..c530085 100644
@@ -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
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.6.0.rc2.230.g3dd15c0
#1 lore raw

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 Id5a762b97e131c3b66c90fd0da93658c98bd8bc8
---
  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