diff options
author | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-09-21 15:55:52 +0000 |
---|---|---|
committer | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-09-21 15:55:52 +0000 |
commit | c385277e32c632d781adab5df7f1800add1edd1a (patch) | |
tree | 47a7e0d7289e79e0f3c11ffeb035a4e5e3a24070 | |
parent | ec73cf27fd7d11407e951a3f9ae4e373793e4b6a (diff) |
ar71xx: use netgear prefix for WNR2200 LED names
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38100 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rwxr-xr-x | target/linux/ar71xx/base-files/etc/diag.sh | 2 | ||||
-rwxr-xr-x | target/linux/ar71xx/base-files/etc/uci-defaults/04_led_migration | 4 | ||||
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c | 26 |
3 files changed, 18 insertions, 14 deletions
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index ff8e7c99fe..fee2f823fa 100755 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -180,7 +180,7 @@ get_status_led() { status_led="netgear:green:power" ;; wnr2200) - status_led="wnr2200:amber:power" + status_led="netgear:amber:power" ;; wnr612-v2) status_led="wnr612v2:green:power" diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/04_led_migration b/target/linux/ar71xx/base-files/etc/uci-defaults/04_led_migration index ee64ca2c58..3b53f6e031 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/04_led_migration +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/04_led_migration @@ -54,6 +54,10 @@ wnr2000) migrate_leds "wnr2000:=netgear:" ;; +wnr2200) + migrate_leds "wnr2200:=netgear:" + ;; + *) ;; esac diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c index 33cc178b3b..bf7f9ee67f 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c @@ -48,55 +48,55 @@ static struct gpio_led wnr2200_leds_gpio[] __initdata = { { - .name = "wnr2200:amber:lan2", + .name = "netgear:amber:lan2", .gpio = WNR2200_GPIO_LED_LAN2_AMBER, .active_low = 1, }, { - .name = "wnr2200:amber:lan4", + .name = "netgear:amber:lan4", .gpio = WNR2200_GPIO_LED_LAN4_AMBER, .active_low = 1, }, { - .name = "wnr2200:green:wps", + .name = "netgear:green:wps", .gpio = WNR2200_GPIO_LED_WPS, .active_low = 1, }, { - .name = "wnr2200:green:wan", + .name = "netgear:green:wan", .gpio = WNR2200_GPIO_LED_WAN_GREEN, .active_low = 1, }, { - .name = "wnr2200:green:usb", + .name = "netgear:green:usb", .gpio = WNR2200_GPIO_LED_USB, .active_low = 1, }, { - .name = "wnr2200:amber:lan3", + .name = "netgear:amber:lan3", .gpio = WNR2200_GPIO_LED_LAN3_AMBER, .active_low = 1, }, { - .name = "wnr2200:amber:wan", + .name = "netgear:amber:wan", .gpio = WNR2200_GPIO_LED_WAN_AMBER, .active_low = 1, }, { - .name = "wnr2200:green:lan1", + .name = "netgear:green:lan1", .gpio = WNR2200_GPIO_LED_LAN1_GREEN, .active_low = 1, }, { - .name = "wnr2200:green:lan2", + .name = "netgear:green:lan2", .gpio = WNR2200_GPIO_LED_LAN2_GREEN, .active_low = 1, }, { - .name = "wnr2200:green:lan3", + .name = "netgear:green:lan3", .gpio = WNR2200_GPIO_LED_LAN3_GREEN, .active_low = 1, }, { - .name = "wnr2200:green:lan4", + .name = "netgear:green:lan4", .gpio = WNR2200_GPIO_LED_LAN4_GREEN, .active_low = 1, }, { - .name = "wnr2200:amber:power", + .name = "netgear:amber:power", .gpio = WNR2200_GPIO_LED_PWR_AMBER, .active_low = 1, }, { - .name = "wnr2200:green:power", + .name = "netgear:green:power", .gpio = WNR2200_GPIO_LED_PWR_GREEN, .active_low = 1, } |