Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2895161iob; Fri, 6 May 2022 12:45:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXUrbk1MSp6lAIDidTkuMqZT/VZho0C+bKdpTR7fX1Xl9+HKGKcVcwE6SAjqd79l55i9Mw X-Received: by 2002:a63:6bc6:0:b0:39d:966d:2791 with SMTP id g189-20020a636bc6000000b0039d966d2791mr3998367pgc.407.1651866346495; Fri, 06 May 2022 12:45:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651866346; cv=none; d=google.com; s=arc-20160816; b=SgwQ1dRveJbZiFivQLkIyHOK8Ck+7kP6lSRzN25SEx3GqkiSiSfBqKRnLvfZ3zuJ3g dsMZk+cV8h/cvCzuBzviCfVS4RX4X11E60N64AlizPh+3HXNknFxGZphhbHopZo33lYY K2Fp7f2Ajh93VDuXkV2tHqxfZ/TNrpPuWPcBqWYINn60yeZIm5+vPN8GA4sbw0QgKP9C Hb4cH/ayZ6x1VSb+Be3TyTfITifRpCj6ik3mCL7TbMQ4T4ayC6Al6ZYEFLuiMH67IzqC wuc6vjgqZNeEKK3yyHp8uXcpIcwMRuyQ0QlnyHZbf+zcGGCKvLM9JSZdrR8xMBY//TGg 6QoQ== 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=HQbqkKFVhO0oYTCViggW509ZlaV6AfefEm9f3k12+eg=; b=rJxQgnpzwPC7xsZOeNkixOimfHMwGQjPR7vPeW1Pg15GFA5VBWRar71lMUZtUkUAFi 9dBi/NkKQ/5J5RbAlmpzUV0sy2jYTjcG3ysoxSZ8VaUIhhIr3FWu/3AS7CcqryvQczXU hv+DTlhshWBLY1P7ZX27VoqmCbeE6KWetyd8qmYTlGnw+uLVc06PapoHGVjIcRkbRry/ KGled0gMKoN6UhiXHfcyrP5ApHRodnjX77uicpKspq39uPTdqBCI5+J8vZcjuNFjt1eA zaX9QyrzAgrjFf2VMnI6YVgfXxjfWYt8CTSJqGXrcriBKq7aCLukf+8RHsTjC9XBQ7fJ NuSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=I3V5xwc9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q9-20020a170902e30900b0015e8ed27741si2601150plc.233.2022.05.06.12.45.25; Fri, 06 May 2022 12:45:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=I3V5xwc9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352356AbiEDP2a (ORCPT + 99 others); Wed, 4 May 2022 11:28:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351814AbiEDP2W (ORCPT ); Wed, 4 May 2022 11:28:22 -0400 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46FE344A04; Wed, 4 May 2022 08:24:46 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id x18so2549191wrc.0; Wed, 04 May 2022 08:24:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HQbqkKFVhO0oYTCViggW509ZlaV6AfefEm9f3k12+eg=; b=I3V5xwc9mmJq9PbDd0vvDdHFo49dVPjTOVRWlp22XUQElQp0zzIOBiGS7b0ynHNI5Y BwjGbVvkEMSmalnyMryP7nneYZhAcm6vHowvvYE6n0fJ8K5HDt88esL6adDs7OOPw7sG mPK767DkFjwK1lK6DRPOiY3bhlBTG5l37G7dA2OEPfK3sDrnMU5t0fLAkItQ8teLwhqC ZpR67GAX9dKU16IKNP6/2WUsB2aVJ7ehlNOP9/mLj4rtzv6YyEBRMnJ4dVrwDZwmz4JZ OU1iw8EeAu+71o96y9De7kEeWsNyQO/1bKKe1eYPzZAQJSxDDex47/QpG8NvZKDFKD44 R7Ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HQbqkKFVhO0oYTCViggW509ZlaV6AfefEm9f3k12+eg=; b=CD/IJWzJRkPNEMfr6ordz1MGtUZbalOSjOjuEv9StPFu2httFxzS7DsDAdUunN7Gg9 y9JJqhGi5mPPyVBJqwppKjxoIhwMHI5rheIe0KCoQLs4LSGGuUKckN27Rx5CUi0SeGSo T8nAndGpuqu3S78jbJ8cxWTocdm4G0ClKwBdm8U7JDCn4YcQ9DzM/pRZeeRSuROdUybt CmoRWQflb7RENcpVP5VI8Z4Ca1g3fLNThcG/OVPhSwNFp5MA/TR0qRnf+Y8BX++EZ028 PAZvxy5sCfrKl1W2Fi9OPJXm8tw4B9F+KiyOgQiLMUWnbcgQoykNfEZWXpOxvVdO6WiK JCFg== X-Gm-Message-State: AOAM5321hHb71tKIgWIHwlolmwVa5L8Sn56Kw9OIytBVAZ5kXDdQwzfh yIUmPp/jaLWctMrkvRtWxYmOv3gUqZM= X-Received: by 2002:a5d:6dac:0:b0:20c:5fbf:5c4d with SMTP id u12-20020a5d6dac000000b0020c5fbf5c4dmr12489091wrs.548.1651677884735; Wed, 04 May 2022 08:24:44 -0700 (PDT) Received: from nergzd-desktop.localdomain ([194.39.226.133]) by smtp.gmail.com with ESMTPSA id s14-20020adfa28e000000b0020c5253d91csm11541041wra.104.2022.05.04.08.24.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 May 2022 08:24:44 -0700 (PDT) From: Markuss Broks To: linux-kernel@vger.kernel.org Cc: phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Markuss Broks , Lin Meng-Bo , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Henrik Rydberg , linux-input@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 1/3] input/touchscreen: imagis: Correct the maximum touch area value Date: Wed, 4 May 2022 18:24:03 +0300 Message-Id: <20220504152406.8730-2-markuss.broks@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220504152406.8730-1-markuss.broks@gmail.com> References: <20220504152406.8730-1-markuss.broks@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As specified in downstream IST3038B driver and proved by testing, the correct maximum reported value of touch area is 16. Signed-off-by: Markuss Broks --- drivers/input/touchscreen/imagis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/imagis.c b/drivers/input/touchscreen/imagis.c index e2697e6c6d2a..b667914a44f1 100644 --- a/drivers/input/touchscreen/imagis.c +++ b/drivers/input/touchscreen/imagis.c @@ -210,7 +210,7 @@ static int imagis_init_input_dev(struct imagis_ts *ts) input_set_capability(input_dev, EV_ABS, ABS_MT_POSITION_X); input_set_capability(input_dev, EV_ABS, ABS_MT_POSITION_Y); - input_set_abs_params(input_dev, ABS_MT_TOUCH_MAJOR, 0, 255, 0, 0); + input_set_abs_params(input_dev, ABS_MT_TOUCH_MAJOR, 0, 16, 0, 0); touchscreen_parse_properties(input_dev, true, &ts->prop); if (!ts->prop.max_x || !ts->prop.max_y) { -- 2.35.1