From: Peter Ujfalusi Date: Thu, 2 Oct 2008 05:28:49 +0000 (+0300) Subject: OMAP2: omap-keypad: Enable more than 6 rows X-Git-Tag: v2.6.27-omap1~14 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=81b93788802bab813afbdd53848bdc5e98c48919;p=linux-2.6-omap-h63xx.git OMAP2: omap-keypad: Enable 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 --- diff --git a/drivers/input/keyboard/omap-keypad.c b/drivers/input/keyboard/omap-keypad.c index d6cd79bf1fa..0f950465a03 100644 --- a/drivers/input/keyboard/omap-keypad.c +++ b/drivers/input/keyboard/omap-keypad.c @@ -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);