* [PATCH 2/3] [OMAPZOOM] INPUT: Fix twl4030 keypad bug.
@ 2008-11-12 19:07 Dominic Curran
0 siblings, 0 replies; only message in thread
From: Dominic Curran @ 2008-11-12 19:07 UTC (permalink / raw)
To: linux-omap; +Cc: stanley.miao
Fixes a bug in TWL4030 keypad where too many columns were being checked.
Code originally submitted by Stanley Miao to linux-omap tree.
Signed-off-by: Dominic Curran <dcurran@ti.com>
cc: Stanley.Miao <stanley.miao@windriver.com>
---
drivers/input/keyboard/omap-twl4030keypad.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/input/keyboard/omap-twl4030keypad.c
b/drivers/input/keyboard/omap-twl4030keypad.c
index 965b6a0..e8fd21c 100644
--- a/drivers/input/keyboard/omap-twl4030keypad.c
+++ b/drivers/input/keyboard/omap-twl4030keypad.c
@@ -176,7 +176,7 @@ static void twl4030_kp_scan(struct omap_keypad *kp, int release_all)
if (!changed)
continue;
- for (col = 0; col < kp->n_cols + 1; col++) {
+ for (col = 0; col < kp->n_cols; col++) {
int key;
if (!(changed & (1 << col)))
--
1.5.4.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-11-12 19:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-12 19:07 [PATCH 2/3] [OMAPZOOM] INPUT: Fix twl4030 keypad bug Dominic Curran
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox