From c3319322b2eec0769a380a14094c3c7482387a03 Mon Sep 17 00:00:00 2001 From: Adrian Schmutzler Date: Wed, 30 Sep 2020 20:49:57 +0200 Subject: lantiq: remove model name from LED labels Like in the previous patches for other targets, this will remove the "devicename" from LED labels in lantiq. The devicename is removed in DTS files and 01_leds, consolidation of definitions into DTSI files is done where (easily) possible, and migration scripts are updated. The DTS/DTSI consolidation is only performed for files-5.4. For lantiq,easy98020 some LED definitions have the form "devicename:function" without the color, so we need to implement explicit migration for that one. Signed-off-by: Adrian Schmutzler --- target/linux/lantiq/xway/base-files/etc/board.d/01_leds | 4 ++-- target/linux/lantiq/xway/base-files/etc/uci-defaults/01_led_migration | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'target/linux/lantiq/xway/base-files/etc') diff --git a/target/linux/lantiq/xway/base-files/etc/board.d/01_leds b/target/linux/lantiq/xway/base-files/etc/board.d/01_leds index 82a39f4648..872634aa61 100755 --- a/target/linux/lantiq/xway/base-files/etc/board.d/01_leds +++ b/target/linux/lantiq/xway/base-files/etc/board.d/01_leds @@ -32,10 +32,10 @@ board=$(board_name) case "$board" in arcadyan,arv7506pw11) - ucidef_set_led_wlan "wifi" "wifi" "arv7506pw11:green:wlan" "phy0radio" + ucidef_set_led_wlan "wifi" "wifi" "green:wlan" "phy0radio" ;; arcadyan,arv752dpw22) - ucidef_set_led_wlan "wifi" "wifi" "arv752dpw22:red:wifi" "phy0radio" + ucidef_set_led_wlan "wifi" "wifi" "red:wifi" "phy0radio" ;; esac diff --git a/target/linux/lantiq/xway/base-files/etc/uci-defaults/01_led_migration b/target/linux/lantiq/xway/base-files/etc/uci-defaults/01_led_migration index 0139ef28b5..5769739b7e 100644 --- a/target/linux/lantiq/xway/base-files/etc/uci-defaults/01_led_migration +++ b/target/linux/lantiq/xway/base-files/etc/uci-defaults/01_led_migration @@ -27,10 +27,12 @@ bt,homehub-v3a) ;; netgear,dgn3500|\ netgear,dgn3500b) - migrate_leds "dgn3500:blue:wireless=dgn3500:green:wireless" + migrate_leds "blue:wireless=green:wireless" ;; esac +remove_devicename_leds + migrations_apply system exit 0 -- cgit v1.2.3