]> git.baikalelectronics.ru Git - kernel.git/commit
Input: sirfsoc-onkey - report release event by detecting pin status
authorXianglong Du <Xianglong.Du@csr.com>
Sat, 15 Feb 2014 20:30:58 +0000 (12:30 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 15 Feb 2014 22:09:33 +0000 (14:09 -0800)
commit11f9eafef9430be6b5ae3268e261229af5a9a756
tree565f6585ddc0f403cd2207b9ee8c8ce09480bbfb
parent5ffab1048c85c712831bc621906ce68e8abd9c63
Input: sirfsoc-onkey - report release event by detecting pin status

This change adds a delayed_work to detect the release of onkey since HW will
not generate interrupt for it.

At the same time, we move the KEY event to POWER instead of SUSPEND, which
will be suitable for both Android and Linux. Userspace PowerManager Daemon
will decide to suspend or shutdown based on how long we have touched onkey.

Signed-off-by: Xianglong Du <Xianglong.Du@csr.com>
Signed-off-by: Rongjun Ying <Rongjun.Ying@csr.com>
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/sirfsoc-onkey.c