From patchwork Tue Apr 11 21:16:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: hrdl X-Patchwork-Id: 672519 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 1ED48C76196 for ; Tue, 11 Apr 2023 21:17:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229793AbjDKVRU (ORCPT ); Tue, 11 Apr 2023 17:17:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229773AbjDKVRT (ORCPT ); Tue, 11 Apr 2023 17:17:19 -0400 X-Greylist: delayed 255 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 11 Apr 2023 14:17:17 PDT Received: from mail.hrdl.eu (mail.hrdl.eu [IPv6:2a03:4000:2b:163f::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E10FD3594 for ; Tue, 11 Apr 2023 14:17:17 -0700 (PDT) From: hrdl DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hrdl.eu; s=mail; t=1681247833; bh=+DuBYPKSy4J8nHk/s/G6sZBEUzxszmwy5VNNS20ybWc=; h=From:To:Cc:Subject:Date; b=MOjyZ0H8ZliQN0PSm9KKM+YzY99Fii9SepE2W/mKTiuKtsF0A7saa1dzd3nuPsaSr 3GPVy26mL7q4vm87BeZEEeDonIxBU7GjAyNNMMPI8KfZr8VQuyH3pooMbAo2xdCHBz f6l3XbiVGpV70LpxNdmrcFFmBdm/kfhvZs9kablk= To: Linus Walleij , Dmitry Torokhov Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Alistair Francis , hrdl Subject: [PATCH] Input: cyttsp5 - fix sensing configuration data structure Date: Tue, 11 Apr 2023 23:16:51 +0200 Message-Id: <20230411211651.3791304-1-git@hrdl.eu> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Prior to this patch, the sensing configuration data was not parsed correctly, breaking detection of max_tch. The vendor driver includes this field. This change informs the driver about the correct maximum number of simultaneous touch inputs. Tested on a Pine64 PineNote with a modified touch screen controller firmware. Signed-off-by: hrdl Reviewed-by: Alistair Francis --- drivers/input/touchscreen/cyttsp5.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/touchscreen/cyttsp5.c b/drivers/input/touchscreen/cyttsp5.c index 16caffa35dd9..30102cb80fac 100644 --- a/drivers/input/touchscreen/cyttsp5.c +++ b/drivers/input/touchscreen/cyttsp5.c @@ -111,6 +111,7 @@ struct cyttsp5_sensing_conf_data_dev { __le16 max_z; u8 origin_x; u8 origin_y; + u8 panel_id; u8 btn; u8 scan_mode; u8 max_num_of_tch_per_refresh_cycle;