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

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

index c76084d1cd8c621fb6fa0f46f9f09a68e8804580..ff8e7c99fe2d91d1c3e6ca97528b1b6db001b022 100755 (executable)
@@ -177,7 +177,7 @@ get_status_led() {
                status_led="netgear:green:power"
                ;;
        wnr2000)
-               status_led="wnr2000:green:power"
+               status_led="netgear:green:power"
                ;;
        wnr2200)
                status_led="wnr2200:amber:power"
index b9d0d65b20bea6cda0c569c9df0da50723965ac2..ee64ca2c5891ba6b546ef7856f090f54c7b72a0e 100755 (executable)
@@ -50,6 +50,10 @@ wndr3700)
        migrate_leds "wndr3700:=netgear:"
        ;;
 
+wnr2000)
+       migrate_leds "wnr2000:=netgear:"
+       ;;
+
 *)
        ;;
 esac
index bd86db386a15542b3fd3d1a179cae702d704ffcb..b4da7ece323bb0070cde755d7a0e8014d0e31be1 100644 (file)
@@ -77,19 +77,19 @@ static struct flash_platform_data wnr2000_flash_data = {
 
 static struct gpio_led wnr2000_leds_gpio[] __initdata = {
        {
-               .name           = "wnr2000:green:power",
+               .name           = "netgear:green:power",
                .gpio           = WNR2000_GPIO_LED_PWR_GREEN,
                .active_low     = 1,
        }, {
-               .name           = "wnr2000:amber:power",
+               .name           = "netgear:amber:power",
                .gpio           = WNR2000_GPIO_LED_PWR_AMBER,
                .active_low     = 1,
        }, {
-               .name           = "wnr2000:green:wps",
+               .name           = "netgear:green:wps",
                .gpio           = WNR2000_GPIO_LED_WPS,
                .active_low     = 1,
        }, {
-               .name           = "wnr2000:blue:wlan",
+               .name           = "netgear:blue:wlan",
                .gpio           = WNR2000_GPIO_LED_WLAN,
                .active_low     = 1,
        }