From patchwork Fri Nov 18 18:21:39 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: 626274 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 97AB5C4321E for ; Fri, 18 Nov 2022 18:21:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242608AbiKRSVv (ORCPT ); Fri, 18 Nov 2022 13:21:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241807AbiKRSVu (ORCPT ); Fri, 18 Nov 2022 13:21:50 -0500 Received: from mail-4319.protonmail.ch (mail-4319.protonmail.ch [185.70.43.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5F4F725D7 for ; 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" 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: [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 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Markuss Broks 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 [Change from IST3038B to IST3038] Signed-off-by: Lin, Meng-Bo Reviewed-by: Mattijs Korpershoek --- 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) {