]> git.karo-electronics.de Git - linux-beck.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)
committerJiri Kosina <jkosina@suse.cz>
Thu, 26 Nov 2015 14:20:57 +0000 (15:20 +0100)
commit25a84db15b3f3a24d3ea7d2baf90693bcff34b0c
tree205ad49941b0b29c36f162bb7d2511735ce3178d
parent319645cac26c2d065a485f5d59228433ad602f71
HID: multitouch: enable palm rejection if device implements confidence usage

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>
drivers/hid/hid-multitouch.c