From patchwork Wed Nov 16 21:16:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Knecht X-Patchwork-Id: 13045865 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 BFBC2C4167D for ; Wed, 16 Nov 2022 21:17:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233712AbiKPVRA (ORCPT ); Wed, 16 Nov 2022 16:17:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229931AbiKPVQu (ORCPT ); Wed, 16 Nov 2022 16:16:50 -0500 X-Greylist: delayed 10740 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 16 Nov 2022 13:16:48 PST Received: from msg-2.mailo.com (msg-2.mailo.com [213.182.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96F304C258; Wed, 16 Nov 2022 13:16:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailoo.org; s=mailo; t=1668633397; bh=a9KYl1hIoBIvL/U20k0sy5lGRkz1Wjptty6bd6cHvaw=; h=X-EA-Auth:From:To:Cc:Subject:Date:Message-Id:X-Mailer: MIME-Version:Content-Transfer-Encoding; b=alsFQWzlcynUT9NOYcOgTHGgXhAJFF9oZsXszQFUGVu992kSCjWuNnmQiPXt2v4pK SUPKJOsBixG7l4j1DMGN352f28hjLwHWL1T2z6V0s1Y4LcMGoG0FDYXmU1aRDIQJR4 i1sDJ2BK3zp3PrGPY5gGp0UNWGhDvHyG7qkq8xUw= Received: by b-1.in.mailobj.net [192.168.90.11] with ESMTP via proxy.mailoo.org [213.182.55.207] Wed, 16 Nov 2022 22:16:37 +0100 (CET) X-EA-Auth: uD+aQfuNBm/LqnABbr3Z0uz4NmqWq5ah2sr48xayCWyEU7CEcCNESIjFTPXu3QQahqr3/+CrAB+zNOu7VJtBDWE7jFUZMpwxGimeb5RRoLM= From: Vincent Knecht To: Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Vincent Knecht , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: w.david0@protonmail.com, stephan@gerhold.net, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Subject: [PATCH v6 0/2] Input: msg2638: Add support for msg2138 and key events Date: Wed, 16 Nov 2022 22:16:15 +0100 Message-Id: <20221116211622.2155747-1-vincent.knecht@mailoo.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org This series is the continuation of v4 [1] from which the first 3 patches have been merged already. v6: - use property_* functions instead of fwnode_* (Dmitry) - use %zd format instead of %ld to print ARRAY_SIZE() (Dmitry) v5: - keep only the non-merged patch - remove double-negation in call to input_report_key() (Dmitry) - change keycodes retrieval to use device property API (Dmitry) - due to previous point, add a check and a warning if more than the supported number of keys are found. Should that happen, ignore the keys in excess. Vincent Knecht (2): dt-bindings: input: touchscreen: msg2638: Document keys support Input: msg2638 - Add support for msg2138 key events .../input/touchscreen/mstar,msg2638.yaml | 4 ++ drivers/input/touchscreen/msg2638.c | 57 +++++++++++++++++-- 2 files changed, 57 insertions(+), 4 deletions(-)