gpio_keypad: Fix key reporting [1/1]
authorDmitry Shmidt <dimitrysh@google.com>
Thu, 16 Aug 2018 00:44:14 +0000 (17:44 -0700)
committerYingyuan Zhu <yingyuan.zhu@amlogic.com>
Fri, 24 Aug 2018 11:57:26 +0000 (19:57 +0800)
commitdd66c25ffb598546f11abba76036cca5f22ec8cf
tree3221ad6cc1abed51eb5e8c29b372bcb6609d149b
parent69bef8b7090c32fdc348a1717e67351e216ecd06
gpio_keypad: Fix key reporting [1/1]

PD#172258: pio_keypad: Fix key reporting [1/1]

the following issues have been fixed :
1. didn't report any keys to userspace.
2. the push down of key is reported as push up.
3. no event is reported when press key for the first time.

adjust the key event value by changing the gpio flag for
atom board, as follows:
1. the event value "0" is replaced  to "1" when push down.
2. the event value "1" is replaced  to "0" when push up.

Change-Id: Ia207506df25ea604bce4b6ae9573a981fe664061
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Signed-off-by: Tellen Yu <tellen.yu@amlogic.com>
Signed-off-by: Yingyuan Zhu <yingyuan.zhu@amlogic.com>
arch/arm64/boot/dts/amlogic/atom.dts
drivers/amlogic/input/keyboard/gpio_keypad.c