ar71xx: cr5000: Fix the reset button as KEY_RESTART
authorDaniel F. Dickinson <cshored@thecshore.com>
Sat, 21 Jul 2018 01:01:23 +0000 (21:01 -0400)
committerJohn Crispin <john@phrozen.org>
Mon, 30 Jul 2018 08:43:32 +0000 (10:43 +0200)
The reset button was incorrectly returning KEY_WPS_BUTTON as the key
code.  We want KEY_RESTART., so make that fix.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
target/linux/ar71xx/files/arch/mips/ath79/mach-cr5000.c

index 15cac710477ddae4657bd3d2595745cb2ef012bd..f3f030c1d8b11dc0d058dfd6fed2163a00401e26 100644 (file)
@@ -90,7 +90,7 @@ static struct gpio_keys_button cr5000_gpio_keys[] __initdata = {
        {
                .desc           = "Reset button",
                .type           = EV_KEY,
-               .code           = KEY_WPS_BUTTON,
+               .code           = KEY_RESTART,
                .debounce_interval = CR5000_KEYS_DEBOUNCE_INTERVAL,
                .gpio           = CR5000_GPIO_BTN_RESET,
                .active_low     = 1,