Skip to content

Commit

Permalink
ARM: PXA: Z2: Use switch event for lid
Browse files Browse the repository at this point in the history
Otherwise userspace might be confused.

Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
  • Loading branch information
Vasily Khoruzhick authored and Marek Vasut committed Mar 16, 2011
1 parent 54d5710 commit e3b1cee
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions arch/arm/mach-pxa/z2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
};

Expand Down

0 comments on commit e3b1cee

Please sign in to comment.