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

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-wndr3700.c
target/linux/ar71xx/files/drivers/leds/leds-wndr3700-usb.c

index 2719a1340abd508816f0c9bbbb03f6c33418afe0..c76084d1cd8c621fb6fa0f46f9f09a68e8804580 100755 (executable)
@@ -171,7 +171,7 @@ get_status_led() {
                status_led="wndap360:green:power"
                ;;
        wndr3700)
-               status_led="wndr3700:green:power"
+               status_led="netgear:green:power"
                ;;
        wndr4300)
                status_led="netgear:green:power"
index 845de4e7883b984ece5ac4a781195285668e1fa5..691f6992ace78d7d30a6353a6c5cbcf981b7e1e5 100755 (executable)
@@ -229,8 +229,8 @@ wndap360)
         ;;
 
 wndr3700)
-       ucidef_set_led_default "wan" "WAN LED (green)" "wndr3700:green:wan" "0"
-       ucidef_set_led_usbdev "usb" "USB" "wndr3700:green:usb" "1-1"
+       ucidef_set_led_default "wan" "WAN LED (green)" "netgear:green:wan" "0"
+       ucidef_set_led_usbdev "usb" "USB" "netgear:green:usb" "1-1"
        ;;
 
 wndr4300)
index 3687c2d5b47a59b1abcb605909777170a6b4e21a..b9d0d65b20bea6cda0c569c9df0da50723965ac2 100755 (executable)
@@ -46,6 +46,10 @@ migrate_leds()
 board=$(ar71xx_board_name)
 
 case "$board" in
+wndr3700)
+       migrate_leds "wndr3700:=netgear:"
+       ;;
+
 *)
        ;;
 esac
index fccf1c6633801716e4be5263535c0f7aaa6e5263..1315bab03739ac99185763383b97fdebeadf71b7 100644 (file)
 
 static struct gpio_led wndr3700_leds_gpio[] __initdata = {
        {
-               .name           = "wndr3700:green:power",
+               .name           = "netgear:green:power",
                .gpio           = WNDR3700_GPIO_LED_POWER_GREEN,
                .active_low     = 1,
        }, {
-               .name           = "wndr3700:orange:power",
+               .name           = "netgear:orange:power",
                .gpio           = WNDR3700_GPIO_LED_POWER_ORANGE,
                .active_low     = 1,
        }, {
-               .name           = "wndr3700:green:wps",
+               .name           = "netgear:green:wps",
                .gpio           = WNDR3700_GPIO_LED_WPS_GREEN,
                .active_low     = 1,
        }, {
-               .name           = "wndr3700:orange:wps",
+               .name           = "netgear:orange:wps",
                .gpio           = WNDR3700_GPIO_LED_WPS_ORANGE,
                .active_low     = 1,
        }, {
-               .name           = "wndr3700:green:wan",
+               .name           = "netgear:green:wan",
                .gpio           = WNDR3700_GPIO_LED_WAN_GREEN,
                .active_low     = 1,
        }
index e6565dcdcd98c9467445a68444af4dcbd0cabcb6..6425b055daea3e15c26e3f1368a5b0a29a1582b1 100644 (file)
@@ -32,7 +32,7 @@ static enum led_brightness wndr3700_usb_led_get(struct led_classdev *cdev)
 }
 
 static struct led_classdev wndr3700_usb_led = {
-       .name = "wndr3700:green:usb",
+       .name = "netgear:green:usb",
        .brightness_set = wndr3700_usb_led_set,
        .brightness_get = wndr3700_usb_led_get,
 };