[openwrt/openwrt] kernel: modules: reenable led-group-multi-color patch
LEDE Commits
lede-commits at lists.infradead.org
Mon Mar 31 15:14:23 PDT 2025
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/f169c57242076795579ba1741045adb8eb96baa5
commit f169c57242076795579ba1741045adb8eb96baa5
Author: jonathan brophy <professor_jonny at hotmail.com>
AuthorDate: Sun Dec 15 13:36:29 2024 +1300
kernel: modules: reenable led-group-multi-color patch
This reverts commit 1375a7bae0d5e8dddb6b6cfe0584a399cd6c20b4.
This version does not activate the CONFIG_LEDS_CLASS_MULTICOLOR option,
this option is controlled by the generic target configuration.
Signed-off-by: jonathan brophy <professor_jonny at hotmail.com>
Link: https://github.com/openwrt/openwrt/pull/17277
[Reword commit message]
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
package/kernel/linux/modules/leds.mk | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/package/kernel/linux/modules/leds.mk b/package/kernel/linux/modules/leds.mk
index 98e6fc8849..adda41db30 100644
--- a/package/kernel/linux/modules/leds.mk
+++ b/package/kernel/linux/modules/leds.mk
@@ -24,6 +24,23 @@ $(eval $(call KernelPackage,leds-gpio))
LED_TRIGGER_DIR=$(LINUX_DIR)/drivers/leds/trigger
+define KernelPackage/led-group-multi-color
+ SUBMENU:=$(LEDS_MENU)
+ TITLE:=LEDs group multi-color support
+ KCONFIG:=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))
+
define KernelPackage/ledtrig-activity
SUBMENU:=$(LEDS_MENU)
TITLE:=LED Activity Trigger
@@ -330,4 +347,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))
More information about the lede-commits
mailing list