diff options
author | Felix Fietkau <nbd@nbd.name> | 2016-08-04 19:12:21 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2016-08-04 20:53:02 +0200 |
commit | 577f873dafdf3914c79ee21869288f20d419a39f (patch) | |
tree | ab095458101aea1eef8766a97dc307207464f22d /package | |
parent | 9e62a7668c4085563a907da51a08819c88d04f33 (diff) | |
download | upstream-577f873dafdf3914c79ee21869288f20d419a39f.tar.gz upstream-577f873dafdf3914c79ee21869288f20d419a39f.tar.bz2 upstream-577f873dafdf3914c79ee21869288f20d419a39f.zip |
kernel: remove unused morse led trigger driver
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package')
-rwxr-xr-x | package/base-files/files/etc/init.d/led | 5 | ||||
-rw-r--r-- | package/base-files/files/lib/functions/leds.sh | 11 | ||||
-rw-r--r-- | package/kernel/linux/modules/leds.mk | 15 |
3 files changed, 0 insertions, 31 deletions
diff --git a/package/base-files/files/etc/init.d/led b/package/base-files/files/etc/init.d/led index 1d10f723d0..aca0149c24 100755 --- a/package/base-files/files/etc/init.d/led +++ b/package/base-files/files/etc/init.d/led @@ -83,11 +83,6 @@ load_led() { echo $port_state > /sys/class/leds/${sysfs}/port_state ;; - "morse") - echo $message > /sys/class/leds/${sysfs}/message - echo $delay > /sys/class/leds/${sysfs}/delay - ;; - "gpio") echo $gpio > /sys/class/leds/${sysfs}/gpio echo $inverted > /sys/class/leds/${sysfs}/inverted diff --git a/package/base-files/files/lib/functions/leds.sh b/package/base-files/files/lib/functions/leds.sh index d4d45125c5..857e7e5392 100644 --- a/package/base-files/files/lib/functions/leds.sh +++ b/package/base-files/files/lib/functions/leds.sh @@ -21,12 +21,6 @@ led_off() { led_set_attr $1 "brightness" 0 } -led_morse() { - led_set_attr $1 "trigger" "morse" - led_set_attr $1 "delay" "$2" - led_set_attr $1 "message" "$3" -} - status_led_set_timer() { led_timer $status_led "$1" "$2" [ -n "$status_led2" ] && led_timer $status_led2 "$1" "$2" @@ -36,11 +30,6 @@ status_led_set_heartbeat() { led_set_attr $status_led "trigger" "heartbeat" } -status_led_set_morse() { - led_morse $status_led "$1" "$2" - [ -n "$status_led2" ] && led_morse $status_led2 "$1" "$2" -} - status_led_on() { led_on $status_led [ -n "$status_led2" ] && led_on $status_led2 diff --git a/package/kernel/linux/modules/leds.mk b/package/kernel/linux/modules/leds.mk index aea62902ac..efcb030564 100644 --- a/package/kernel/linux/modules/leds.mk +++ b/package/kernel/linux/modules/leds.mk @@ -54,21 +54,6 @@ endef $(eval $(call KernelPackage,ledtrig-gpio)) -define KernelPackage/ledtrig-morse - SUBMENU:=$(LEDS_MENU) - TITLE:=LED Morse Trigger - KCONFIG:=CONFIG_LEDS_TRIGGER_MORSE - FILES:=$(LINUX_DIR)/drivers/leds/ledtrig-morse.ko - AUTOLOAD:=$(call AutoLoad,50,ledtrig-morse) -endef - -define KernelPackage/ledtrig-morse/description - Kernel module to show morse coded messages on LEDs -endef - -$(eval $(call KernelPackage,ledtrig-morse)) - - define KernelPackage/ledtrig-netdev SUBMENU:=$(LEDS_MENU) TITLE:=LED NETDEV Trigger |