diff options
author | Vasily Khoruzhick <anarsoul@gmail.com> | 2011-03-13 18:19:22 +0300 |
---|---|---|
committer | Marek Vasut <marek.vasut@gmail.com> | 2011-03-16 16:56:03 +0300 |
commit | e3b1ceedf7adc4adfc989ee78a30fca7b62480b5 (patch) | |
tree | 625c2693681b61081ef433ca85c8ee2cd15ea3fe | |
parent | 54d5710058ebe34451f4ab1d73d86cd8214897b7 (diff) | |
download | linux-e3b1ceedf7adc4adfc989ee78a30fca7b62480b5.tar.xz |
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>
-rw-r--r-- | arch/arm/mach-pxa/z2.c | 10 |
1 files changed, 5 insertions, 5 deletions
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, }, }; |