提交 e3b1ceed 编写于 作者: V Vasily Khoruzhick 提交者: Marek Vasut

ARM: PXA: Z2: Use switch event for lid

Otherwise userspace might be confused.
Signed-off-by: NVasily Khoruzhick <anarsoul@gmail.com>
Acked-by: NMarek Vasut <marek.vasut@gmail.com>
上级 54d57100
......@@ -436,12 +436,12 @@ static struct gpio_keys_button z2_pxa_buttons[] = {
.type = EV_KEY,
},
{
.code = KEY_CLOSE,
.code = SW_LID,
.gpio = GPIO98_ZIPITZ2_LID_BUTTON,
.active_low = 0,
.desc = "Lid Button",
.wakeup = 0
.type = EV_KEY,
.active_low = 1,
.desc = "Lid Switch",
.wakeup = 0,
.type = EV_SW,
},
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册