diff options
author | Karel Kočí <karel.koci@nic.cz> | 2021-11-12 09:10:45 +0100 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2022-01-08 21:31:15 +0100 |
commit | 77ee281a3ef44eb8b3c38a8db932737725c233fa (patch) | |
tree | 827473d58383e05961b483e687c3ce0459ac2b3c | |
parent | aa2de44cdd9ec0c8edcd385e69859b47f1d2fd84 (diff) | |
download | upstream-77ee281a3ef44eb8b3c38a8db932737725c233fa.tar.gz upstream-77ee281a3ef44eb8b3c38a8db932737725c233fa.tar.bz2 upstream-77ee281a3ef44eb8b3c38a8db932737725c233fa.zip |
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@nic.cz>
(cherry picked from commit 507911f477cc29531a2fbdf364df42e7e4f3c696)
-rw-r--r-- | package/kernel/linux/modules/leds.mk | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/package/kernel/linux/modules/leds.mk b/package/kernel/linux/modules/leds.mk index a820bbe826..a22ea1e5f4 100644 --- a/package/kernel/linux/modules/leds.mk +++ b/package/kernel/linux/modules/leds.mk @@ -84,6 +84,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-pca963x SUBMENU:=$(LEDS_MENU) TITLE:=PCA963x LED support |