projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54d5710
)
ARM: PXA: Z2: Use switch event for lid
author
Vasily Khoruzhick
<anarsoul@gmail.com>
Sun, 13 Mar 2011 15:19:22 +0000
(17:19 +0200)
committer
Marek Vasut
<marek.vasut@gmail.com>
Wed, 16 Mar 2011 13:56:03 +0000
(14:56 +0100)
Otherwise userspace might be confused.
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
arch/arm/mach-pxa/z2.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-pxa/z2.c
b/arch/arm/mach-pxa/z2.c
index 3ab73f3079a0cb8cfc35f9db995d4cf42be1e606..d9322ddad8d8d70f19bf839be07387c67a154c02 100644
(file)
--- 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
,
},
};