forked from luck/tmp_suning_uos_patched
ARM: PXA: Z2: Use switch event for lid
Otherwise userspace might be confused. Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com> Acked-by: Marek Vasut <marek.vasut@gmail.com>
This commit is contained in:
parent
54d5710058
commit
e3b1ceedf7
@ -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,
|
||||
},
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user