]> git.baikalelectronics.ru Git - kernel.git/commit
Input: da9063 - report KEY_POWER instead of KEY_SLEEP during power key-press
authorSteve Twiss <stwiss.opensource@diasemi.com>
Sun, 13 Dec 2015 04:43:35 +0000 (20:43 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 13 Dec 2015 05:05:09 +0000 (21:05 -0800)
commit43b56dc4527731362ad4c47440a28a14dc1473e7
treea239e9118c2ac50a429b5b7a3dc6f9ceb1d4535f
parentf4bb0534a4b7deabca30b5425e40ea3b9fa93221
Input: da9063 - report KEY_POWER instead of KEY_SLEEP during power key-press

Stop reporting KEY_SLEEP for a short key-press and report KEY_POWER instead
This change applies to both DA9063 and DA9062 ONKEY drivers.

A previous application used for testing by the developer required a
KEY_SLEEP and KEY_POWER input_report_key event to distinguish between a
short and long key-press of the power key.  This is not the general
convention and the typical solution is for KEY_POWER to be used in both
cases: suspend and S/W power off.

Signed-off-by: Steve Twiss <stwiss.opensource@diasemi.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/da9063_onkey.c