From: Roderick Colenbrander Date: Tue, 7 Mar 2017 23:45:07 +0000 (-0800) Subject: HID: sony: Mark DS4 touchpad device as a pointer X-Git-Tag: v4.12-rc1~126^2~1^2~11 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b9f7d245e34b1f42b5389b015962a2f022d4ece2;p=karo-tx-linux.git HID: sony: Mark DS4 touchpad device as a pointer 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 Signed-off-by: Jiri Kosina --- diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.c index dabac09fd934..dedaefa3e1f9 100644 --- a/drivers/hid/hid-sony.c +++ b/drivers/hid/hid-sony.c @@ -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;