1 From: Mirko Parthey <mirko.parthey@web.de>
2 Subject: [PATCH] MIPS: bcm47xx: Fix button inversion for Asus WL-500W
4 The Asus WL-500W buttons are active high,
5 but the software treats them as active low.
6 Fix the inverted logic.
8 Signed-off-by: Mirko Parthey <mirko.parthey@web.de>
10 arch/mips/bcm47xx/buttons.c | 10 ++++++++--
11 1 file changed, 8 insertions(+), 2 deletions(-)
13 --- a/arch/mips/bcm47xx/buttons.c
14 +++ b/arch/mips/bcm47xx/buttons.c
19 +#define BCM47XX_GPIO_KEY_H(_gpio, _code) \
27 static const struct gpio_keys_button
28 @@ -79,8 +85,8 @@ bcm47xx_buttons_asus_wl500gpv2[] __initc
30 static const struct gpio_keys_button
31 bcm47xx_buttons_asus_wl500w[] __initconst = {
32 - BCM47XX_GPIO_KEY(6, KEY_RESTART),
33 - BCM47XX_GPIO_KEY(7, KEY_WPS_BUTTON),
34 + BCM47XX_GPIO_KEY_H(6, KEY_RESTART),
35 + BCM47XX_GPIO_KEY_H(7, KEY_WPS_BUTTON),
38 static const struct gpio_keys_button