diff options
Diffstat (limited to 'arch/mips/bcm47xx/leds.c')
-rw-r--r-- | arch/mips/bcm47xx/leds.c | 53 |
1 files changed, 9 insertions, 44 deletions
diff --git a/arch/mips/bcm47xx/leds.c b/arch/mips/bcm47xx/leds.c index 28d281cc2e7d..647d15527066 100644 --- a/arch/mips/bcm47xx/leds.c +++ b/arch/mips/bcm47xx/leds.c | |||
@@ -342,49 +342,14 @@ bcm47xx_leds_netgear_wndr3400v1[] __initconst = { | |||
342 | }; | 342 | }; |
343 | 343 | ||
344 | static const struct gpio_led | 344 | static const struct gpio_led |
345 | bcm47xx_leds_netgear_wndr4500_v1_leds[] __initconst = { | 345 | bcm47xx_leds_netgear_wndr4500v1[] __initconst = { |
346 | { | 346 | BCM47XX_GPIO_LED(1, "green", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), |
347 | .name = "bcm47xx:green:wps", | 347 | BCM47XX_GPIO_LED(2, "green", "power", 1, LEDS_GPIO_DEFSTATE_ON), |
348 | .gpio = 1, | 348 | BCM47XX_GPIO_LED(3, "amber", "power", 1, LEDS_GPIO_DEFSTATE_OFF), |
349 | .active_low = 1, | 349 | BCM47XX_GPIO_LED(8, "green", "usb1", 1, LEDS_GPIO_DEFSTATE_OFF), |
350 | .default_state = LEDS_GPIO_DEFSTATE_KEEP, | 350 | BCM47XX_GPIO_LED(9, "green", "2ghz", 1, LEDS_GPIO_DEFSTATE_OFF), |
351 | }, | 351 | BCM47XX_GPIO_LED(11, "blue", "5ghz", 1, LEDS_GPIO_DEFSTATE_OFF), |
352 | { | 352 | BCM47XX_GPIO_LED(14, "green", "usb2", 1, LEDS_GPIO_DEFSTATE_OFF), |
353 | .name = "bcm47xx:green:power", | ||
354 | .gpio = 2, | ||
355 | .active_low = 1, | ||
356 | .default_state = LEDS_GPIO_DEFSTATE_KEEP, | ||
357 | }, | ||
358 | { | ||
359 | .name = "bcm47xx:orange:power", | ||
360 | .gpio = 3, | ||
361 | .active_low = 1, | ||
362 | .default_state = LEDS_GPIO_DEFSTATE_KEEP, | ||
363 | }, | ||
364 | { | ||
365 | .name = "bcm47xx:green:usb1", | ||
366 | .gpio = 8, | ||
367 | .active_low = 1, | ||
368 | .default_state = LEDS_GPIO_DEFSTATE_KEEP, | ||
369 | }, | ||
370 | { | ||
371 | .name = "bcm47xx:green:2ghz", | ||
372 | .gpio = 9, | ||
373 | .active_low = 1, | ||
374 | .default_state = LEDS_GPIO_DEFSTATE_KEEP, | ||
375 | }, | ||
376 | { | ||
377 | .name = "bcm47xx:blue:5ghz", | ||
378 | .gpio = 11, | ||
379 | .active_low = 1, | ||
380 | .default_state = LEDS_GPIO_DEFSTATE_KEEP, | ||
381 | }, | ||
382 | { | ||
383 | .name = "bcm47xx:green:usb2", | ||
384 | .gpio = 14, | ||
385 | .active_low = 1, | ||
386 | .default_state = LEDS_GPIO_DEFSTATE_KEEP, | ||
387 | }, | ||
388 | }; | 353 | }; |
389 | 354 | ||
390 | static const struct gpio_led | 355 | static const struct gpio_led |
@@ -558,7 +523,7 @@ void __init bcm47xx_leds_register(void) | |||
558 | bcm47xx_set_pdata(bcm47xx_leds_netgear_wndr3400v1); | 523 | bcm47xx_set_pdata(bcm47xx_leds_netgear_wndr3400v1); |
559 | break; | 524 | break; |
560 | case BCM47XX_BOARD_NETGEAR_WNDR4500V1: | 525 | case BCM47XX_BOARD_NETGEAR_WNDR4500V1: |
561 | bcm47xx_set_pdata(bcm47xx_leds_netgear_wndr4500_v1_leds); | 526 | bcm47xx_set_pdata(bcm47xx_leds_netgear_wndr4500v1); |
562 | break; | 527 | break; |
563 | case BCM47XX_BOARD_NETGEAR_WNR834BV2: | 528 | case BCM47XX_BOARD_NETGEAR_WNR834BV2: |
564 | bcm47xx_set_pdata(bcm47xx_leds_netgear_wnr834bv2); | 529 | bcm47xx_set_pdata(bcm47xx_leds_netgear_wnr834bv2); |