From 4121f950bd6627b682b0a9092665622c87703e41 Mon Sep 17 00:00:00 2001 From: "Stanley.Miao" Date: Tue, 11 Nov 2008 19:50:56 +0800 Subject: [PATCH] OMAP: Fix twl4030 keypad bug. The n_cols number has beed set to the right value in the board specific file, so in the twl4030 driver, the n_cols doesn't need to plus 1. Signed-off-by: Stanley.Miao Signed-off-by: Tony Lindgren --- drivers/input/keyboard/omap-twl4030keypad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/keyboard/omap-twl4030keypad.c b/drivers/input/keyboard/omap-twl4030keypad.c index d3e1d2076d3..f6f1ad8cdf2 100644 --- a/drivers/input/keyboard/omap-twl4030keypad.c +++ b/drivers/input/keyboard/omap-twl4030keypad.c @@ -174,7 +174,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))) -- 2.41.1