From: Stanley.Miao Date: Tue, 11 Nov 2008 11:50:56 +0000 (+0800) Subject: OMAP: Fix twl4030 keypad bug. X-Git-Tag: v2.6.28-omap1~158 X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=4121f950bd6627b682b0a9092665622c87703e41;p=linux-2.6-omap-h63xx.git 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 --- 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)))