Message ID | 20221118182103.3405-3-linmengbo0689@protonmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp343972wrr; Fri, 18 Nov 2022 10:23:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf53Jlagd4atNkgWQicmOOCjQEFRH/ve1a4ICHHbdWwoHBnxY4DPLmn+S7NjRhrgundoYAlh X-Received: by 2002:aa7:8d01:0:b0:562:83c1:59e0 with SMTP id j1-20020aa78d01000000b0056283c159e0mr9054847pfe.34.1668795790357; Fri, 18 Nov 2022 10:23:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668795790; cv=none; d=google.com; s=arc-20160816; b=ZXmgZNrTUTZVDOQrLWdV4UnZ0OSN4YOM6x3FceXDE00QwmjJq55E/RBEp3OF8Zm5sv EYVFaU42NQbdXJvB5EIZok5TMOaR1GuZZeff5ifjuWEa9I8X13g4FpdEVJOJk0dNH1TD dC0B+h1IpPP4q7R20Rl3SE4akXVqor2ZS3lMG7vetQFuIf1tEnjNy1s6s4Kxk6iSVZgN oxeAM3fVjQj7PvJER5o4R+hi5onVXrLLI7f+xrNim06CoiPNPr3rFhU0BLWQYNXLLAJV KcnUxBbjAJEvPCSv6f6U40Z3CRz5NgUL3pWzQfTzhhWq/zGtSh+4WlYFy1w+diM3Gw5q smTg== 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=4aGhH9EhVaylkFLr9Cl301UNeKoyJLsI4X3gUZFSH9M=; b=zgXYEpNWUWzxwzHCJ2zSZdxlUaeUqrolWK3WpVr5Cum8mVZWAZRLl2d+Jvb2n6vdVs IkXnplPMyCOzqSgDXdbYs3dAw12H8J69RT8IbT6861IT1yffHnIttW1FMSrTD5pX+ogS dLelH+lH5GcfWjRnDohmg9G8Cc/eLFmaOJEGZvn14gqF+zQLBp8GpTw8Mgo1Kb9TtRoO zj8UMXEKu1zjLdVPGy8OzCn90Wm4TEJXmVZCFa6KVwfL9x9mQ9NpFQfUuWfSzzp3Gx+W khkWU4BQsAHb5WcVZYukwJsnSKk4jYF+hjlAMUZCcQMY5Boo9kXg2ruyDCtLJELIyQkV 5UzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=Z5HVHKGD; 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 u14-20020a63790e000000b00477341c0e62si1556822pgc.721.2022.11.18.10.22.55; Fri, 18 Nov 2022 10:23:10 -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=Z5HVHKGD; 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 S242640AbiKRSVy (ORCPT <rfc822;kkmonlee@gmail.com> + 99 others); Fri, 18 Nov 2022 13:21:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242584AbiKRSVu (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 18 Nov 2022 13:21:50 -0500 Received: from mail-4325.protonmail.ch (mail-4325.protonmail.ch [185.70.43.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5FAB7DECB; Fri, 18 Nov 2022 10:21:49 -0800 (PST) Date: Fri, 18 Nov 2022 18:21:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1668795708; x=1669054908; bh=4aGhH9EhVaylkFLr9Cl301UNeKoyJLsI4X3gUZFSH9M=; 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=Z5HVHKGDen/kzJHlqMSklLwNX41bXVqxyGPXLYKWygFVqURHUnbdLDs1VBD+MX1/3 nchNN+godIa5cgNoazTOpsyZGdiGyfhS5fzP5xj9pJFlkx89hiLyF2OtI7hFDrybeZ +fCNGDuCPhgbHxPpol81P8tcn+DYMSS/vai5TxpQhaD7AqwjyCDZbYT0FZE6Xa1jcP 6BsZrLKqR06JkZ9lPYhB168Q5wWlT1kXIVHJTSmau7yUom7Uo+MywpGRLbQNgW8t4a tNYK9zIP/radRqL6skV4JFdi3Yy5PLcSq+H5LQf6j99cLs7LCy6DR4j2TX+/nqeJMy 47FFiqmcI7czg== To: linux-kernel@vger.kernel.org From: "Lin, Meng-Bo" <linmengbo0689@protonmail.com> Cc: Markuss Broks <markuss.broks@gmail.com>, Dmitry Torokhov <dmitry.torokhov@gmail.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Henrik Rydberg <rydberg@bitmath.org>, Stephan Gerhold <stephan@gerhold.net>, Nikita Travkin <nikita@trvn.ru>, linux-input@vger.kernel.org, devicetree@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Subject: [PATCH v2 2/3] input/touchscreen: imagis: Correct the maximum touch area value Message-ID: <20221118182103.3405-3-linmengbo0689@protonmail.com> In-Reply-To: <20221118182103.3405-1-linmengbo0689@protonmail.com> References: <20221118182103.3405-1-linmengbo0689@protonmail.com> Feedback-ID: 40467236:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749859215089122371?= X-GMAIL-MSGID: =?utf-8?q?1749859215089122371?= |
Series |
Add support for Imagis IST3038
|
|
Commit Message
Lin, Meng-Bo
Nov. 18, 2022, 6:21 p.m. UTC
From: Markuss Broks <markuss.broks@gmail.com> As specified in downstream IST3038 driver and proved by testing, the correct maximum reported value of touch area is 16. Signed-off-by: Markuss Broks <markuss.broks@gmail.com> [Change from IST3038B to IST3038] Signed-off-by: Lin, Meng-Bo <linmengbo0689@protonmail.com> --- drivers/input/touchscreen/imagis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Fri, Nov 18, 2022 at 18:21, "Lin, Meng-Bo" <linmengbo0689@protonmail.com> wrote: > From: Markuss Broks <markuss.broks@gmail.com> > > As specified in downstream IST3038 driver and proved by testing, > the correct maximum reported value of touch area is 16. > > Signed-off-by: Markuss Broks <markuss.broks@gmail.com> > [Change from IST3038B to IST3038] > Signed-off-by: Lin, Meng-Bo <linmengbo0689@protonmail.com> Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> > --- > 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.30.2
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) {