summaryrefslogtreecommitdiff
path: root/drivers/platform/x86/pcengines-apuv2.c
diff options
context:
space:
mode:
authorEnrico Weigelt <info@metux.net>2019-07-25 22:06:03 +0300
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2019-07-29 18:24:59 +0300
commitf14312a93b34b9350dc33ff0b4215c24f4c82617 (patch)
treed789140387b5d899ef1f4f2b086f431221ec6da4 /drivers/platform/x86/pcengines-apuv2.c
parent66013e8ec6850f9c62df6aea555fe7668e84dc3c (diff)
downloadlinux-f14312a93b34b9350dc33ff0b4215c24f4c82617.tar.xz
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/x86/pcengines-apuv2.c')
-rw-r--r--drivers/platform/x86/pcengines-apuv2.c2
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,