diff options
author | 2019-07-25 21:06:03 +0200 | |
---|---|---|
committer | 2019-07-29 18:24:59 +0300 | |
commit | f14312a93b34b9350dc33ff0b4215c24f4c82617 (patch) | |
tree | d789140387b5d899ef1f4f2b086f431221ec6da4 /drivers/platform | |
parent | platform/x86: intel_pmc_core: Add ICL-NNPI support to PMC Core (diff) | |
download | linux-f14312a93b34b9350dc33ff0b4215c24f4c82617.tar.gz linux-f14312a93b34b9350dc33ff0b4215c24f4c82617.tar.bz2 linux-f14312a93b34b9350dc33ff0b4215c24f4c82617.zip |
platform/x86: pcengines-apuv2: use KEY_RESTART for front button
The keycode KEY_RESTART is more appropriate for the front button,
as most people use it for things like restart or factory reset.
Signed-off-by: Enrico Weigelt <info@metux.net>
Fixes: f8eb0235f659 ("x86: pcengines apuv2 gpio/leds/keys platform driver")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/pcengines-apuv2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/pcengines-apuv2.c b/drivers/platform/x86/pcengines-apuv2.c index 96b499c6929a..e4c68efac0c2 100644 --- a/drivers/platform/x86/pcengines-apuv2.c +++ b/drivers/platform/x86/pcengines-apuv2.c @@ -93,7 +93,7 @@ static struct gpiod_lookup_table gpios_led_table = { static struct gpio_keys_button apu2_keys_buttons[] = { { - .code = KEY_SETUP, + .code = KEY_RESTART, .active_low = 1, .desc = "front button", .type = EV_KEY, |