]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
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 d6cd79bf1fa70f2e9b8da57d3430c2d3c2681fe9..0f950465a038c862fbdf4aa55711ecd07cfe1a0f 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);