From patchwork Thu Nov 17 16:35:08 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: 21818 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp505300wrr; Thu, 17 Nov 2022 08:49:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf4Trx1iO5tIfklf+bgBN4aM7HVIAa+k/XZp0gXX0FTRVP6TfP/y8arGby6VN4MPEqIv0EPo X-Received: by 2002:aa7:db18:0:b0:467:e2dd:b593 with SMTP id t24-20020aa7db18000000b00467e2ddb593mr2888820eds.378.1668703768280; Thu, 17 Nov 2022 08:49:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668703768; cv=none; d=google.com; s=arc-20160816; b=wRrwnGDgfYOejTbk4OL18jC/NIKcTXzQ+5rdHePRlBaiPTlghbQ8j0xtQE9u3TkLhu CiOPg/uaN9AzjMKt1ToePmbuZ6wMhn5cgZz1trcGLqkLKReL9XXwOWCyMsG/pu5mTSCr KZF/OlaujjMwvmnYjJSaFQ313awC0FZYtgpJrAOT321RdD8+q8ZzBUymdft7YC9AQC9k VF3rc5N6aygBe6/hETTux+MrqkIwJzdyPCpMakgWyGXmkCfL2NwGzccU42QUMeUftwXg EDm4e8uwEZnRkHI3uUSdLpIgK1jXGzjoyPeay4jFZErVaifxocWJY6yKt7py1wi7/qv3 x2+w== 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=VHucwfViduh3+RFUC8eG0ryp6Pf2HWFeDne7E5swuJNaqA/HN1/cABJwY6GXSEK4ks Hmsmwrmug1mS8PD9eXIgTkl0dTgS/ws0aorEsCarMgpf2euIYHZUKZBHdO/L0EGVVulR 0o7Oj+xlDTw42gWbyGQHa+qIHKBU2kb9805R2MrgxHfmjb7MFcv94PFZIb3wmUavjjsA GrQ6suyrsagejGvUbUUHvZBMdI2QvrQDRDwwLW7I/MZ5/NswCdmrDvBN+eRHJQsENJsS kN1OR0gFX4/9vIjRw8ctArFWY57mg9NedteZC8TGCfW3gUWIzY9mjeZvXtbJgTtoMaxP IM8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=gwkXwMZw; 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 b5-20020aa7cd05000000b0046443638c9esi1113766edw.262.2022.11.17.08.49.01; Thu, 17 Nov 2022 08:49: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=gwkXwMZw; 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 S240753AbiKQQgh (ORCPT + 99 others); Thu, 17 Nov 2022 11:36:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240609AbiKQQgN (ORCPT ); Thu, 17 Nov 2022 11:36:13 -0500 Received: from mail-0301.mail-europe.com (mail-0301.mail-europe.com [188.165.51.139]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EF8B73426 for ; Thu, 17 Nov 2022 08:35:20 -0800 (PST) Date: Thu, 17 Nov 2022 16:35:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1668702916; x=1668962116; 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=gwkXwMZwxr4Avx4oXTOoKywGukieqd7ts3LOAGkWKLd6fsJJzdyBPn099Y4jm/2KU v5hbnHhlv5LIumBS7L5F9JGJzfsvGI6iCTGRnv2Wzlsn4U2jySV6RYjCtuSGfkTgvi o0KxlyrxWicBL50lDvJQdOLK2uvq8magN75kPT0BXvR7N/7vfxnAydfpYgJGfQyowh Fb9GMxLZx7kBSOZCSzY0jsGiBSDm9WnuUVh6pTaG4pi7iYHzVXgNUVHwi+DxDptDHm /ZYwSNDKRcBFlCPIKKC82cK5QR1tH+AcZExLRGdWXhMJz5Xax+3gvUDfVpaVfUwd+9 TllrvZV4mDkoA== To: linux-kernel@vger.kernel.org From: "Lin, Meng-Bo" Cc: Markuss Broks , Dmitry Torokhov , Henrik Rydberg , "open list:INPUT (KEYBOARD, MOUSE, JOYSTICK, TOUCHSCREEN)..." Subject: [PATCH 2/3] input/touchscreen: imagis: Correct the maximum touch area value Message-ID: <20221117163440.23394-3-linmengbo0689@protonmail.com> In-Reply-To: <20221117163440.23394-1-linmengbo0689@protonmail.com> References: <20221117163440.23394-1-linmengbo0689@protonmail.com> Feedback-ID: 40467236:user:proton MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749762722381301615?= X-GMAIL-MSGID: =?utf-8?q?1749762722381301615?= 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) {