From: Peter Ujfalusi Date: Wed, 29 Oct 2008 03:53:25 +0000 (-0400) Subject: Input: omap-keypad - allow more than 6 rows X-Git-Tag: v2.6.29-rc1~221^2~1^2~23 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=dde4ac07263161264d089c7556d0295487787b77;p=linux-2.6-omap-h63xx.git Input: omap-keypad - allow more than 6 rows There is no reason to limit the GPIO rows to 6 for OMAP2. Signed-off-by: Peter Ujfalusi Signed-off-by: Tony Lindgren Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/keyboard/omap-keypad.c b/drivers/input/keyboard/omap-keypad.c index a016c8d85a3..ec0ebee4606 100644 --- a/drivers/input/keyboard/omap-keypad.c +++ b/drivers/input/keyboard/omap-keypad.c @@ -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);