Skip to contentSkip to conversation

INPUT: Fix twl4030 keypad bug.

PATCH In review Dominic Curran 1 participant 1 message Nov 12, 2008 Input drivers

lore
Share & tools
lore
#0 lore raw

PATCH 2/3 INPUT: Fix twl4030 keypad bug.

Fixes a bug in TWL4030 keypad where too many columns were being checked. Code originally submitted by Stanley Miao to linux-omap tree.

---
 drivers/input/keyboard/omap-twl4030keypad.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
(quoted diff) +0 -0

b/drivers/input/keyboard/omap-twl4030keypad.c
index 965b6a0..e8fd21c 100644

drivers/input/keyboard/omap-twl4030keypad.c +1 -1
@@ -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)))
Signature · 1 line
1.5.4.1