aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-11-05 07:10:35 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-11-05 07:10:35 +0000
commitaa0944ff72ac93b1ce5461b929f5441edabd3dbd (patch)
tree6d2eee2c917ba9d242b06f9194b7813352625c09
parent829aaedcbfeaefb47b86a0fff5ac17ee42f3a38c (diff)
downloadupstream-aa0944ff72ac93b1ce5461b929f5441edabd3dbd.tar.gz
upstream-aa0944ff72ac93b1ce5461b929f5441edabd3dbd.tar.bz2
upstream-aa0944ff72ac93b1ce5461b929f5441edabd3dbd.zip
Add ledtrig-oneshot module for 3.6 kernels
This patch adds a package for the ledtrig-oneshot module, available in 3.6 and later. [juhosg: change dependency from LINUX_3_6 to !LINUX_3_3] Signed-off-by: Roman A. aka BasicXP <x12ozmouse@ya.ru> SVN-Revision: 34079
-rw-r--r--package/kernel/modules/leds.mk17
1 files changed, 17 insertions, 0 deletions
diff --git a/package/kernel/modules/leds.mk b/package/kernel/modules/leds.mk
index b2970c6093..5b9b017042 100644
--- a/package/kernel/modules/leds.mk
+++ b/package/kernel/modules/leds.mk
@@ -150,3 +150,20 @@ define KernelPackage/ledtrig-timer/description
endef
$(eval $(call KernelPackage,ledtrig-timer))
+
+
+define KernelPackage/ledtrig-oneshot
+ SUBMENU:=$(LEDS_MENU)
+ TITLE:=LED One-Shot Trigger
+ DEPENDS:=@!LINUX_3_3
+ KCONFIG:=CONFIG_LEDS_TRIGGER_ONESHOT
+ FILES:=$(LINUX_DIR)/drivers/leds/ledtrig-oneshot.ko
+ AUTOLOAD:=$(call AutoLoad,50,ledtrig-oneshot)
+endef
+
+define KernelPackage/ledtrig-oneshot/description
+ Kernel module that allows LEDs to be triggered by sporadic events in
+ one-shot pulses.
+endef
+
+$(eval $(call KernelPackage,ledtrig-oneshot))