Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1964419rdb; Tue, 3 Oct 2023 06:36:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGwx6jOAki6ghXDPh1OgtV1QB60nwqxif3RjJjxyzQIxzJk1RK1SNAbNSiUWCpyUWcVgXOi X-Received: by 2002:a05:6a21:7983:b0:15d:8409:8804 with SMTP id bh3-20020a056a21798300b0015d84098804mr10968798pzc.57.1696340185502; Tue, 03 Oct 2023 06:36:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696340185; cv=none; d=google.com; s=arc-20160816; b=RfBtC3fpP9/3K3ieH16pgjbDr7WrBxQShgyi3vxLbpgJuZ8d7+Utm9QjRuYPVi/Cl6 nRTA1FjMzsSWqoI/8HlPECIktgqOruKfW0eijQXnZbYQwXznb2u0gN7roDPyz1oddN9j B2AqhM3qyUxBACYbFGqrJIR0gKINeMSDQ2CKcYULQE4u/YVue1LcKCQ+2KAgNJZO9fzf /4FwdeTgV6sphsjLjHhjtnBqefCWFcT8aG0OW7MiL1ryesvyiJ2NPcKRiA83HqT+Wvp4 S5TuF0x1MlTgWnxhXA/QK5Zcnp1RYsUv/zbuf8lk+S8eyfgdLELh8q8pf9C9n7LFMYQS XrpQ== 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=sSWXFK5fznh9k1wuhf10rBvApinHNhYCMSoTw3z7xE8=; fh=mNs/Vqipuht+rh/gFdXbaGnNnLCmd8X88uvE0OBXPUs=; b=uyrl87xms3IK5rbPuYos3Pzt+smgPayy05pmfp3wb5NyMWE42dxwaZvGcwK5dnYoE1 PBAbYmdUJSn7Y1UDDMDHDzCBe+bt//UKxmMhnUH9JuRgMzKGeNcbiqsyNAmSosAZQvQK JaIOd+ic4FMbpDFf5BAbxEb53K3P7jPs1c9v+SAU1muLySAKINzGtXyHZ/TWFJeqaM5T oV5fkZCljE0QtBQcPSvaxxLR14AnCEWEoneTu/NxIxnIhh/UO6J65Rh5ettix3YFTpSr MiZ7aPKHXLP6i1YhK/0a1uGWVZqBmWMP4MG51W5NxAE4D4gntRNzmB2uIpMcYsKzAwuY 0NXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gimli.ms.mff.cuni.cz header.s=gen1 header.b=NtlRk73e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gimli.ms.mff.cuni.cz Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id q22-20020a056a00085600b0068ffeb6a949si1531998pfk.73.2023.10.03.06.36.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 06:36:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@gimli.ms.mff.cuni.cz header.s=gen1 header.b=NtlRk73e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gimli.ms.mff.cuni.cz Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 48AAF80B630C; Tue, 3 Oct 2023 06:36:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231910AbjJCNgP (ORCPT + 99 others); Tue, 3 Oct 2023 09:36:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231852AbjJCNgO (ORCPT ); Tue, 3 Oct 2023 09:36:14 -0400 Received: from nikam.ms.mff.cuni.cz (nikam.ms.mff.cuni.cz [195.113.20.16]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32EB2A6; Tue, 3 Oct 2023 06:36:09 -0700 (PDT) Received: from gimli.ms.mff.cuni.cz (gimli.ms.mff.cuni.cz [195.113.20.176]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by nikam.ms.mff.cuni.cz (Postfix) with ESMTPS id BABFE284EB5; Tue, 3 Oct 2023 15:36:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gimli.ms.mff.cuni.cz; s=gen1; t=1696340168; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sSWXFK5fznh9k1wuhf10rBvApinHNhYCMSoTw3z7xE8=; b=NtlRk73eviFn4Dabz7c0+xb9RPqQSxQzR0V09dD0gYB/Eg2l2AruAFr/kWJS5xdU1Tla+Q dFDWfyktBnKpl9FuiBSaJIBI8tAhgAJLZQpUUDDvsjeU0hYy7IQ33lEu3GWHw2ui8qXWk0 I4n/SJet8r4JVv5nE8TUE5Us2MWAQWQ= Received: from localhost (koleje-wifi-0029.koleje.cuni.cz [78.128.191.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: karelb) by gimli.ms.mff.cuni.cz (Postfix) with ESMTPSA id 69792441AC5; Tue, 3 Oct 2023 15:36:08 +0200 (CEST) From: karelb@gimli.ms.mff.cuni.cz To: Markuss Broks , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Henrik Rydberg , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Cc: =?UTF-8?q?Duje=20Mihanovi=C4=87?= , Karel Balej , Karel Balej Subject: [PATCH v2 1/5] input/touchscreen: imagis: Correct the maximum touch area value Date: Tue, 3 Oct 2023 15:34:15 +0200 Message-ID: <20231003133440.4696-2-karelb@gimli.ms.mff.cuni.cz> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231003133440.4696-1-karelb@gimli.ms.mff.cuni.cz> References: <20231003133440.4696-1-karelb@gimli.ms.mff.cuni.cz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 03 Oct 2023 06:36:16 -0700 (PDT) From: Karel Balej From: Markuss Broks 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 Signed-off-by: Karel Balej --- 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 07111ca24455..e67fd3011027 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.42.0