diff options
author | Daniel F. Dickinson <cshored@thecshore.com> | 2018-07-20 21:01:23 -0400 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2018-07-30 10:43:32 +0200 |
commit | ffc71cd2d07148e5fa4257b31402e7756aaab238 (patch) | |
tree | bee2cc95314d0d41ffd8b6510568c27c2b09b0f9 /target/linux | |
parent | a208e0779084e17e981a93927ca44ac36ff07db7 (diff) | |
download | upstream-ffc71cd2d07148e5fa4257b31402e7756aaab238.tar.gz upstream-ffc71cd2d07148e5fa4257b31402e7756aaab238.tar.bz2 upstream-ffc71cd2d07148e5fa4257b31402e7756aaab238.zip |
ar71xx: cr5000: Fix the reset button as KEY_RESTART
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>
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ath79/mach-cr5000.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-cr5000.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-cr5000.c index 15cac71047..f3f030c1d8 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-cr5000.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-cr5000.c @@ -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, |