diff options
author | Arnaud Patard (Rtp) <arnaud.patard@rtp-net.org> | 2011-06-27 16:41:05 -0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-07-26 03:14:52 -0400 |
commit | f7db3d5f4c27fa93304ead2d7e76d00df3981f02 (patch) | |
tree | c084521f5e8c67b27507cfe635bd851a1fe5a6cd /arch/arm | |
parent | 37df0e5de7612979354593df8edec5c5f3d0b475 (diff) |
efikasb: fix gpio keys.
While testing the keys, I only checked that the key were generating an input
event but unfortunately, they were not generating the right event. Fix that.
Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-mx5/board-mx51_efikasb.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/arch/arm/mach-mx5/board-mx51_efikasb.c b/arch/arm/mach-mx5/board-mx51_efikasb.c index 474fc6e4c6df..8054f3f7f491 100644 --- a/arch/arm/mach-mx5/board-mx51_efikasb.c +++ b/arch/arm/mach-mx5/board-mx51_efikasb.c | |||
@@ -163,23 +163,24 @@ static struct gpio_keys_button mx51_efikasb_keys[] = { | |||
163 | { | 163 | { |
164 | .code = KEY_POWER, | 164 | .code = KEY_POWER, |
165 | .gpio = EFIKASB_PWRKEY, | 165 | .gpio = EFIKASB_PWRKEY, |
166 | .type = EV_PWR, | 166 | .type = EV_KEY, |
167 | .desc = "Power Button", | 167 | .desc = "Power Button", |
168 | .wakeup = 1, | 168 | .wakeup = 1, |
169 | .debounce_interval = 10, /* ms */ | 169 | .active_low = 1, |
170 | }, | 170 | }, |
171 | { | 171 | { |
172 | .code = SW_LID, | 172 | .code = SW_LID, |
173 | .gpio = EFIKASB_LID, | 173 | .gpio = EFIKASB_LID, |
174 | .type = EV_SW, | 174 | .type = EV_SW, |
175 | .desc = "Lid Switch", | 175 | .desc = "Lid Switch", |
176 | .active_low = 1, | ||
176 | }, | 177 | }, |
177 | { | 178 | { |
178 | /* SW_RFKILLALL vs KEY_RFKILL ? */ | 179 | .code = KEY_RFKILL, |
179 | .code = SW_RFKILL_ALL, | ||
180 | .gpio = EFIKASB_RFKILL, | 180 | .gpio = EFIKASB_RFKILL, |
181 | .type = EV_SW, | 181 | .type = EV_KEY, |
182 | .desc = "rfkill", | 182 | .desc = "rfkill", |
183 | .active_low = 1, | ||
183 | }, | 184 | }, |
184 | }; | 185 | }; |
185 | 186 | ||