diff options
author | Roderick Colenbrander <roderick.colenbrander@sony.com> | 2017-03-07 15:45:07 -0800 |
---|---|---|
committer | Siarhei Vishniakou <svv@google.com> | 2019-11-07 11:14:43 -0600 |
commit | a777cfa83035bf763bfee6c54184a302f57651e2 (patch) | |
tree | 1e3181c56d8670ca1f070e7b8d8ba171e166d9df /drivers/hid | |
parent | b2c75c74ff22f14861ebfbec2ab096b8174ce43f (diff) |
UPSTREAM: 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 <roderick.colenbrander@sony.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
(cherry picked from commit b9f7d245e34b1f42b5389b015962a2f022d4ece2)
Bug: 111431828
Signed-off-by: Kim Low <kim-huei.low@sony.com>
Change-Id: I8fa285f5b3c2926e826477c7d366bc2ff8f00d64
Signed-off-by: Siarhei Vishniakou <svv@google.com>
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/hid-sony.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.c index b286075ba767..187dab2d38fb 100644 --- a/drivers/hid/hid-sony.c +++ b/drivers/hid/hid-sony.c @@ -1231,7 +1231,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; |