From patchwork Thu Nov 17 19:15:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lin, Meng-Bo" X-Patchwork-Id: 21883 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp578779wrr; Thu, 17 Nov 2022 11:17:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf6nwT+ulbPQuSgLja/pum4kZCuYiKx5PNKD9Vxdnd/a3OEg66P+HyKcNdr1ZC6yiX7ToEIg X-Received: by 2002:a17:906:28d1:b0:78d:bc56:8f22 with SMTP id p17-20020a17090628d100b0078dbc568f22mr3144072ejd.256.1668712648369; Thu, 17 Nov 2022 11:17:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668712648; cv=none; d=google.com; s=arc-20160816; b=owNNUNqfzAj5VB21dPllVdoBzPUK5Hz3WcpLDOlZvTh8y9T8pwe+eSzNKBARljCK90 Atvlp9baERis4OmrPCfJJQdMmnGGcdZK9NCCH+zH0zEBAexdX23F5U/Q0h9kDnbFkcif S1hrzu13DizigsyR/tEQOxBLLrlhTokYIM+36Z1NWxQdsu819xXoASjVC6tJQ4lLN7Df yBVIU7Vv0XZaKhM6mO1RaAZCqZZXdO1DznR7Fo3eSXHL4NKM/pSEk29tXqPX2s6Ks5hu /9RiweL9B+afF2zy6zWh3mLAzTpMpXY7zp4TpY8Iz3olBEPuyoExaTNzlp28wSMLsj+i 8H/g== 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 :feedback-id:references:in-reply-to:message-id:subject:cc:from:to :dkim-signature:date; bh=T794GTPNQYc9tJalhy0LCsNElYleSnXWekOIp9tkVi0=; b=sFKkBFogkDSYrWCjESGFSt9NBUYv9ZLx3EbjWuGXzzYTTm93RXm+eAkawl+WtJloF7 QZ/6IHQ0Ln1YMnjUkY/YMeS8oPJ9zvjBCKbSTcc9tALb5p0X5aW8+YlKoWmBIHPTZ7VF pxY8kvsuVpF2db+8CUQgCDlCt+qtNtw6faugMnsEKScsZp3cbNxOgZBpHjKYvO6PmtxR 7zUVS4KaQxGBRrH3h3sMeDBQXYja9Ird0tf/4Q9gutfsD3DBTrrDNT3JHUGJFPHXOh/t o5qQ9KxRGuWbSDODZuyJAEZC21AghHhSS0x3yjZKStqpNg4wO4WW1hqxLrdj5qqrOhLW myeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=IxQ1YJ5w; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cs12-20020a170906dc8c00b0078d805901b1si1295325ejc.489.2022.11.17.11.17.01; Thu, 17 Nov 2022 11:17:28 -0800 (PST) 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=@protonmail.com header.s=protonmail3 header.b=IxQ1YJ5w; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240763AbiKQTPs (ORCPT + 99 others); Thu, 17 Nov 2022 14:15:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240771AbiKQTPh (ORCPT ); Thu, 17 Nov 2022 14:15:37 -0500 Received: from mail-4324.protonmail.ch (mail-4324.protonmail.ch [185.70.43.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F2128A145; Thu, 17 Nov 2022 11:15:29 -0800 (PST) Date: Thu, 17 Nov 2022 19:15:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1668712527; x=1668971727; bh=T794GTPNQYc9tJalhy0LCsNElYleSnXWekOIp9tkVi0=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=IxQ1YJ5wAd8KJ78vIc00OjS2Xh+FtGl1k4Q9GwmnOJxz0WfgISGUPwUWAdSGyzGnt NUcrvqSyd35VvL+y4Wnz7ayE5k4QlG/3e+76AqoxGn0B0Y5PbqzMGX2gXewS5JYgfj 0aa8aQxxt5Uppe55fGBCCbtu0u3BcfKFgNujnFt6RiGycUC8mQrsEeRZmzEzj9K4+Z GcRNl2mN1x42ANtAW3+ELkT07Q2EVv3GsSdUfZKoaNwiAwxbnJRhqPiYb/DvdktISe kIE6FZUyxf2ted3bcb9NKNF+aZhyGbZOCHzT79kulsoc0emFvNa8uaXIWruwK+9HY9 XGVg0+NRV+UFA== To: linux-kernel@vger.kernel.org From: "Lin, Meng-Bo" Cc: Markuss Broks , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Henrik Rydberg , Stephan Gerhold , Nikita Travkin , linux-input@vger.kernel.org, devicetree@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Subject: [RESNED PATCH 2/3] input/touchscreen: imagis: Correct the maximum touch area value Message-ID: <20221117191436.87938-3-linmengbo0689@protonmail.com> In-Reply-To: <20221117191436.87938-1-linmengbo0689@protonmail.com> References: <20221117191436.87938-1-linmengbo0689@protonmail.com> Feedback-ID: 40467236:user:proton MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=unavailable 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749772034101208519?= X-GMAIL-MSGID: =?utf-8?q?1749772034101208519?= From: Markuss Broks As specified in downstream IST3038/IST30XXB driver and proved by testing, the correct maximum reported value of touch area is 16. Signed-off-by: Markuss Broks [Change from IST3038B to IST3038 and IST30XXB] Signed-off-by: Lin, Meng-Bo --- 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) {