[OpenWrt-Devel] [PATCH] ar71xx: make LED names for EnGenius routers follow convention

Forest Crossman cyrozap at gmail.com
Wed Aug 20 18:45:35 EDT 2014


Signed-off-by: Forest Crossman <cyrozap at gmail.com>
---
 target/linux/ar71xx/base-files/etc/diag.sh                |  4 ++--
 target/linux/ar71xx/base-files/etc/uci-defaults/01_leds   |  8 ++++----
 target/linux/ar71xx/files/arch/mips/ath79/mach-eap300v2.c |  6 +++---
 target/linux/ar71xx/files/arch/mips/ath79/mach-esr900.c   | 10 +++++-----
 4 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index 1864b11..0401b93 100755
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -63,7 +63,7 @@ get_status_led() {
 		status_led="d-link:amber:power"
 		;;
 	eap300v2)
-		status_led="engenius:blue:power"
+		status_led="eap300v2:blue:power"
 		;;
 	eap7660d)
 		status_led="eap7660d:green:ds4"
@@ -79,7 +79,7 @@ get_status_led() {
 		status_led="esr1750:amber:power"
 		;;
 	esr900)
-		status_led="engenius:amber:power"
+		status_led="esr900:amber:power"
 		;;
 	hiwifi-hc6361)
 		status_led="hiwifi:blue:system"
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
index d104f40..4d0992d 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
@@ -66,8 +66,8 @@ db120)
 	;;
 
 eap300v2)
-	ucidef_set_led_netdev "lan" "LAN" "engenius:blue:lan" "eth0"
-	ucidef_set_led_wlan "wlan" "WLAN" "engenius:blue:wlan" "phy0tpt"
+	ucidef_set_led_netdev "lan" "LAN" "eap300v2:blue:lan" "eth0"
+	ucidef_set_led_wlan "wlan" "WLAN" "eap300v2:blue:wlan" "phy0tpt"
 	;;
 
 rb-750)
@@ -119,8 +119,8 @@ gl-inet)
 	;;
 
 esr900)
-	ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "engenius:blue:wlan-2g" "phy0tpt"
-	ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "engenius:blue:wlan-5g" "phy1tpt"
+	ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "esr900:blue:wlan-2g" "phy0tpt"
+	ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "esr900:blue:wlan-5g" "phy1tpt"
 	;;
 
 hiwifi-hc6361)
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-eap300v2.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-eap300v2.c
index ba577e2..0aaf8e9 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-eap300v2.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-eap300v2.c
@@ -35,15 +35,15 @@
 
 static struct gpio_led eap300v2_leds_gpio[] __initdata = {
 	{
-		.name		= "engenius:blue:power",
+		.name		= "eap300v2:blue:power",
 		.gpio		= EAP300V2_GPIO_LED_POWER,
 		.active_low	= 1,
 	}, {
-		.name		= "engenius:blue:lan",
+		.name		= "eap300v2:blue:lan",
 		.gpio		= EAP300V2_GPIO_LED_LAN,
 		.active_low	= 1,
 	}, {
-		.name		= "engenius:blue:wlan",
+		.name		= "eap300v2:blue:wlan",
 		.gpio		= EAP300V2_GPIO_LED_WLAN,
 		.active_low	= 1,
 	}
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-esr900.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-esr900.c
index ca36e36..88a80f9 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-esr900.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-esr900.c
@@ -53,27 +53,27 @@
 
 static struct gpio_led esr900_leds_gpio[] __initdata = {
 	{
-		.name		= "engenius:amber:power",
+		.name		= "esr900:amber:power",
 		.gpio		= ESR900_GPIO_LED_POWER,
 		.active_low	= 1,
 	},
 	{
-		.name		= "engenius:blue:wlan-2g",
+		.name		= "esr900:blue:wlan-2g",
 		.gpio		= ESR900_GPIO_LED_WLAN_2G,
 		.active_low	= 1,
 	},
 	{
-		.name		= "engenius:blue:wps",
+		.name		= "esr900:blue:wps",
 		.gpio		= ESR900_GPIO_LED_WPS_BLUE,
 		.active_low	= 1,
 	},
 	{
-		.name		= "engenius:amber:wps",
+		.name		= "esr900:amber:wps",
 		.gpio		= ESR900_GPIO_LED_WPS_AMBER,
 		.active_low	= 1,
 	},
 	{
-		.name		= "engenius:blue:wlan-5g",
+		.name		= "esr900:blue:wlan-5g",
 		.gpio		= ESR900_GPIO_LED_WLAN_5G,
 		.active_low	= 1,
 	}
-- 
1.9.2
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list