Commit 4121f950 authored by Stanley.Miao's avatar Stanley.Miao Committed by Tony Lindgren

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: default avatarStanley.Miao <stanley.miao@windriver.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent a1d25372
......@@ -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)))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment