]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
HID: multitouch: enable palm rejection if device implements confidence usage
authorAllen Hung <allen_hung@dell.com>
Fri, 20 Nov 2015 10:21:06 +0000 (18:21 +0800)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 29 Feb 2016 16:01:50 +0000 (09:01 -0700)
commitc311b3323b6fc2512f326f4d232ae103b9bc26ab
tree85917c51853b3ae6e4bf7eda30c0b58ce71159a9
parentad8a53484520fc7d522e1bb2ac5b0cd0c4d49748
HID: multitouch: enable palm rejection if device implements confidence usage

BugLink: http://bugs.launchpad.net/bugs/1541671
The usage Confidence is mandary to Windows Precision Touchpad devices. The
appearance of this usage is checked in hidinput_connect but the quirk
MT_QUIRK_VALID_IS_CONFIDENCE is not applied to device accordingly.
Apply this quirk and also remove quirk MT_QUIRK_ALWAYS_VALID to enable palm
rejection for the WIN 8 touchpad devices which have implemented usage
Confidence in its input reports.

Tested on Dell XPS 13 laptop.

Signed-off-by: Allen Hung <allen_hung@dell.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
(cherry picked from commit 25a84db15b3f3a24d3ea7d2baf90693bcff34b0c)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/hid/hid-multitouch.c