HID: multitouch: Release all touch slots on reset_resume
authorBenson Leung <bleung@chromium.org>
Fri, 11 Mar 2016 22:19:49 +0000 (14:19 -0800)
committerJiri Kosina <jkosina@suse.cz>
Mon, 14 Mar 2016 09:00:00 +0000 (10:00 +0100)
commitd3e69b9a04f8e42de1b4132218567b027d368bb5
treef3f7efda01f034d415a9649af5c9a39eb064515f
parent45c5c6828214605eaefa6755c47bd1a2c7eb203e
HID: multitouch: Release all touch slots on reset_resume

When resetting a device (especially after power loss) it is unlikely
that the firmware will keep the contact tracking data for the previous
touches and will be able to reconcile it with the new contacts, so
let's release all slots on reset resume as start anew.

Signed-off-by: Benson Leung <bleung@chromium.org>
Signed-off-by: Dmitry Torokhov <dtor@chromium.org>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-multitouch.c