Input: mpr121 - handle multiple bits change of status register
authorAkinobu Mita <akinobu.mita@gmail.com>
Sun, 15 Jan 2017 22:44:30 +0000 (14:44 -0800)
committerDanny Wood <danwood76@gmail.com>
Tue, 29 Jan 2019 13:17:10 +0000 (13:17 +0000)
commitd7de0bd0a777df937ca8dd14983d022d647327c6
tree9a2a4d842427511197f9771c58e7385fee60b60d
parenteb6291459de7c369093709d3d56b43c51db2f98e
Input: mpr121 - handle multiple bits change of status register

commit 08fea55e37f58371bffc5336a59e55d1f155955a upstream.

This driver reports input events on their interrupts which are triggered
by the sensor's status register changes.  But only single bit change is
reported in the interrupt handler.  So if there are multiple bits are
changed at almost the same time, other press or release events are ignored.

This fixes it by detecting all changed bits in the status register.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Oliver Neukum <ONeukum@suse.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/input/keyboard/mpr121_touchkey.c