OMAP2: omap-keypad: Enable more than 6 rows
authorPeter Ujfalusi <peter.ujfalusi@nokia.com>
Thu, 2 Oct 2008 05:28:49 +0000 (08:28 +0300)
committerTony Lindgren <tony@atomide.com>
Fri, 17 Oct 2008 22:01:44 +0000 (15:01 -0700)
There is no reason to limit the GPIO rows to 6 for
OMAP2.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/input/keyboard/omap-keypad.c

index d6cd79b..0f95046 100644 (file)
@@ -137,7 +137,7 @@ static void omap_kp_scan_keypad(struct omap_kp *omap_kp, unsigned char *state)
                /* read the keypad status */
                for (col = 0; col < omap_kp->cols; col++) {
                        set_col_gpio_val(omap_kp, ~(1 << col));
-                       state[col] = ~(get_row_gpio_val(omap_kp)) & 0x3f;
+                       state[col] = ~(get_row_gpio_val(omap_kp)) & 0xff;
                }
                set_col_gpio_val(omap_kp, 0);