From patchwork Tue Jul 12 11:02:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 12914759 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B2225C433EF for ; Tue, 12 Jul 2022 11:04:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=xQ/ntWPYVEutaj/JfGIfffVa5DTORpeAEFJCswsz4Ok=; b=B10RVEEwwlgCa3 x3ZM/7PpyGkgCXc6bk5w7wWVOiF1P3GDfs1HdpObWlMjhHxMJEknyyjXEyoxsHAFszpJMrLu21+Nx SP2euklY0hAvdP4xlYRzlC1F6YJ/JrVFnr/SPipitgty4RJO3A4AQNMuvfLW+fLvFIO32wt8suMaP tUDFOz9Ml2B5bAMaU5ZcZmWPFnex1tcXvwUUPuxgcawH3rwkGAEkyj3TqvogWs7z0+MLlT4PUfbDs khXB8//UQa1v5oAIT7XLeT+YWDe0C/bo1fyEUUF3AflKs3FUMsxat1Prjd3NUoTMZf2o5GROO18/0 n4M6KFYYgKXchPtNta8g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oBDfT-00ADpq-R8; Tue, 12 Jul 2022 11:03:04 +0000 Received: from de-smtp-delivery-113.mimecast.com ([194.104.109.113]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oBDfB-00ADYv-6C for linux-arm-kernel@lists.infradead.org; Tue, 12 Jul 2022 11:02:47 +0000 Received: from CHE01-GV0-obe.outbound.protection.outlook.com (mail-gv0che01lp2048.outbound.protection.outlook.com [104.47.22.48]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-13-8egSj0wXM66e4YchLHW4iw-3; Tue, 12 Jul 2022 13:02:37 +0200 X-MC-Unique: 8egSj0wXM66e4YchLHW4iw-3 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) by ZRAP278MB0317.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:28::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.16; Tue, 12 Jul 2022 11:02:35 +0000 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::3d:ca30:8c24:1a95]) by ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::3d:ca30:8c24:1a95%7]) with mapi id 15.20.5417.026; Tue, 12 Jul 2022 11:02:35 +0000 From: Francesco Dolcini To: Lee Jones , Maxime Coquelin , Alexandre Torgue , Rob Herring , Krzysztof Kozlowski CC: Francesco Dolcini , Linus Walleij , Bartosz Golaszewski , Jonathan Cameron , Lars-Peter Clausen , Dmitry Torokhov , linux-input@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-iio@vger.kernel.org Subject: [PATCH v1 0/4] mfd: stmpe: Probe sub-function by compatible Date: Tue, 12 Jul 2022 13:02:28 +0200 Message-ID: <20220712110232.329164-1-francesco.dolcini@toradex.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: MR2P264CA0155.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501:1::18) To ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 98b4f078-4d66-45f1-0544-08da63f6063d X-MS-TrafficTypeDiagnostic: ZRAP278MB0317:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0 X-Microsoft-Antispam-Message-Info: 7TlWnweyNgBozulw0oJRj3XllAaJA22S/jUKNZVzFtxzFkdiC5hikR/w7qq4KVeJVdbL4gfJItbC97A3MzTZ/yVhjiycDlS19n0Lc/VLVE87/Oep5q+e6qJERSgLZofAWpdKYnz1FMeu2GQHQ017WrONagvmB2/yoK5xPk0u+QHBrl9tmTf+j5Gua3fZBH87Ae256bh1r9XCamAJit979O2xTdUKcImWV+qhDlhVMpK37LMuswBbxMnucTzIeOb5yE7KmUPcuiCcvxbeUz8QKWXeVl5tCygASMLS9Szbj1nZ9CgCdONNtJD2NSreMQONBIDbZMYo96qcPnuJ0pGD/iTJetZ4ABjkCW7BrOOjqRkw8S1RBegs+WApoMudabQ8fPAba+ud9EecuaPndUt7oBydYfCQl/XLNRS3FdwogYxQq+7duzCA5EaCh272P3qCn0DJ/UhD3IXDNGhsW9TGFga6Jz/XOF0d4RGHvXOfEoA56BNSp2D0p0eWaZEw6ZrWRU9kd2nkOWeca3bGnorg4efWinNbGYT4IaiIrY20xWsXmX8Tw0vfBIcMLN6K2rJ18WUrssaYEHYCurdPpYJlnIsgshFYjsf0mRyfXR2FmBTGsE/0XCL4BIBf82IkaC9YGcMxJP6pmHvYF3sIqnUExb7PjD4pB9IScd/kr5uJ6Sk4JKqv1nE4cFI+nU92J41W5hSnfyP8kESAKJRjbXN+MRb+J065veIMSQ0yhh1Q+okYhrETdfGfEKu4aqzvt2ah0hvBHF8bHMHh+nNiB6g/O3u0TXGSB9r7u+bW4snWcanEkjbK9E9ApgUNR/oD9nS+4e8eVJmfFCSyr5SjHFLKF8iCneGxBFlBCJ/3V+69SqA= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230016)(4636009)(346002)(366004)(376002)(39850400004)(396003)(136003)(66476007)(38350700002)(1076003)(52116002)(41300700001)(38100700002)(2906002)(54906003)(186003)(6506007)(6666004)(44832011)(36756003)(7416002)(66946007)(316002)(110136005)(8936002)(478600001)(5660300002)(26005)(86362001)(83380400001)(66556008)(8676002)(2616005)(6486002)(6512007)(966005)(4326008);DIR:OUT;SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 6u4bJOghPj68epIr1gEzdkYM6s0guGnmOAVKOXHxceNFrlhxT8rate3j9jSr+4AEq9zLAvKTqXXcjOFlPOxF5c/lv4HVxnBfGcJ1xJ2O090qKTV95AWPCw23AmHPEel/SravNh7ZmHld8gbk6SSt+QNfZA6rvHKeRptVcKqbGgebNBKDDYuxaUq6PmqL+vn2jxsrpKoXV+Pg2vNUn645TaGEZ7OzcA4pOzKbOxGA2brt+Nq59JnUu7oKnW1q8f4DbWjq3/A6nE9FdjhBYxLo963cXH7PErxajiRjSacIFPagSRFDrjeRt+Ca5qwJKY0skG0wKsBZXO2i72u36MQPN51EvwhRAESOdVT5zuVVGty+NnbGS/Ml738TQrZg766k5r2xGMPfOmhWqAnECdItjtGJ0Q9C88tadksMpZjHD41304lERB9BHXQawP9nQDnq3uhb0dMvI+OwdWnod4h4Z4QySCVpAp5Palql2iDAwccvhjjFY0/CpSjVD2XaHwwpvXpvyaJ4QMBRFoXwVk4EkTxvm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DbVCiCQ88fBw== X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: 98b4f078-4d66-45f1-0544-08da63f6063d X-MS-Exchange-CrossTenant-AuthSource: ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jul 2022 11:02:34.5051 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d9995866-0d9b-4251-8315-093f062abab4 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: BdTwzhkTSKyZSKkn2eGA9TTDGz8aIydtnh7ltMkmsozG7APWGiNq12JUejio1kkqpDYOt3NcBbP1m4Eu9KuaSvr7skzg7Tydg6d0oZnBmUU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: ZRAP278MB0317 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CDE13A77 smtp.mailfrom=francesco.dolcini@toradex.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: toradex.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220712_040245_576927_36DDB389 X-CRM114-Status: UNSURE ( 8.54 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi all, This series update the STMPE MFD driver to use of_compatible to probe for sub-functions instead of using hardcoded names. Matching by name does not seems in general a good idea, in this specific case it is even worst since the node name are not compliant to the current naming convention (they are not generic and they do include underscores), and because of that recently we had a regression introduced [1]. This change was suggested by Ahmad Fatoum [2]. [1] commit 56086b5e ("ARM: dts: imx6qdl-apalis: Avoid underscore in node name") [2] https://lore.kernel.org/all/86815346-209e-304e-3565-b4160afa48e8@pengutronix.de/ Francesco Dolcini (4): mfd: stmpe: Probe sub-function by compatible dt-bindings: gpio: stmpe: Remove node name requirement dt-bindings: iio: adc: stmpe: Remove node name requirement dt-bindings: input: touchscreen: stmpe: Remove node name requirement .../devicetree/bindings/gpio/gpio-stmpe.txt | 3 +- .../bindings/iio/adc/st,stmpe-adc.yaml | 3 +- .../bindings/input/touchscreen/stmpe.txt | 3 +- drivers/mfd/stmpe.c | 31 ++++++++++--------- 4 files changed, 20 insertions(+), 20 deletions(-)