From da0de5e007cda0abef442bef860f867033206291 Mon Sep 17 00:00:00 2001 From: Adrian Schmutzler Date: Tue, 6 Aug 2019 14:30:42 +0200 Subject: ramips: fix LED labels not updated during device name changes In commit d93969a13a5b ("ramips: Improve compatible for TP-Link Archer devices") and subsequent ones, names of several devices in ramips have been changed. Since LED names are frequently invoked by $boardname, this has broken LED setup in 01_leds, as $boardname and prefix in DTS do not match anymore. This patch updates device name prefixes for LEDs in DTS files, and provides a migration script. Signed-off-by: Adrian Schmutzler --- target/linux/ramips/dts/mt7628an_tplink_archer-c50-v3.dts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'target/linux/ramips/dts/mt7628an_tplink_archer-c50-v3.dts') diff --git a/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v3.dts b/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v3.dts index d3d1329647..3da6128897 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v3.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v3.dts @@ -37,37 +37,37 @@ compatible = "gpio-leds"; lan { - label = "c50-v3:green:lan"; + label = "archer-c50-v3:green:lan"; gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; }; led_power: power { - label = "c50-v3:green:power"; + label = "archer-c50-v3:green:power"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; wan { - label = "c50-v3:green:wan"; + label = "archer-c50-v3:green:wan"; gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; }; wan_orange { - label = "c50-v3:orange:wan"; + label = "archer-c50-v3:orange:wan"; gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; }; wlan { - label = "c50-v3:green:wlan2g"; + label = "archer-c50-v3:green:wlan2g"; gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; }; wlan5 { - label = "c50-v3:green:wlan5g"; + label = "archer-c50-v3:green:wlan5g"; gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; }; wps { - label = "c50-v3:green:wps"; + label = "archer-c50-v3:green:wps"; gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; }; }; -- cgit v1.2.3