Input: omap-keypad - allow more than 6 rows
authorPeter Ujfalusi <peter.ujfalusi@nokia.com>
Wed, 29 Oct 2008 03:53:25 +0000 (23:53 -0400)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 29 Oct 2008 04:28:58 +0000 (00:28 -0400)
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>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/keyboard/omap-keypad.c

index a016c8d..ec0ebee 100644 (file)
@@ -125,7 +125,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);