Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1960775imm; Thu, 21 Jun 2018 05:12:10 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIZn4lc3+jh+4+D4+2E/+JOC4/BjkW/bpMSZV3p7PdkwxZbs/bOgccNz+6mBS0lnNIe3vGo X-Received: by 2002:a65:6355:: with SMTP id p21-v6mr21993880pgv.293.1529583130396; Thu, 21 Jun 2018 05:12:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529583130; cv=none; d=google.com; s=arc-20160816; b=m1lbaG3rd2qS7gGv7RzkN3obcARPGlQkf/hAB8jpGQtazqyI5fGPVRFcAwssVB7PRF wDEn/ACRhLg539o1mH2qBOxShSGTfb7vJmEWFKXF3jEjyfCb/ZRyS+UW8DQ+dlqBRjLI LKGNVHu+27Vkn6cE0BerKv++K9x3oU/TtbxcQp2g8CddKB6S4Swb6zqK91+QpITHnRit UZWxjHcsdHNurTU3mHsgzzPpJjIserOY/uFkz3AFMK67GW5Wg737nlXFX+RACX4kQ/Zf qmDad8cXNQpVKCS420CfsuNNJYHrfMx8RCH7CYwjZQorUR/QW4wIkKVoeYSrOUKWO2t/ hBCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=UC+07T0QLxj91vMfEE5SWcaq1jCOlahUkkBE3oAOnDw=; b=ZKQisNLecvK7+D79MtCw9ETE+uh+QoES1C+MCNPddBd93rfwYXJEj26KkgM+PC1K9Y GOreBgd4Y6B16vlqoKySekZtzLjO/hCpDgQl+arwTq6aU6yey3mmU/caNDUgbK74e8aL 5SsG35e6/O7hSlDiNZXoGpjxTVDFiC413YAiqmqBNWPRpHDOR1mvLUvXBd3t3xOGLbN2 VG8oZ8+M1Km9iWp4cwraadOT7Y6gUkzpdXwmlvUPl5ngcnXD9mq7n1izlNfS9e7rurIs +hXmG3Xzv5FQKm+NWIO7Yck9WYCIbOO6FvwA8msJKJR5dH3llIJa8gUAxSsheWNATvb3 bCrg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t17-v6si4478118plo.343.2018.06.21.05.11.56; Thu, 21 Jun 2018 05:12:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933546AbeFUMJd (ORCPT + 99 others); Thu, 21 Jun 2018 08:09:33 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:38542 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933453AbeFUMJb (ORCPT ); Thu, 21 Jun 2018 08:09:31 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 79B8E4075830; Thu, 21 Jun 2018 12:09:30 +0000 (UTC) Received: from plouf.banquise.eu.com (ovpn-117-99.ams2.redhat.com [10.36.117.99]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3500E2026D6B; Thu, 21 Jun 2018 12:09:29 +0000 (UTC) From: Benjamin Tissoires To: Jiri Kosina , Dmitry Torokhov Cc: Mario.Limonciello@dell.com, Peter Hutterer , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Benjamin Tissoires Subject: [PATCH v3 11/12] HID: multitouch: touchscreens also use confidence reports Date: Thu, 21 Jun 2018 14:09:07 +0200 Message-Id: <20180621120908.16706-12-benjamin.tissoires@redhat.com> In-Reply-To: <20180621120908.16706-1-benjamin.tissoires@redhat.com> References: <20180621120908.16706-1-benjamin.tissoires@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Thu, 21 Jun 2018 12:09:30 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Thu, 21 Jun 2018 12:09:30 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'benjamin.tissoires@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dmitry Torokhov According to [1] the confidence is used not only by touchpad devices, but also by touchscreens. [1] https://docs.microsoft.com/en-us/windows-hardware/design/component-guidelines/touchscreen-required-hid-top-level-collections Signed-off-by: Dmitry Torokhov [rebased] Signed-off-by: Benjamin Tissoires --- no changes in v2 (compared to Dmitry's initial submission) no changes in v3 --- drivers/hid/hid-multitouch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c index 36c8b67bb032..9c708aa261ee 100644 --- a/drivers/hid/hid-multitouch.c +++ b/drivers/hid/hid-multitouch.c @@ -734,7 +734,8 @@ static int mt_touch_input_mapping(struct hid_device *hdev, struct hid_input *hi, case HID_DG_CONFIDENCE: if ((cls->name == MT_CLS_WIN_8 || cls->name == MT_CLS_WIN_8_DUAL) && - field->application == HID_DG_TOUCHPAD) + (field->application == HID_DG_TOUCHPAD || + field->application == HID_DG_TOUCHSCREEN)) app->quirks |= MT_QUIRK_CONFIDENCE; if (app->quirks & MT_QUIRK_CONFIDENCE) -- 2.14.3