ar71xx: use netgear prefix for WNDAP360 LED names
authorGabor Juhos <juhosg@openwrt.org>
Sat, 21 Sep 2013 15:55:55 +0000 (15:55 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sat, 21 Sep 2013 15:55:55 +0000 (15:55 +0000)
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38102

target/linux/ar71xx/base-files/etc/diag.sh
target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
target/linux/ar71xx/base-files/etc/uci-defaults/04_led_migration
target/linux/ar71xx/files/arch/mips/ath79/mach-wndap360.c

index 14f8c9816a14f14d36554d1c7b214aa1777fb9d7..b609ac20c789a6fd8734758de79e5d6dfe90fe9f 100755 (executable)
@@ -168,7 +168,7 @@ get_status_led() {
                status_led="buffalo:red:diag"
                ;;
        wndap360)
-               status_led="wndap360:green:power"
+               status_led="netgear:green:power"
                ;;
        wndr3700)
                status_led="netgear:green:power"
index 691f6992ace78d7d30a6353a6c5cbcf981b7e1e5..a8bd8622d100a6dee6140ec657d40ed9205ace5b 100755 (executable)
@@ -225,7 +225,7 @@ wrt160nl)
        ;;
 
 wndap360)
-        ucidef_set_led_power "power" "POWER GREEN" "wndap360:green:power" "1"
+        ucidef_set_led_power "power" "POWER GREEN" "netgear:green:power" "1"
         ;;
 
 wndr3700)
index 9806aefeaf28d5a03562390bd37f87deac1b5874..0ecf4be1318adfea49a5ed4095c51f7fafcb89c3 100755 (executable)
@@ -46,6 +46,10 @@ migrate_leds()
 board=$(ar71xx_board_name)
 
 case "$board" in
+wndap360)
+       migrate_leds "wndap360:=netgear:"
+       ;;
+
 wndr3700)
        migrate_leds "wndr3700:=netgear:"
        ;;
index 5b4b7b066cabeda0eff2fef0dfbf537baa4133b1..80b0cf36bebfea9f0606ec5f8ac08b19a4e190a2 100644 (file)
  */
 static struct gpio_led wndap360_leds_gpio[] __initdata = {
        {
-               .name           = "wndap360:green:power",
+               .name           = "netgear:green:power",
                .gpio           = WNDAP360_GPIO_LED_POWER_GREEN,
                .active_low     = 1,
        }, {
-               .name           = "wndap360:orange:power",
+               .name           = "netgear:orange:power",
                .gpio           = WNDAP360_GPIO_LED_POWER_ORANGE,
                .active_low     = 1,
         }