mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-25 06:14:37 +02:00
ar71xx: unify LED names on Planex boards
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28703 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
54e69d54d6
commit
0fe49305de
@ -63,11 +63,9 @@ get_status_led() {
|
|||||||
ls-sr71)
|
ls-sr71)
|
||||||
status_led="ubnt:green:d22"
|
status_led="ubnt:green:d22"
|
||||||
;;
|
;;
|
||||||
mzk-w04nu)
|
mzk-w04nu | \
|
||||||
status_led="mzk-w04nu:green:status"
|
|
||||||
;;
|
|
||||||
mzk-w300nh)
|
mzk-w300nh)
|
||||||
status_led="mzk-w300nh:green:status"
|
status_led="planex:green:status"
|
||||||
;;
|
;;
|
||||||
nbg460n_550n_550nh)
|
nbg460n_550n_550nh)
|
||||||
status_led="nbg460n:green:power"
|
status_led="nbg460n:green:power"
|
||||||
|
@ -11,7 +11,7 @@ mzk_w04nu_setup_leds() {
|
|||||||
uci batch <<EOF
|
uci batch <<EOF
|
||||||
set system.usb_led=led
|
set system.usb_led=led
|
||||||
set system.usb_led.name='USB'
|
set system.usb_led.name='USB'
|
||||||
set system.usb_led.sysfs='mzk-w04nu:green:usb'
|
set system.usb_led.sysfs='planex:green:usb'
|
||||||
set system.usb_led.trigger='usbdev'
|
set system.usb_led.trigger='usbdev'
|
||||||
set system.usb_led.dev='1-1'
|
set system.usb_led.dev='1-1'
|
||||||
set system.usb_led.interval='50'
|
set system.usb_led.interval='50'
|
||||||
|
@ -76,27 +76,27 @@ static struct flash_platform_data mzk_w04nu_flash_data = {
|
|||||||
|
|
||||||
static struct gpio_led mzk_w04nu_leds_gpio[] __initdata = {
|
static struct gpio_led mzk_w04nu_leds_gpio[] __initdata = {
|
||||||
{
|
{
|
||||||
.name = "mzk-w04nu:green:status",
|
.name = "planex:green:status",
|
||||||
.gpio = MZK_W04NU_GPIO_LED_STATUS,
|
.gpio = MZK_W04NU_GPIO_LED_STATUS,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "mzk-w04nu:blue:wps",
|
.name = "planex:blue:wps",
|
||||||
.gpio = MZK_W04NU_GPIO_LED_WPS,
|
.gpio = MZK_W04NU_GPIO_LED_WPS,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "mzk-w04nu:green:wlan",
|
.name = "planex:green:wlan",
|
||||||
.gpio = MZK_W04NU_GPIO_LED_WLAN,
|
.gpio = MZK_W04NU_GPIO_LED_WLAN,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "mzk-w04nu:green:usb",
|
.name = "planex:green:usb",
|
||||||
.gpio = MZK_W04NU_GPIO_LED_USB,
|
.gpio = MZK_W04NU_GPIO_LED_USB,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "mzk-w04nu:green:ap",
|
.name = "planex:green:ap",
|
||||||
.gpio = MZK_W04NU_GPIO_LED_AP,
|
.gpio = MZK_W04NU_GPIO_LED_AP,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "mzk-w04nu:green:router",
|
.name = "planex:green:router",
|
||||||
.gpio = MZK_W04NU_GPIO_LED_ROUTER,
|
.gpio = MZK_W04NU_GPIO_LED_ROUTER,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}
|
}
|
||||||
|
@ -75,23 +75,23 @@ static struct flash_platform_data mzk_w300nh_flash_data = {
|
|||||||
|
|
||||||
static struct gpio_led mzk_w300nh_leds_gpio[] __initdata = {
|
static struct gpio_led mzk_w300nh_leds_gpio[] __initdata = {
|
||||||
{
|
{
|
||||||
.name = "mzk-w300nh:green:status",
|
.name = "planex:green:status",
|
||||||
.gpio = MZK_W300NH_GPIO_LED_STATUS,
|
.gpio = MZK_W300NH_GPIO_LED_STATUS,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "mzk-w300nh:blue:wps",
|
.name = "planex:blue:wps",
|
||||||
.gpio = MZK_W300NH_GPIO_LED_WPS,
|
.gpio = MZK_W300NH_GPIO_LED_WPS,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "mzk-w300nh:green:wlan",
|
.name = "planex:green:wlan",
|
||||||
.gpio = MZK_W300NH_GPIO_LED_WLAN,
|
.gpio = MZK_W300NH_GPIO_LED_WLAN,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "mzk-w300nh:green:ap",
|
.name = "planex:green:ap",
|
||||||
.gpio = MZK_W300NH_GPIO_LED_AP,
|
.gpio = MZK_W300NH_GPIO_LED_AP,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}, {
|
}, {
|
||||||
.name = "mzk-w300nh:green:router",
|
.name = "planex:green:router",
|
||||||
.gpio = MZK_W300NH_GPIO_LED_ROUTER,
|
.gpio = MZK_W300NH_GPIO_LED_ROUTER,
|
||||||
.active_low = 1,
|
.active_low = 1,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user