ar71xx: use netgear prefix for WNDR3700 LED names

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38098
This commit is contained in:
Gabor Juhos 2013-09-21 15:55:50 +00:00
parent d381cd170d
commit e33ccdc295
5 changed files with 13 additions and 9 deletions

View File

@ -171,7 +171,7 @@ get_status_led() {
status_led="wndap360:green:power" status_led="wndap360:green:power"
;; ;;
wndr3700) wndr3700)
status_led="wndr3700:green:power" status_led="netgear:green:power"
;; ;;
wndr4300) wndr4300)
status_led="netgear:green:power" status_led="netgear:green:power"

View File

@ -229,8 +229,8 @@ wndap360)
;; ;;
wndr3700) wndr3700)
ucidef_set_led_default "wan" "WAN LED (green)" "wndr3700:green:wan" "0" ucidef_set_led_default "wan" "WAN LED (green)" "netgear:green:wan" "0"
ucidef_set_led_usbdev "usb" "USB" "wndr3700:green:usb" "1-1" ucidef_set_led_usbdev "usb" "USB" "netgear:green:usb" "1-1"
;; ;;
wndr4300) wndr4300)

View File

@ -46,6 +46,10 @@ migrate_leds()
board=$(ar71xx_board_name) board=$(ar71xx_board_name)
case "$board" in case "$board" in
wndr3700)
migrate_leds "wndr3700:=netgear:"
;;
*) *)
;; ;;
esac esac

View File

@ -51,23 +51,23 @@
static struct gpio_led wndr3700_leds_gpio[] __initdata = { static struct gpio_led wndr3700_leds_gpio[] __initdata = {
{ {
.name = "wndr3700:green:power", .name = "netgear:green:power",
.gpio = WNDR3700_GPIO_LED_POWER_GREEN, .gpio = WNDR3700_GPIO_LED_POWER_GREEN,
.active_low = 1, .active_low = 1,
}, { }, {
.name = "wndr3700:orange:power", .name = "netgear:orange:power",
.gpio = WNDR3700_GPIO_LED_POWER_ORANGE, .gpio = WNDR3700_GPIO_LED_POWER_ORANGE,
.active_low = 1, .active_low = 1,
}, { }, {
.name = "wndr3700:green:wps", .name = "netgear:green:wps",
.gpio = WNDR3700_GPIO_LED_WPS_GREEN, .gpio = WNDR3700_GPIO_LED_WPS_GREEN,
.active_low = 1, .active_low = 1,
}, { }, {
.name = "wndr3700:orange:wps", .name = "netgear:orange:wps",
.gpio = WNDR3700_GPIO_LED_WPS_ORANGE, .gpio = WNDR3700_GPIO_LED_WPS_ORANGE,
.active_low = 1, .active_low = 1,
}, { }, {
.name = "wndr3700:green:wan", .name = "netgear:green:wan",
.gpio = WNDR3700_GPIO_LED_WAN_GREEN, .gpio = WNDR3700_GPIO_LED_WAN_GREEN,
.active_low = 1, .active_low = 1,
} }

View File

@ -32,7 +32,7 @@ static enum led_brightness wndr3700_usb_led_get(struct led_classdev *cdev)
} }
static struct led_classdev wndr3700_usb_led = { static struct led_classdev wndr3700_usb_led = {
.name = "wndr3700:green:usb", .name = "netgear:green:usb",
.brightness_set = wndr3700_usb_led_set, .brightness_set = wndr3700_usb_led_set,
.brightness_get = wndr3700_usb_led_get, .brightness_get = wndr3700_usb_led_get,
}; };