diff options
author | Jeremy.Yao <r65161@freescale.com> | 2010-03-25 15:51:17 +0800 |
---|---|---|
committer | Jeremy.Yao <r65161@freescale.com> | 2010-03-25 15:51:17 +0800 |
commit | d86a30601e71d605bae924611f1e8c8fa2eac455 (patch) | |
tree | d0dde8343b8a15d65baa621f50446e24b86a60a9 /drivers | |
parent | 2213900dfd2effbef71d1ae768e5304accb5aaf4 (diff) |
ENGR00121977: iMX28 Fix Keypad Driver
Stop using btn irq
Signed-off-by: Jeremy Yao <r65161@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/input/keyboard/mxs-kbd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/keyboard/mxs-kbd.c b/drivers/input/keyboard/mxs-kbd.c index 7f58935f1c6e..ed04a7eff19a 100644 --- a/drivers/input/keyboard/mxs-kbd.c +++ b/drivers/input/keyboard/mxs-kbd.c @@ -122,7 +122,7 @@ static unsigned mxskbd_decode_button(struct mxskbd_keypair *codes, { pr_debug("Decoding %d\n", raw_button); while (codes->raw != -1) { - if ((raw_button > (codes->raw - LRADC_NOISE_MARGIN)) && + if ((raw_button >= (codes->raw - LRADC_NOISE_MARGIN)) && (raw_button < (codes->raw + LRADC_NOISE_MARGIN))) { pr_debug("matches code 0x%x = %d\n", codes->kcode, codes->kcode); |