[source] ar71xx: fix LED names for GL Innovations boards

LEDE Commits lede-commits at lists.infradead.org
Tue Oct 4 02:51:17 PDT 2016


blogic pushed a commit to source.git, branch master:
https://git.lede-project.org/c142df309420b153253ff739ec5511501878b5b0

commit c142df309420b153253ff739ec5511501878b5b0
Author: Piotr Dymacz <pepe2k at gmail.com>
AuthorDate: Thu Sep 29 09:18:05 2016 +0200

    ar71xx: fix LED names for GL Innovations boards
    
    Signed-off-by: Piotr Dymacz <pepe2k at gmail.com>
---
 target/linux/ar71xx/base-files/etc/board.d/01_leds     | 18 +++++++++---------
 target/linux/ar71xx/base-files/etc/diag.sh             |  2 +-
 .../linux/ar71xx/files/arch/mips/ath79/mach-gl-ar150.c |  6 +++---
 .../linux/ar71xx/files/arch/mips/ath79/mach-gl-ar300.c |  4 ++--
 .../ar71xx/files/arch/mips/ath79/mach-gl-domino.c      | 12 ++++++------
 .../linux/ar71xx/files/arch/mips/ath79/mach-gl-inet.c  |  4 ++--
 .../linux/ar71xx/files/arch/mips/ath79/mach-gl-mifi.c  | 10 +++++-----
 7 files changed, 28 insertions(+), 28 deletions(-)

diff --git a/target/linux/ar71xx/base-files/etc/board.d/01_leds b/target/linux/ar71xx/base-files/etc/board.d/01_leds
index e960e88..86a296e 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds
@@ -214,26 +214,26 @@ dlan-pro-1200-ac)
 	ucidef_set_led_gpio "plcr" "dLAN" "devolo:error:dlan" "16" "0"
 	;;
 gl-ar150)
-	ucidef_set_led_wlan "wlan" "WLAN" "gl_ar150:wlan" "phy0tpt"
+	ucidef_set_led_wlan "wlan" "WLAN" "gl-ar150:wlan" "phy0tpt"
 	;;
 gl-ar300)
-	ucidef_set_led_wlan "wlan" "WLAN" "gl_ar300:wlan" "phy0tpt"
+	ucidef_set_led_wlan "wlan" "WLAN" "gl-ar300:wlan" "phy0tpt"
 	;;
 gl-ar300m)
 	ucidef_set_led_wlan "wlan" "WLAN" "gl-ar300m:wlan" "phy0tpt"
 	;;
 gl-domino)
-	ucidef_set_led_wlan "wlan" "WLAN" "domino:blue:wlan" "phy0tpt"
+	ucidef_set_led_wlan "wlan" "WLAN" "gl-domino:blue:wlan" "phy0tpt"
 	;;
 gl-inet)
-	ucidef_set_led_netdev "lan" "LAN" "gl-connect:green:lan" "eth1"
-	ucidef_set_led_wlan "wlan" "WLAN" "gl-connect:red:wlan" "phy0tpt"
+	ucidef_set_led_netdev "lan" "LAN" "gl-inet:green:lan" "eth1"
+	ucidef_set_led_wlan "wlan" "WLAN" "gl-inet:red:wlan" "phy0tpt"
 	;;
 gl-mifi)
-	ucidef_set_led_netdev "wan" "WAN" "gl_mifi:wan" "eth0"
-	ucidef_set_led_netdev "lan" "LAN" "gl_mifi:lan" "eth1"
-	ucidef_set_led_netdev "3gnet" "3GNET" "gl_mifi:net" "3g-wan"
-	ucidef_set_led_wlan "wlan" "WLAN" "gl_mifi:wlan" "phy0tpt"
+	ucidef_set_led_netdev "wan" "WAN" "gl-mifi:wan" "eth0"
+	ucidef_set_led_netdev "lan" "LAN" "gl-mifi:lan" "eth1"
+	ucidef_set_led_netdev "3gnet" "3GNET" "gl-mifi:net" "3g-wan"
+	ucidef_set_led_wlan "wlan" "WLAN" "gl-mifi:wlan" "phy0tpt"
 	;;
 esr900)
 	ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "engenius:blue:wlan-2g" "phy0tpt"
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index fd6117b..d6e257d 100644
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -144,7 +144,7 @@ get_status_led() {
 		status_led="belkin:blue:status"
 		;;
 	gl-inet)
-		status_led="gl-connect:green:lan"
+		status_led="$board:green:lan"
 		;;
 	epg5000|\
 	esr1750)
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-ar150.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-ar150.c
index 310182c..e0d1ea4 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-ar150.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-ar150.c
@@ -42,17 +42,17 @@
 
 static struct gpio_led gl_ar150_leds_gpio[] __initdata = {
 	{
-		.name = "gl_ar150:wlan",
+		.name = "gl-ar150:wlan",
 		.gpio = GL_AR150_GPIO_LED_WLAN,
 		.active_low = 0,
 	},
 	{
-		.name = "gl_ar150:lan",
+		.name = "gl-ar150:lan",
 		.gpio = GL_AR150_GPIO_LED_LAN,
 		.active_low = 0,
 	},
 	{
-		.name = "gl_ar150:wan",
+		.name = "gl-ar150:wan",
 		.gpio = GL_AR150_GPIO_LED_WAN,
 		.active_low = 0,
  		.default_state = 1,
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-ar300.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-ar300.c
index 47db6de..6f01b9e 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-ar300.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-ar300.c
@@ -41,12 +41,12 @@
 
 static struct gpio_led gl_ar300_leds_gpio[] __initdata = {
 	{
-		.name = "gl_ar300:wlan",
+		.name = "gl-ar300:wlan",
 		.gpio = GL_AR300_GPIO_LED_WLAN,
 		.active_low = 1,
 	},
 	{
-		.name = "gl_ar300:wan",
+		.name = "gl-ar300:wan",
 		.gpio = GL_AR300_GPIO_LED_WAN,
 		.active_low = 1,
 	},
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-domino.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-domino.c
index a8a42ad..4ff8ff6 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-domino.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-domino.c
@@ -47,32 +47,32 @@
 
 static struct gpio_led domino_leds_gpio[] __initdata = {
 	{
-		.name = "domino:blue:wlan",
+		.name = "gl-domino:blue:wlan",
 		.gpio = DOMINO_GPIO_LED_WLAN,
 		.active_low = 0,
 	},
 	{
-		.name = "domino:red:wan",
+		.name = "gl-domino:red:wan",
 		.gpio = DOMINO_GPIO_LED_WAN,
 		.active_low = 1,
 	},
 	{
-		.name = "domino:white:usb",
+		.name = "gl-domino:white:usb",
 		.gpio = DOMINO_GPIO_LED_USB,
 		.active_low = 0,
 	},
 	{
-		.name = "domino:green:lan1",
+		.name = "gl-domino:green:lan1",
 		.gpio = DOMINO_GPIO_LED_LAN1,
 		.active_low = 0,
 	},
 	{
-		.name = "domino:yellow:wps",
+		.name = "gl-domino:yellow:wps",
 		.gpio = DOMINO_GPIO_LED_WPS,
 		.active_low = 1,
 	},
 	{
-		.name = "domino:orange:sys",
+		.name = "gl-domino:orange:sys",
 		.gpio = DOMINO_GPIO_LED_SYS,
 		.active_low = 1,
 	},
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-inet.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-inet.c
index 0713f14..6f603d9 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-inet.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-inet.c
@@ -41,12 +41,12 @@ static struct flash_platform_data gl_inet_flash_data = {
 
 static struct gpio_led gl_inet_leds_gpio[] __initdata = {
 	{
-		.name = "gl-connect:red:wlan",
+		.name = "gl-inet:red:wlan",
 		.gpio = GL_INET_GPIO_LED_WLAN,
 		.active_low = 0,
 	},
 	{
-		.name = "gl-connect:green:lan",
+		.name = "gl-inet:green:lan",
 		.gpio = GL_INET_GPIO_LED_LAN,
 		.active_low = 0,
 		.default_state = 1,
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-mifi.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-mifi.c
index 567fef9..42f4415 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-mifi.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-mifi.c
@@ -41,27 +41,27 @@
 
 static struct gpio_led gl_mifi_leds_gpio[] __initdata = {
 	{
-		.name = "gl_mifi:wan",
+		.name = "gl-mifi:wan",
 		.gpio = GL_MIFI_GPIO_LED_WAN,
 		.active_low = 0,
 	},
 	{
-		.name = "gl_mifi:lan",
+		.name = "gl-mifi:lan",
 		.gpio = GL_MIFI_GPIO_LED_LAN,
 		.active_low = 0,
 	},
 	{
-		.name = "gl_mifi:wlan",
+		.name = "gl-mifi:wlan",
 		.gpio = GL_MIFI_GPIO_LED_WLAN,
 		.active_low = 0,
 	},
 	{
-		.name = "gl_mifi:net",
+		.name = "gl-mifi:net",
 		.gpio = GL_MIFI_GPIO_LED_NET,
 		.active_low = 0,
 	},
 	{
-		.name = "gl_mifi:3gcontrol",
+		.name = "gl-mifi:3gcontrol",
 		.gpio = GL_MIFI_GPIO_LED_3GCONTROL,
 		.active_low = 0,
 	}



More information about the lede-commits mailing list