]> git.baikalelectronics.ru Git - kernel.git/commitdiff
HID: rmi: Handle all Synaptics touchpads using hid-rmi
authorAndrew Duggan <aduggan@synaptics.com>
Thu, 5 Jan 2017 08:48:59 +0000 (09:48 +0100)
committerJiri Kosina <jkosina@suse.cz>
Wed, 11 Jan 2017 21:15:00 +0000 (22:15 +0100)
With the addition of HID and F12 support in the synaptics-rmi4 driver
touchpads which had been using the hid-multitouch driver can now
be support by the synaptics-rmi4 via hid-rmi. The advantage is that
additional data can be reported from the RMI registers which is not
available in the Microsoft Precision Touchpad collection.

Signed-off-by: Andrew Duggan <aduggan@synaptics.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-core.c

index cff060b56da9d6cb8cb138657cf4efca7debef61..6a35d8c34089090c1a0225a082b6ffbe319c17ba 100644 (file)
@@ -826,7 +826,8 @@ static int hid_scan_report(struct hid_device *hid)
                hid->group = HID_GROUP_WACOM;
                break;
        case USB_VENDOR_ID_SYNAPTICS:
-               if (hid->group == HID_GROUP_GENERIC)
+               if (hid->group == HID_GROUP_GENERIC ||
+                   hid->group == HID_GROUP_MULTITOUCH_WIN_8)
                        if ((parser->scan_flags & HID_SCAN_FLAG_VENDOR_SPECIFIC)
                            && (parser->scan_flags & HID_SCAN_FLAG_GD_POINTER))
                                /*