]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
HID: sony: Mark DS4 touchpad device as a pointer
authorRoderick Colenbrander <roderick.colenbrander@sony.com>
Tue, 7 Mar 2017 23:45:07 +0000 (15:45 -0800)
committerJiri Kosina <jkosina@suse.cz>
Tue, 21 Mar 2017 14:11:56 +0000 (15:11 +0100)
Currently the DS4 touchpad device is neither classified as a direct
input device nor as a pointer device. It makes most sense to mark
it as a pointer device.

Signed-off-by: Roderick Colenbrander <roderick.colenbrander@sony.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-sony.c

index dabac09fd9342e7a95bc24b362a2953de4a1a15c..dedaefa3e1f963b9b096043c0c9993b224c4462d 100644 (file)
@@ -1236,7 +1236,7 @@ static int sony_register_touchpad(struct sony_sc *sc, int touch_count,
        snprintf(name, name_sz, "%s" DS4_TOUCHPAD_SUFFIX, sc->hdev->name);
        sc->touchpad->name = name;
 
-       ret = input_mt_init_slots(sc->touchpad, touch_count, 0);
+       ret = input_mt_init_slots(sc->touchpad, touch_count, INPUT_MT_POINTER);
        if (ret < 0)
                goto err;