ar71xx: unify LED names on TP-Link boards
authorGabor Juhos <juhosg@openwrt.org>
Tue, 1 Nov 2011 11:20:44 +0000 (11:20 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Tue, 1 Nov 2011 11:20:44 +0000 (11:20 +0000)
SVN-Revision: 28701

12 files changed:
target/linux/ar71xx/base-files/etc/diag.sh
target/linux/ar71xx/base-files/etc/uci-defaults/tl-mr3x20
target/linux/ar71xx/base-files/etc/uci-defaults/tl-wr1043nd
target/linux/ar71xx/base-files/etc/uci-defaults/tl-wr941nd
target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-mr3x20.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wa901nd-v2.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wa901nd.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr1043nd.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr703n.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr741nd.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr841n.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr941nd.c

index ad4fc28b72de6bba5265c5b1454a1475835a6b6a..daa74073324ebec0b3e5b23f0555aaa71336f8af 100755 (executable)
@@ -87,29 +87,18 @@ get_status_led() {
        tew-632brp)
                status_led="tew-632brp:green:status"
                ;;
-       tl-mr3220 | tl-mr3420)
-               status_led="tl-mr3x20:green:system"
-               ;;
-       tl-wa901nd)
-               status_led="tl-wa901nd:green:system"
-               ;;
-       tl-wa901nd-v2)
-               status_led="tl-wa901nd-v2:green:system"
-               ;;
-       tl-wr1043nd)
-               status_led="tl-wr1043nd:green:system"
+       tl-mr3220 | \
+       tl-mr3420 | \
+       tl-wa901nd | \
+       tl-wa901nd-v2 | \
+       tl-wr1043nd | \
+       tl-wr741nd | \
+       tl-wr841n-v1 | \
+       tl-wr941nd)
+               status_led="tp-link:green:system"
                ;;
        tl-wr703n)
-               status_led="tl-wr703n:blue:system"
-               ;;
-       tl-wr741nd)
-               status_led="tl-wr741nd:green:system"
-               ;;
-       tl-wr841n-v1)
-               status_led="tl-wr841n:green:system"
-               ;;
-       tl-wr941nd)
-               status_led="tl-wr941nd:green:system"
+               status_led="tp-link:blue:system"
                ;;
        unifi)
                status_led="ubnt:green:dome"
index c9e5e388190f413908262ee15a67d38782684c69..bdb7c3e78573732db2af842622d6032a14f13564 100755 (executable)
@@ -11,7 +11,7 @@ tlmr3x20_setup_leds() {
        uci batch <<EOF
 set system.usb_led=led
 set system.usb_led.name='USB'
-set system.usb_led.sysfs='tl-mr3x20:green:3g'
+set system.usb_led.sysfs='tp-link:green:3g'
 set system.usb_led.trigger='usbdev'
 set system.usb_led.dev='1-1'
 set system.usb_led.interval='50'
index 366276334cb6a6b051c03a8ef935da3fa9147555..e88cc54d69c6410038120457d6350257791384f3 100755 (executable)
@@ -11,11 +11,11 @@ tlwr1043nd_setup_leds() {
        uci batch <<EOF
 set system.wlan_led=led
 set system.wlan_led.name='WLAN'
-set system.wlan_led.sysfs='tl-wr1043nd:green:wlan'
+set system.wlan_led.sysfs='tp-link:green:wlan'
 set system.wlan_led.trigger='phy0tpt'
 set system.usb_led=led
 set system.usb_led.name='USB'
-set system.usb_led.sysfs='tl-wr1043nd:green:usb'
+set system.usb_led.sysfs='tp-link:green:usb'
 set system.usb_led.trigger='usbdev'
 set system.usb_led.dev='1-1'
 set system.usb_led.interval='50'
index 2033add37da4f1e26c052340e489d92a93a2b5f5..2b904734ce980a4e784ca0acde36d016bab93589 100755 (executable)
@@ -11,7 +11,7 @@ tl_wr941nd_set_wlan_led() {
        uci batch <<EOF
 set system.wlan_led=led
 set system.wlan_led.name='WLAN'
-set system.wlan_led.sysfs='tl-wr941nd:green:wlan'
+set system.wlan_led.sysfs='tp-link:green:wlan'
 set system.wlan_led.trigger='phy0tpt'
 commit system
 EOF
index 341f22907e9f36cfb80753ac18e9d78446f6db71..e73fec9a0203aa78396b868e66571ef6c4c52831 100644 (file)
@@ -73,15 +73,15 @@ static struct flash_platform_data tl_mr3x20_flash_data = {
 
 static struct gpio_led tl_mr3x20_leds_gpio[] __initdata = {
        {
-               .name           = "tl-mr3x20:green:system",
+               .name           = "tp-link:green:system",
                .gpio           = TL_MR3X20_GPIO_LED_SYSTEM,
                .active_low     = 1,
        }, {
-               .name           = "tl-mr3x20:green:qss",
+               .name           = "tp-link:green:qss",
                .gpio           = TL_MR3X20_GPIO_LED_QSS,
                .active_low     = 1,
        }, {
-               .name           = "tl-mr3x20:green:3g",
+               .name           = "tp-link:green:3g",
                .gpio           = TL_MR3X20_GPIO_LED_3G,
                .active_low     = 1,
        }
index 7fb4d80aefc6a7d0009e1c8963683f9c7c8c2663..198e0bfd12aa556b96ff4adff0c2ed3215628afc 100644 (file)
@@ -70,14 +70,14 @@ static struct flash_platform_data tl_wa901nd_v2_flash_data = {
 
 static struct gpio_led tl_wa901nd_v2_leds_gpio[] __initdata = {
        {
-               .name           = "tl-wa901nd-v2:green:system",
+               .name           = "tp-link:green:system",
                .gpio           = TL_WA901ND_V2_GPIO_LED_SYSTEM,
                .active_low     = 1,
        }, {
-               .name           = "tl-wa901nd-v2:green:qss",
+               .name           = "tp-link:green:qss",
                .gpio           = TL_WA901ND_V2_GPIO_LED_QSS,
        }, {
-               .name           = "tl-wa901nd-v2:green:wlan",
+               .name           = "tp-link:green:wlan",
                .gpio           = TL_WA901ND_V2_GPIO_LED_WLAN,
                .active_low     = 1,
        }
index 4a108feba188dfe0a1858eac8ae95fa49972168b..ef30e640327f3c101915ab0d177d55d5373d7ce1 100644 (file)
@@ -67,11 +67,11 @@ static struct flash_platform_data tl_wa901nd_flash_data = {
 
 static struct gpio_led tl_wa901nd_leds_gpio[] __initdata = {
        {
-               .name           = "tl-wa901nd:green:system",
+               .name           = "tp-link:green:system",
                .gpio           = TL_WA901ND_GPIO_LED_SYSTEM,
                .active_low     = 1,
        }, {
-               .name           = "tl-wa901nd:green:qss",
+               .name           = "tp-link:green:qss",
                .gpio           = TL_WA901ND_GPIO_LED_QSS,
                .active_low     = 1,
        }
index 77262d73945a13b2d84586d8e0978495b200d776..91aee70c3ac6d6cc41aa2740adbf2e9ad54035d6 100644 (file)
@@ -73,19 +73,19 @@ static struct flash_platform_data tl_wr1043nd_flash_data = {
 
 static struct gpio_led tl_wr1043nd_leds_gpio[] __initdata = {
        {
-               .name           = "tl-wr1043nd:green:usb",
+               .name           = "tp-link:green:usb",
                .gpio           = TL_WR1043ND_GPIO_LED_USB,
                .active_low     = 1,
        }, {
-               .name           = "tl-wr1043nd:green:system",
+               .name           = "tp-link:green:system",
                .gpio           = TL_WR1043ND_GPIO_LED_SYSTEM,
                .active_low     = 1,
        }, {
-               .name           = "tl-wr1043nd:green:qss",
+               .name           = "tp-link:green:qss",
                .gpio           = TL_WR1043ND_GPIO_LED_QSS,
                .active_low     = 0,
        }, {
-               .name           = "tl-wr1043nd:green:wlan",
+               .name           = "tp-link:green:wlan",
                .gpio           = TL_WR1043ND_GPIO_LED_WLAN,
                .active_low     = 1,
        }
index 772af3dcc353c11261946a435277d756e94ddab7..656e7493a33d4ef07a508121495696c88060fa02 100644 (file)
@@ -71,7 +71,7 @@ static struct flash_platform_data tl_wr703n_flash_data = {
 
 static struct gpio_led tl_wr703n_leds_gpio[] __initdata = {
        {
-               .name           = "tl-wr703n:blue:system",
+               .name           = "tp-link:blue:system",
                .gpio           = TL_WR703N_GPIO_LED_SYSTEM,
                .active_low     = 1,
        },
index 4732ab9cd8d5ed8aa9079cafb72744e46e5b2118..76db88d644d03df06b54e453d67df2e6d6301d69 100644 (file)
@@ -66,11 +66,11 @@ static struct flash_platform_data tl_wr741nd_flash_data = {
 
 static struct gpio_led tl_wr741nd_leds_gpio[] __initdata = {
        {
-               .name           = "tl-wr741nd:green:system",
+               .name           = "tp-link:green:system",
                .gpio           = TL_WR741ND_GPIO_LED_SYSTEM,
                .active_low     = 1,
        }, {
-               .name           = "tl-wr741nd:green:qss",
+               .name           = "tp-link:green:qss",
                .gpio           = TL_WR741ND_GPIO_LED_QSS,
                .active_low     = 1,
        }
index b523b274fd892c87feb6792fa35523b93de5cf63..e34a8fcc6c16211c86803df0a8ebd96e978a2ffd 100644 (file)
@@ -69,14 +69,14 @@ static struct flash_platform_data tl_wr841n_v1_flash_data = {
 
 static struct gpio_led tl_wr841n_v1_leds_gpio[] __initdata = {
        {
-               .name           = "tl-wr841n:green:system",
+               .name           = "tp-link:green:system",
                .gpio           = TL_WR841ND_V1_GPIO_LED_SYSTEM,
                .active_low     = 1,
        }, {
-               .name           = "tl-wr841n:red:qss",
+               .name           = "tp-link:red:qss",
                .gpio           = TL_WR841ND_V1_GPIO_LED_QSS_RED,
        }, {
-               .name           = "tl-wr841n:green:qss",
+               .name           = "tp-link:green:qss",
                .gpio           = TL_WR841ND_V1_GPIO_LED_QSS_GREEN,
        }
 };
index 04173ea2691f5ef8c55b9253a47e90d4b1ecc4c2..8ca611de6384e18499c70365bc17e9934e2cff2d 100644 (file)
@@ -69,17 +69,17 @@ static struct flash_platform_data tl_wr941nd_flash_data = {
 
 static struct gpio_led tl_wr941nd_leds_gpio[] __initdata = {
        {
-               .name           = "tl-wr941nd:green:system",
+               .name           = "tp-link:green:system",
                .gpio           = TL_WR941ND_GPIO_LED_SYSTEM,
                .active_low     = 1,
        }, {
-               .name           = "tl-wr941nd:red:qss",
+               .name           = "tp-link:red:qss",
                .gpio           = TL_WR941ND_GPIO_LED_QSS_RED,
        }, {
-               .name           = "tl-wr941nd:green:qss",
+               .name           = "tp-link:green:qss",
                .gpio           = TL_WR941ND_GPIO_LED_QSS_GREEN,
        }, {
-               .name           = "tl-wr941nd:green:wlan",
+               .name           = "tp-link:green:wlan",
                .gpio           = TL_WR941ND_GPIO_LED_WLAN,
                .active_low     = 1,
        }