HID: multitouch: Synchronize MT frame on reset_resume
authorGabriele Mazzotta <gabriele.mzt@gmail.com>
Tue, 29 Mar 2016 20:10:41 +0000 (22:10 +0200)
committerJiri Kosina <jkosina@suse.cz>
Fri, 1 Apr 2016 09:34:11 +0000 (11:34 +0200)
commit0a0f5b7e5b56829b91d3637cf6999e0ade791ddb
tree666c7dbc50e3a80bda2c2da67f82edb424c7e66a
parent580549ef6b3e3fb3b958de490ca99f43a089a2cf
HID: multitouch: Synchronize MT frame on reset_resume

input_mt_get_slot_by_key() requires input_mt_sync_frame() to be called
at each frame. Do it when releasing the touches, or else we won't get
a proper slot number after mt_reset_resume().

Signed-off-by: Gabriele Mazzotta <gabriele.mzt@gmail.com>
Reviewed-by: Benson Leung <bleung@chromium.org>
Reviewed-by: Benjamin TIssoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-multitouch.c