From: Frank Praznik Date: Wed, 24 Sep 2014 13:38:19 +0000 (-0400) Subject: HID: sony: Update the DualShock 4 touchpad resolution X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=981c5b4a3b372402dc3aeae3a7a3eb687df44067;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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 Signed-off-by: Jiri Kosina --- 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, /* * The Dualshock 4 touchpad supports 2 touches and has a - * resolution of 1920x940. + * resolution of 1920x942 (44.86 dots/mm). */ if (sc->quirks & DUALSHOCK4_CONTROLLER) { - if (sony_register_touchpad(hidinput, 2, 1920, 940) != 0) + if (sony_register_touchpad(hidinput, 2, 1920, 942) != 0) hid_err(sc->hdev, "Unable to initialize multi-touch slots\n"); }