Skip to content

Commit

Permalink
platform/x86: pcengines-apuv2: use KEY_RESTART for front button
Browse files Browse the repository at this point in the history
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 <[email protected]>
Fixes: f8eb023 ("x86: pcengines apuv2 gpio/leds/keys platform driver")
Signed-off-by: Andy Shevchenko <[email protected]>
  • Loading branch information
metux authored and andy-shev committed Jul 29, 2019
1 parent 66013e8 commit f14312a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/platform/x86/pcengines-apuv2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f14312a

Please sign in to comment.