aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Praznik <frank.praznik@oh.rr.com>2014-09-24 09:38:19 -0400
committerJiri Kosina <jkosina@suse.cz>2014-09-25 05:23:26 -0400
commit981c5b4a3b372402dc3aeae3a7a3eb687df44067 (patch)
tree14123b492cd33fae606ac5323df8291ad83b21d7
parentce8efc3b563070c2aa2e0455b992256c98e03547 (diff)
HID: sony: Update the DualShock 4 touchpad resolution
The DualShock 4 touchpad has been measured to have a resolution of 44.86 dots/mm which equates to 1920x942. Signed-off-by: Frank Praznik <frank.praznik@oh.rr.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r--drivers/hid/hid-sony.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.c
index 5baa311e22fc..bc4269e559f1 100644
--- a/drivers/hid/hid-sony.c
+++ b/drivers/hid/hid-sony.c
@@ -1107,10 +1107,10 @@ static void sony_input_configured(struct hid_device *hdev,
1107 1107
1108 /* 1108 /*
1109 * The Dualshock 4 touchpad supports 2 touches and has a 1109 * The Dualshock 4 touchpad supports 2 touches and has a
1110 * resolution of 1920x940. 1110 * resolution of 1920x942 (44.86 dots/mm).
1111 */ 1111 */
1112 if (sc->quirks & DUALSHOCK4_CONTROLLER) { 1112 if (sc->quirks & DUALSHOCK4_CONTROLLER) {
1113 if (sony_register_touchpad(hidinput, 2, 1920, 940) != 0) 1113 if (sony_register_touchpad(hidinput, 2, 1920, 942) != 0)
1114 hid_err(sc->hdev, 1114 hid_err(sc->hdev,
1115 "Unable to initialize multi-touch slots\n"); 1115 "Unable to initialize multi-touch slots\n");
1116 } 1116 }