projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44a374c
)
MIPS: BCM47XX: Fix LED inversion for WRT54GSv1
author
Mirko Parthey
<mirko.parthey@web.de>
Thu, 18 May 2017 19:30:03 +0000
(21:30 +0200)
committer
James Hogan
<jhogan@kernel.org>
Tue, 7 Nov 2017 22:40:31 +0000
(22:40 +0000)
The WLAN LED on the Linksys WRT54GSv1 is active low, but the software
treats it as active high. Fix the inverted logic.
Fixes: 7bb26b169116 ("MIPS: BCM47xx: Fix LEDs on WRT54GS V1.0")
Signed-off-by: Mirko Parthey <mirko.parthey@web.de>
Looks-ok-by: Rafał Miłecki <zajec5@gmail.com>
Cc: Hauke Mehrtens <hauke@hauke-m.de>
Cc: linux-mips@linux-mips.org
Cc: <stable@vger.kernel.org> # 3.17+
Patchwork: https://patchwork.linux-mips.org/patch/16071/
Signed-off-by: James Hogan <jhogan@kernel.org>
arch/mips/bcm47xx/leds.c
patch
|
blob
|
history
diff --git
a/arch/mips/bcm47xx/leds.c
b/arch/mips/bcm47xx/leds.c
index a35f1d5cde9fd175fbb2f42039edd5094cc06062..08ad23c492e7d0a83a2cf7d490b68eca861bfcf8 100644
(file)
--- a/
arch/mips/bcm47xx/leds.c
+++ b/
arch/mips/bcm47xx/leds.c
@@
-330,7
+330,7
@@
bcm47xx_leds_linksys_wrt54g3gv2[] __initconst = {
/* Verified on: WRT54GS V1.0 */
static const struct gpio_led
bcm47xx_leds_linksys_wrt54g_type_0101[] __initconst = {
- BCM47XX_GPIO_LED(0, "green", "wlan",
0
, LEDS_GPIO_DEFSTATE_OFF),
+ BCM47XX_GPIO_LED(0, "green", "wlan",
1
, LEDS_GPIO_DEFSTATE_OFF),
BCM47XX_GPIO_LED(1, "green", "power", 0, LEDS_GPIO_DEFSTATE_ON),
BCM47XX_GPIO_LED(7, "green", "dmz", 1, LEDS_GPIO_DEFSTATE_OFF),
};