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

target/linux/ar71xx/base-files/etc/diag.sh
target/linux/ar71xx/base-files/etc/uci-defaults/mzk-w04nu
target/linux/ar71xx/files/arch/mips/ar71xx/mach-mzk-w04nu.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-mzk-w300nh.c

index a608f4e063996b5323a4d11d3e659dbf9db31544..d7673dedf12a6edad92ceacdd73b904012e48f19 100755 (executable)
@@ -63,11 +63,9 @@ get_status_led() {
        ls-sr71)
                status_led="ubnt:green:d22"
                ;;
-       mzk-w04nu)
-               status_led="mzk-w04nu:green:status"
-               ;;
+       mzk-w04nu | \
        mzk-w300nh)
-               status_led="mzk-w300nh:green:status"
+               status_led="planex:green:status"
                ;;
        nbg460n_550n_550nh)
                status_led="nbg460n:green:power"
index 1be41499729696a271dc95bd98922647079c253b..db3bcba552ae1c3e23b606fe795addac020449f6 100755 (executable)
@@ -11,7 +11,7 @@ mzk_w04nu_setup_leds() {
        uci batch <<EOF
 set system.usb_led=led
 set system.usb_led.name='USB'
-set system.usb_led.sysfs='mzk-w04nu:green:usb'
+set system.usb_led.sysfs='planex:green:usb'
 set system.usb_led.trigger='usbdev'
 set system.usb_led.dev='1-1'
 set system.usb_led.interval='50'
index 54dbe35fc8038809c00d5723857f0b7c1c046cd5..4954d396aba85b1916f51330970b12e6802a0445 100644 (file)
@@ -76,27 +76,27 @@ static struct flash_platform_data mzk_w04nu_flash_data = {
 
 static struct gpio_led mzk_w04nu_leds_gpio[] __initdata = {
        {
-               .name           = "mzk-w04nu:green:status",
+               .name           = "planex:green:status",
                .gpio           = MZK_W04NU_GPIO_LED_STATUS,
                .active_low     = 1,
        }, {
-               .name           = "mzk-w04nu:blue:wps",
+               .name           = "planex:blue:wps",
                .gpio           = MZK_W04NU_GPIO_LED_WPS,
                .active_low     = 1,
        }, {
-               .name           = "mzk-w04nu:green:wlan",
+               .name           = "planex:green:wlan",
                .gpio           = MZK_W04NU_GPIO_LED_WLAN,
                .active_low     = 1,
        }, {
-               .name           = "mzk-w04nu:green:usb",
+               .name           = "planex:green:usb",
                .gpio           = MZK_W04NU_GPIO_LED_USB,
                .active_low     = 1,
        }, {
-               .name           = "mzk-w04nu:green:ap",
+               .name           = "planex:green:ap",
                .gpio           = MZK_W04NU_GPIO_LED_AP,
                .active_low     = 1,
        }, {
-               .name           = "mzk-w04nu:green:router",
+               .name           = "planex:green:router",
                .gpio           = MZK_W04NU_GPIO_LED_ROUTER,
                .active_low     = 1,
        }
index 27f1738cf3fa897f2cdd6dfe198032fc28f506f8..c3f2c5330c6db6d5794b3a5cb2897251d3be4e45 100644 (file)
@@ -75,23 +75,23 @@ static struct flash_platform_data mzk_w300nh_flash_data = {
 
 static struct gpio_led mzk_w300nh_leds_gpio[] __initdata = {
        {
-               .name           = "mzk-w300nh:green:status",
+               .name           = "planex:green:status",
                .gpio           = MZK_W300NH_GPIO_LED_STATUS,
                .active_low     = 1,
        }, {
-               .name           = "mzk-w300nh:blue:wps",
+               .name           = "planex:blue:wps",
                .gpio           = MZK_W300NH_GPIO_LED_WPS,
                .active_low     = 1,
        }, {
-               .name           = "mzk-w300nh:green:wlan",
+               .name           = "planex:green:wlan",
                .gpio           = MZK_W300NH_GPIO_LED_WLAN,
                .active_low     = 1,
        }, {
-               .name           = "mzk-w300nh:green:ap",
+               .name           = "planex:green:ap",
                .gpio           = MZK_W300NH_GPIO_LED_AP,
                .active_low     = 1,
        }, {
-               .name           = "mzk-w300nh:green:router",
+               .name           = "planex:green:router",
                .gpio           = MZK_W300NH_GPIO_LED_ROUTER,
                .active_low     = 1,
        }