Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e3b1ceed authored by Vasily Khoruzhick's avatar Vasily Khoruzhick Committed by Marek Vasut
Browse files

ARM: PXA: Z2: Use switch event for lid



Otherwise userspace might be confused.

Signed-off-by: default avatarVasily Khoruzhick <anarsoul@gmail.com>
Acked-by: default avatarMarek Vasut <marek.vasut@gmail.com>
parent 54d57100
Loading
Loading
Loading
Loading
+5 −5
Original line number Original line Diff line number Diff line
@@ -436,12 +436,12 @@ static struct gpio_keys_button z2_pxa_buttons[] = {
		.type		= EV_KEY,
		.type		= EV_KEY,
	},
	},
	{
	{
		.code		= KEY_CLOSE,
		.code		= SW_LID,
		.gpio		= GPIO98_ZIPITZ2_LID_BUTTON,
		.gpio		= GPIO98_ZIPITZ2_LID_BUTTON,
		.active_low	= 0,
		.active_low	= 1,
		.desc		= "Lid Button",
		.desc		= "Lid Switch",
		.wakeup		= 0
		.wakeup		= 0,
		.type		= EV_KEY,
		.type		= EV_SW,
	},
	},
};
};