projects
/
wrapfs-2.6.38.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5040ec
)
MIPS: BCM47XX: Fix button inversion for Asus WL-500W
author
Mirko Parthey
<mirko.parthey@web.de>
Wed, 15 Feb 2017 22:31:30 +0000
(23:31 +0100)
committer
Ben Hutchings
<ben@decadent.org.uk>
Mon, 5 Jun 2017 20:17:10 +0000
(21:17 +0100)
commit
bdfdaf1a016ef09cb941f2edad485a713510b8d5
upstream.
The Asus WL-500W buttons are active high, but the software treats them
as active low. Fix the inverted logic.
Fixes: 3be972556fa1 ("MIPS: BCM47XX: Import buttons database from OpenWrt")
Signed-off-by: Mirko Parthey <mirko.parthey@web.de>
Acked-by: Rafał Miłecki <rafal@milecki.pl>
Cc: Hauke Mehrtens <hauke@hauke-m.de>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/15295/
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/mips/bcm47xx/buttons.c
patch
|
blob
|
history
diff --git
a/arch/mips/bcm47xx/buttons.c
b/arch/mips/bcm47xx/buttons.c
index 49a1ce06844ba7a68e864ba61ab39c6ffe0434ac..64124e3e54b5a6d39337fe1b666404bbd0a2713d 100644
(file)
--- a/
arch/mips/bcm47xx/buttons.c
+++ b/
arch/mips/bcm47xx/buttons.c
@@
-17,6
+17,12
@@
.active_low = 1, \
}
+#define BCM47XX_GPIO_KEY_H(_gpio, _code) \
+ { \
+ .code = _code, \
+ .gpio = _gpio, \
+ }
+
/* Asus */
static const struct gpio_keys_button
@@
-74,8
+80,8
@@
bcm47xx_buttons_asus_wl500gpv2[] __initconst = {
static const struct gpio_keys_button
bcm47xx_buttons_asus_wl500w[] __initconst = {
- BCM47XX_GPIO_KEY(6, KEY_RESTART),
- BCM47XX_GPIO_KEY(7, KEY_WPS_BUTTON),
+ BCM47XX_GPIO_KEY
_H
(6, KEY_RESTART),
+ BCM47XX_GPIO_KEY
_H
(7, KEY_WPS_BUTTON),
};
static const struct gpio_keys_button