summaryrefslogtreecommitdiff
path: root/target/linux/lantiq/base-files/etc/diag.sh
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2016-10-04 20:30:34 +0200
committerMathias Kresin <dev@kresin.me>2016-10-05 19:23:23 +0200
commit8b639410d188a979783cc57f9a4fedbcd362bf10 (patch)
treec8f44667cbe46ab72a2ecc4d6a4371a282fb7c26 /target/linux/lantiq/base-files/etc/diag.sh
parentdbb13a81b9a3fbe0908a751279a50f51da960f87 (diff)
downloadmtk-20170518-8b639410d188a979783cc57f9a4fedbcd362bf10.zip
mtk-20170518-8b639410d188a979783cc57f9a4fedbcd362bf10.tar.gz
mtk-20170518-8b639410d188a979783cc57f9a4fedbcd362bf10.tar.bz2
lantiq: cleanup led handling functions
Use a more generic name for the lantiq_get_dt_led_chosen function. Drop the lantiq_is_dt_led_chosen function. The lantiq_get_dt_led function can be used to achieve the same. Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/lantiq/base-files/etc/diag.sh')
-rw-r--r--target/linux/lantiq/base-files/etc/diag.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/lantiq/base-files/etc/diag.sh b/target/linux/lantiq/base-files/etc/diag.sh
index f6363b3..70ed25c 100644
--- a/target/linux/lantiq/base-files/etc/diag.sh
+++ b/target/linux/lantiq/base-files/etc/diag.sh
@@ -4,9 +4,9 @@
. /lib/functions/leds.sh
. /lib/functions/lantiq.sh
-boot="$(lantiq_get_dt_led_chosen boot)"
-failsafe="$(lantiq_get_dt_led_chosen failsafe)"
-running="$(lantiq_get_dt_led_chosen running)"
+boot="$(lantiq_get_dt_led boot)"
+failsafe="$(lantiq_get_dt_led failsafe)"
+running="$(lantiq_get_dt_led running)"
set_state() {
status_led="$boot"