[openwrt/openwrt] kernel: add kmod-ledtrig-pattern

LEDE Commits lede-commits at lists.infradead.org
Sat Nov 20 12:08:49 PST 2021


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/507911f477cc29531a2fbdf364df42e7e4f3c696

commit 507911f477cc29531a2fbdf364df42e7e4f3c696
Author: Karel Kočí <karel.koci at nic.cz>
AuthorDate: Fri Nov 12 09:10:45 2021 +0100

    kernel: add kmod-ledtrig-pattern
    
    This allows LEDs to be triggered by custom pattern and not just
    predefined ones.
    
    Signed-off-by: Karel Kočí <karel.koci at nic.cz>
---
 package/kernel/linux/modules/leds.mk | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/package/kernel/linux/modules/leds.mk b/package/kernel/linux/modules/leds.mk
index 0ef0aee3fb..8d104f5651 100644
--- a/package/kernel/linux/modules/leds.mk
+++ b/package/kernel/linux/modules/leds.mk
@@ -99,6 +99,22 @@ endef
 $(eval $(call KernelPackage,ledtrig-oneshot))
 
 
+define KernelPackage/ledtrig-pattern
+  SUBMENU:=$(LEDS_MENU)
+  TITLE:=LED Pattern Trigger
+  KCONFIG:=CONFIG_LEDS_TRIGGER_PATTERN
+  FILES:=$(LED_TRIGGER_DIR)/ledtrig-pattern.ko
+  AUTOLOAD:=$(call AutoLoad,50,ledtrig-pattern)
+endef
+
+define KernelPackage/ledtrig-pattern/description
+ This allows LEDs to be controlled by a software or hardware pattern
+ which is a series of tuples, of brightness and duration (ms).
+endef
+
+$(eval $(call KernelPackage,ledtrig-pattern))
+
+
 define KernelPackage/leds-apu
   SUBMENU:=$(LEDS_MENU)
   TITLE:=PC Engines APU1 LED support



More information about the lede-commits mailing list