]> git.baikalelectronics.ru Git - kernel.git/commit
Input: ads7846 - avoid pen up/down when reading hwmon
authorDavid Jander <david@protonic.nl>
Mon, 20 Mar 2017 18:05:29 +0000 (11:05 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 25 Mar 2017 17:38:43 +0000 (10:38 -0700)
commit11518efcfe6352ea81d6e85cca3206cc202fe59b
tree2384d99ea5dfd78020a938f3188f6f53ba115575
parentfda5888cde2f3b0464004658b418f6191e6ef608
Input: ads7846 - avoid pen up/down when reading hwmon

Each time the HWMON devices are read (e.g. battery voltage) while the
touchscreen is held pressed, extra pen-up and pen-down events are
generated. This is fixed by avoiding the UP event when the touchscreen is
stopped.

Signed-off-by: David Jander <david@protonic.nl>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/ads7846.c