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

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
...@@ -436,12 +436,12 @@ static struct gpio_keys_button z2_pxa_buttons[] = { ...@@ -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,
}, },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment