From patchwork Tue Mar 30 08:54:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 411688 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp4279250jai; Tue, 30 Mar 2021 01:55:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmZgbJOluTkIzkVfzFlNBRolAQuaKq2777mutmnkJhYnpGyouzJvOAOmazEDP8lbkWfyWY X-Received: by 2002:a17:906:85b:: with SMTP id f27mr32845145ejd.414.1617094524426; Tue, 30 Mar 2021 01:55:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617094524; cv=none; d=google.com; s=arc-20160816; b=T6YhzYJJ7HUWOOpiaCbXXH1OLavcvzElCEEsddB2AIOi0G94+Jt78Tkfs5n3vmK0Nm I23WJBOW8k3x8unU7wFyChXGPcm/l+49covn2Rk0jeXBhcOeEFYweq2gxRfeobvUWMTy qgINB9O53KXZtgdtDWwxSw6cPrPb50dy+hzLicdsakPnyhPqarkF8MmpoPtJMt6tEgBD fzdiYbY+AogO4ZmGeHAi7/xTcKRnXdtlWuO2kPVp7ufUMjb/wAxhGduOeCNNqPf+03Rb noQTcpCuZnvCkz686qXYKNDm4Bgm0tvWrm1pCvEhhEKCDZhvrarvCzQc+XfndWtLDUhS kQ5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=UfaoV/sNb42ikH43Koy/D/irGAW84Qvp9X/UlbMwEzk=; b=ob7rT1j8rM+7D0wPucuf8deCbBMRZrWO0+3WTFToVxnEm58OwY0DSJ6N+7ynTz6hht 5EPaUJWPpFX1o6sKFDwklyqjxfcUupl/6ZqlWhtIC8HXYCoFlQCwOb9Y7UC0t+wcqOZm KQoUF5BB/9kiYwW3Y5tcOIdsYgzr/pFaMUP9T4nsWE6otRTx09aKKcMhT3vt2icUKy9g EsmeOld8ygP3rWCMRIRdCfjlf/rYDjREHpn0Cf/PT7TgYf2JqA09K1qviSMB1z+3p7PA 3h+7PNsHIN7TfecGKJ4IDbDt2j86FnZEc8Y9l7i2EhZk7B2QqVQ69ue6pIe50tFtRgR5 Q67g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=k32sLOji; spf=pass (google.com: domain of linux-input-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-input-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a22si14273072edv.24.2021.03.30.01.55.24; Tue, 30 Mar 2021 01:55:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-input-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=k32sLOji; spf=pass (google.com: domain of linux-input-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-input-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231194AbhC3Iyv (ORCPT + 1 other); Tue, 30 Mar 2021 04:54:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231310AbhC3Iyi (ORCPT ); Tue, 30 Mar 2021 04:54:38 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56E65C061764 for ; Tue, 30 Mar 2021 01:54:38 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id s17so19024894ljc.5 for ; Tue, 30 Mar 2021 01:54:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=UfaoV/sNb42ikH43Koy/D/irGAW84Qvp9X/UlbMwEzk=; b=k32sLOjiJYsWxfXX9S+t/N5vmo6WuHtFecVAec02o04ogYTmrhDbf49bzsuQmTcarm k1AzPPp4N2U9XcEGtTrriIUaPI6fs8t8aYOVdmhh5M5f5SxVuRx/sp5uoJ0PyW1AVtyC pPedra8xXAQW9smWbiy4HqQMxs7FfMBq3LJdhSi/eRIPz4+7iFPU+vN/bIlUt4CD84q+ M9D27r375cxfmS5yrLiLPpt4ThCv0wejNxLobKsI+50W6dqXFD0GDO4nSPyEf8MdpInt X+D79lXpVr3qJAfD0/ysNE18sAvgjEr21FRKPjJCNkv5vntN71KtpvX3TPSTTmmPqPFb EiTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=UfaoV/sNb42ikH43Koy/D/irGAW84Qvp9X/UlbMwEzk=; b=ZMofqDZywWhOKSDeQqal6nKp5pQXKpcZJMp4CWc8gc7YF9AJG1kwaWXz7iMgJQYbTm 9mVTQsovxSrle7stJlokUWwlPc6RBqSc1nNQs9W6veZQ/fYVaPKbDN4WL8u6pV7H5DFB 36xz8ADAlxxcZXOFm0mHLPPzxOhMkCZnqmaJ8cBoHf3hdSsBinxsxevqBTN519fGMTVP PMTDlqJo6JkrqmKXn2zsUXHbJC7BbW4L9UQl2fo+pB0rzEB3a6R6O0OyO3F/CXC0qzla nj8yE0S0ZMxQB0r+hq7s84p9c7ojvosA9unJjGL6DV6bgxkMGQULIbCv1k3erTasVlcx kR/w== X-Gm-Message-State: AOAM531EgdQz75nR6ExS27HnwGfsX86XxqsmKibPU14ygoPTumRs/URh 2s6h3fekYJU1O3Wd5dJxWJaBCw== X-Received: by 2002:a2e:9a96:: with SMTP id p22mr19652691lji.167.1617094476870; Tue, 30 Mar 2021 01:54:36 -0700 (PDT) Received: from localhost.localdomain (c-14cb225c.014-348-6c756e10.bbcust.telenor.se. [92.34.203.20]) by smtp.gmail.com with ESMTPSA id 201sm2104238lfm.108.2021.03.30.01.54.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Mar 2021 01:54:36 -0700 (PDT) From: Linus Walleij To: Ferruh Yigit , Dmitry Torokhov , Javier Martinez Canillas Cc: Henrik Rydberg , linux-input@vger.kernel.org, Linus Walleij Subject: [PATCH 7/7] Input: cyttsp - Flag the device properly Date: Tue, 30 Mar 2021 10:54:24 +0200 Message-Id: <20210330085424.2244653-8-linus.walleij@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210330085424.2244653-1-linus.walleij@linaro.org> References: <20210330085424.2244653-1-linus.walleij@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org This device is certainly a very simple touchscreen so we set INPUT_MT_DIRECT. The sibling driver for CY8CTMA140 also sets INPUT_MT_DROP_UNUSED and experimenting with this driver it clearly does not hurt: the touchscreen is working just fine so let's set it for this one as well. Signed-off-by: Linus Walleij --- drivers/input/touchscreen/cyttsp_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.29.2 Reviewed-by: Javier Martinez Canillas diff --git a/drivers/input/touchscreen/cyttsp_core.c b/drivers/input/touchscreen/cyttsp_core.c index ac412bcb15d8..fb71cd0d2070 100644 --- a/drivers/input/touchscreen/cyttsp_core.c +++ b/drivers/input/touchscreen/cyttsp_core.c @@ -672,7 +672,8 @@ struct cyttsp *cyttsp_probe(const struct cyttsp_bus_ops *bus_ops, touchscreen_parse_properties(input_dev, true, NULL); - error = input_mt_init_slots(input_dev, CY_MAX_ID, 0); + error = input_mt_init_slots(input_dev, CY_MAX_ID, + INPUT_MT_DIRECT | INPUT_MT_DROP_UNUSED); if (error) { dev_err(dev, "Unable to init MT slots.\n"); return ERR_PTR(error);