kernel: add ledtrig-transient module support
authorJohn Crispin <john@openwrt.org>
Mon, 6 Oct 2014 04:52:44 +0000 (04:52 +0000)
committerJohn Crispin <john@openwrt.org>
Mon, 6 Oct 2014 04:52:44 +0000 (04:52 +0000)
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
SVN-Revision: 42790

package/kernel/linux/modules/leds.mk

index 24a03ddf032f23e33253d8216198aa6685d125e2..9c54c781913e49e02a4780647db28049332cec5b 100644 (file)
@@ -151,6 +151,21 @@ endef
 $(eval $(call KernelPackage,ledtrig-timer))
 
 
+define KernelPackage/ledtrig-transient
+  SUBMENU:=$(LEDS_MENU)
+  TITLE:=LED Transient Trigger
+  KCONFIG:=CONFIG_LEDS_TRIGGER_TRANSIENT
+  FILES:=$(LINUX_DIR)/drivers/leds/$(if $(call kernel_patchver_ge,3.10),trigger/)ledtrig-transient.ko
+  AUTOLOAD:=$(call AutoLoad,50,ledtrig-transient,1)
+endef
+
+define KernelPackage/ledtrig-transient/description
+ Kernel module that allows LEDs one time activation of a transient state.
+endef
+
+$(eval $(call KernelPackage,ledtrig-transient))
+
+
 define KernelPackage/ledtrig-oneshot
   SUBMENU:=$(LEDS_MENU)
   TITLE:=LED One-Shot Trigger