Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: stmpe-keypad - fix valid key line bitmask

The bitmask comment says it will enable GPIO 8-14 and 16-20 for keypad use,
but it actually enables GPIO 8-11 and 13-20 due to a bit error.

Instead of masking of the "hole" at GPIO 12 (which is used for keypad
output 4) mask of the proper "hole" at GPIO 15.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Linus Walleij and committed by
Dmitry Torokhov
2175b0f7 4668546f

+1 -1
+1 -1
drivers/input/keyboard/stmpe-keypad.c
··· 86 86 .max_cols = 8, 87 87 .max_rows = 12, 88 88 .col_gpios = 0x0000ff, /* GPIO 0 - 7*/ 89 - .row_gpios = 0x1fef00, /* GPIO 8-14, 16-20 */ 89 + .row_gpios = 0x1f7f00, /* GPIO 8-14, 16-20 */ 90 90 }, 91 91 [STMPE2403] = { 92 92 .auto_increment = true,