]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
OMAP: Fix twl4030 keypad bug.
authorStanley.Miao <stanley.miao@windriver.com>
Tue, 11 Nov 2008 11:50:56 +0000 (19:50 +0800)
committerTony Lindgren <tony@atomide.com>
Thu, 13 Nov 2008 22:43:05 +0000 (14:43 -0800)
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 <stanley.miao@windriver.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/input/keyboard/omap-twl4030keypad.c

index d3e1d2076d32a22bbd822fe44e1690299052a340..f6f1ad8cdf2d339f6f9a11d27c0e6641741966b7 100644 (file)
@@ -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)))