From: Vasily Khoruzhick Date: Sun, 13 Mar 2011 15:19:22 +0000 (+0200) Subject: ARM: PXA: Z2: Use switch event for lid X-Git-Tag: v2.6.39-rc2~40^2^2~1^2~2 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=e3b1ceedf7adc4adfc989ee78a30fca7b62480b5;p=linux.git ARM: PXA: Z2: Use switch event for lid Otherwise userspace might be confused. Signed-off-by: Vasily Khoruzhick Acked-by: Marek Vasut --- diff --git a/arch/arm/mach-pxa/z2.c b/arch/arm/mach-pxa/z2.c index 3ab73f3079a0..d9322ddad8d8 100644 --- a/arch/arm/mach-pxa/z2.c +++ b/arch/arm/mach-pxa/z2.c @@ -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, }, };