keypad: avoid repetition of reporting power key event
authorXingyu Chen <xingyu.chen@amlogic.com>
Thu, 15 Mar 2018 03:11:12 +0000 (11:11 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Tue, 27 Mar 2018 01:58:00 +0000 (17:58 -0800)
commitea4dac67b9849ed076982e81b3753ef5044f5df3
tree0d7882180a6d008cb34d271057cfc093ef350565
parent50df8149843fe4d775be9cd9af8fe5183e67ff24
keypad: avoid repetition of reporting power key event

PD#160889: keypad: avoid repetition of reporting power key event

If the adc_keypad and gpio_keypad driver are enabled at the same time,
the system will report two power key event when it resumes, and the
second event will result in the system suspend again. The patch resolves
the bug.

Change-Id: Iea4d9e2bf6632e4603dc9743fce07e5af74d0273
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
drivers/amlogic/input/keyboard/adc_keypad.c
drivers/amlogic/input/keyboard/gpio_keypad.c