diff options
| author | Jonathan Brophy | 2024-09-10 09:43:23 +0000 |
|---|---|---|
| committer | John Crispin | 2024-12-12 11:17:01 +0000 |
| commit | 5fd86d66c15fc4d6f5076f7d07c91e0690d91531 (patch) | |
| tree | 9acc915e224c36ca199e93de0f65d71f14e38b1e | |
| parent | 06c2d5524c0d162ac2af5e55b03e217fcb882cf7 (diff) | |
| download | openwrt-5fd86d66c15fc4d6f5076f7d07c91e0690d91531.tar.gz | |
kernel: modules: add support for led-group-multicolor
This option enables support for monochrome LEDs that are grouped into multicolor
LEDs which is useful in the case where LEDs of different colors are physically
grouped in a single multi-color LED and driven by a controller that doesn't have
multi-color support.
Signed-off-by: Jonathan Brophy <professor_jonny@hotmail.com>
Link: https://github.com/openwrt/openwrt/pull/16397
Signed-off-by: John Crispin <john@phrozen.org>
| -rw-r--r-- | package/kernel/linux/modules/leds.mk | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/package/kernel/linux/modules/leds.mk b/package/kernel/linux/modules/leds.mk index 0c42895bb2..f6f74283ee 100644 --- a/package/kernel/linux/modules/leds.mk +++ b/package/kernel/linux/modules/leds.mk @@ -22,6 +22,25 @@ endef $(eval $(call KernelPackage,leds-gpio)) +define KernelPackage/led-group-multicolor + SUBMENU:=$(LEDS_MENU) + TITLE:=LEDs group multi-color support + KCONFIG:= \ + CONFIG_LEDS_CLASS_MULTICOLOR \ + CONFIG_LEDS_GROUP_MULTICOLOR + FILES:=$(LINUX_DIR)/drivers/leds/rgb/leds-group-multicolor.ko + AUTOLOAD:=$(call AutoProbe,led-group-multi-color) +endef + +define KernelPackage/led-group-multi-color/description + This option enables support for monochrome LEDs that are grouped + into multicolor LEDs which is useful in the case where LEDs of + different colors are physically grouped in a single multi-color LED + and driven by a controller that does not have multi-color support. +endef + +$(eval $(call KernelPackage,led-group-multi-color)) + LED_TRIGGER_DIR=$(LINUX_DIR)/drivers/leds/trigger define KernelPackage/ledtrig-activity @@ -313,4 +332,4 @@ define KernelPackage/leds-lp5562/description LED controllers. endef -$(eval $(call KernelPackage,leds-lp5562))
\ No newline at end of file +$(eval $(call KernelPackage,leds-lp5562)) |