Input: pxa27x - fix keypad KPC macros
authorSamuel Ortiz <sameo@openedhand.com>
Thu, 20 Mar 2008 13:48:14 +0000 (09:48 -0400)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 20 Mar 2008 13:48:14 +0000 (09:48 -0400)
commit688dad4f4c9004fcaa4cadad167b064342be5d63
treeac5feec50e0c81552bc3e15e18182a360c0e065a
parent3c00bb96497a9c1251359a1faf68dddbb8d50a23
Input: pxa27x - fix keypad KPC macros

We want to mask (key_number - 1), not key_number. The current
implementation works fine for all values but the maximum one,
i.e. 8.

Signed-off-by: Samuel Ortiz <sameo@openedhand.com>
Acked-by: Eric Miao <eric.miao@marvell.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/keyboard/pxa27x_keypad.c