Commit 9527cdff authored by Peter Korsgaard's avatar Peter Korsgaard Committed by Hans de Goede
Browse files

platform/x86: barco-p50-gpio: use KEY_VENDOR for button instead of KEY_RESTART



It turns out that systemd-logind by default listens for KEY_RESTART input
events and reboots the machine, which isn't great - So use KEY_VENDOR for
the vendor specific identify button instead to not conflict.

Signed-off-by: default avatarPeter Korsgaard <peter.korsgaard@barco.com>
Link: https://lore.kernel.org/r/20211022124612.19780-1-peter@korsgaard.com


Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
parent c4b9ad6b
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -101,7 +101,7 @@ static struct gpio_led_platform_data leds_pdata = {
/* GPIO keyboard */
/* GPIO keyboard */
static struct gpio_keys_button buttons[] = {
static struct gpio_keys_button buttons[] = {
	{
	{
		.code = KEY_RESTART,
		.code = KEY_VENDOR,
		.gpio = P50_GPIO_LINE_BTN,
		.gpio = P50_GPIO_LINE_BTN,
		.active_low = 1,
		.active_low = 1,
		.type = EV_KEY,
		.type = EV_KEY,