From patchwork Tue Oct 3 13:34:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Karel Balej X-Patchwork-Id: 729106 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 677E8E7AD46 for ; Tue, 3 Oct 2023 13:36:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231959AbjJCNgP (ORCPT ); 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_Mihanovi=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 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org 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) {