From patchwork Tue Jul 12 16:33:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 12915325 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 24474C43334 for ; Tue, 12 Jul 2022 16:37:02 +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=uo5Q2IZRfoo1cxmUaZ8pUyy15CUO2SxqAJLAvaa4voA=; b=YgJqmNxEc3hHGA ABf1gQwMS21sj5y8eKqO5vXwduABNSquLfKyBNuW4fuD5+RYkTx4VhLuzfqcUrjcPco4i+4jYcWKy NIxMJKmWvFACrqdxfYr7jtur6dDU4E1sUS5/JUQh7EDK4CT0KEojgMzW/LFCnvWt4tBjSutr2FPik IKjy45892qWyalOxJ/okieDAPs7dchojZ3DbekvL9QyfZhDVQFTmOWy2Y7xXjgkl4JKlDF/UCTtg4 SFTjTea4z5xhNohN9L8x+ZU0Z5ccyJsQuJs0/Mkaq8OfU0eqw4OXKNHqoebhLaUsq1lWr7VANTp4c T3c18kHYsRooaJO2NTnA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oBIrV-00Cs5u-0V; Tue, 12 Jul 2022 16:35:49 +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 1oBIpj-00Cr4P-9k for linux-arm-kernel@lists.infradead.org; Tue, 12 Jul 2022 16:34:02 +0000 Received: from CHE01-GV0-obe.outbound.protection.outlook.com (mail-gv0che01lp2041.outbound.protection.outlook.com [104.47.22.41]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-39-VgJdKDDGPzm1-LsY_lWKuw-1; Tue, 12 Jul 2022 18:33:54 +0200 X-MC-Unique: VgJdKDDGPzm1-LsY_lWKuw-1 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) by ZRAP278MB0173.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2c::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.15; Tue, 12 Jul 2022 16:33:48 +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 16:33:48 +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 v2 0/5] mfd: stmpe: Probe sub-function by compatible Date: Tue, 12 Jul 2022 18:33:40 +0200 Message-ID: <20220712163345.445811-1-francesco.dolcini@toradex.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: MR2P264CA0128.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:30::20) 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: 3ab04184-025b-4c15-3fbc-08da64244c09 X-MS-TrafficTypeDiagnostic: ZRAP278MB0173:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0 X-Microsoft-Antispam-Message-Info: OMFxFegHK0/uTAiqqIwvy6M1oWZjTLJLkZm+gD7LNrIZFPYaPR8mio40yZEJqq/P2/BouEPufYcCdr517MNxCKwwnmZ5DUgqTL5TEFfrwfeiEuAVHpvi5RRt9DRnf8AzdAiziL+ETwoNVX0FNWtb9Qj+Nu+iBOuDH4AnptWq4zNC5SUJgx40O2OptcSFYcXDSVMV4o3j18xgv+/lIXffVgZN4SMOMn7xjc2INvEz1ShL7KZ4fq3+RC7dzPw1DRv+To29NNIKvNu2NfyEJ51z0V78Vjq4hYc4BLOs9RO4EobQk2dkFWe6yxYwCt36d30ta+ZH2LxlReZucCDIiEcWsOJ3xhwb48WbVFjwsMvqN4wELsB56V+yuyC7wKV8eXsLWkJ99DTtfioeoOmzgLPH1zyT7iNRZ7x1pzgarkjwIt5jgDL9wdkE14QxD1pUvfBsLxN8QGgk+hNdZX/e2j+KYKYQg17+a3KTxHbkujj9PVVcLLN7SYF7cHmAQNGEPfmhcSjM4W+vY05c3CWZMBL+wG2kIdbfksuY9XfNOGiMjQh5m9ngDlZQ4XHJ13MWTP0hpf6iycAK+2eK4Ec2Rpqw7oNQQhesEobXZt+6JGIVFasKf+CkUOHycQ2KyKuqT5Mi0q6vl+z5+3XzwP9ASUf9ZiuYt3q0QisPKEWAQJBDREqnTnXiHE3PrhMCOZYsjzPV1gJ5Xz4TAkkKO5dvij49CR8TKxjZjxfkkYtM8aa9oUxUjoJZJYdmbnDMacVmsZf0tyZA4KK8iznwy6yuIRk1N/KPRe1BuGi0dg1vYNYmX+zs9xH9crleefKDmvPvVxrmYjTVjYE6UfAr9gzkvxVwartB/reab2yk2rL184g661c= 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)(39850400004)(376002)(346002)(366004)(396003)(136003)(478600001)(44832011)(6666004)(36756003)(6486002)(966005)(8936002)(41300700001)(83380400001)(54906003)(7416002)(110136005)(316002)(5660300002)(2616005)(66946007)(26005)(1076003)(66556008)(8676002)(6512007)(186003)(52116002)(4326008)(66476007)(2906002)(38350700002)(6506007)(38100700002)(86362001);DIR:OUT;SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 1Ts+Vno0wtMtrwKFqpb9t6F8Deo/DL8gO2uG+BLmkfHDdfsK2e28KD6k6Tc7xLCyLBzuHhM/27T7GL44VeZb8ryx2tMHwqASbmFu3AsQ+VnfqqYdd5kuaVP16N63WUrFZdUYLLJBmCbXcREJ2exWtd8h9kIXB7rHCNWdhCTcrZ5Mpwl0zmqbkyGKFyJ0ZUIdDb54U+U1guyJaVLwTHGcWD7EFJiwL4upVY6ChW+1SHMlQ0xPfEsoGd80XEX79EWpjECMiYfkmX3Zqut1bt0k+RxVEqrXxFOjy3CbGXjVsFJd3aillgqcKEz3epK4aU4nD36roIVLUm5m7IsZkETDgJ4DAlDmCfI4kmEiZ5W0RVmqHMs7y0dIMLbbDT9vhAqI5YnNC+HP3xRf76YDWItPqQmwUh26qYZ0ReWh1OuxvIhFariSKeP7p9ecywnHwNaGVKliS4neshsweMXY0dbC/jTYkXg8Y9SnetiIi8k5kO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aoq/+tZn4CLE+9mdW32u/x2k+/YDBXNqncI/O6XmxgjWN/Gh2PCg== X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3ab04184-025b-4c15-3fbc-08da64244c09 X-MS-Exchange-CrossTenant-AuthSource: ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jul 2022 16:33:48.4538 (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: 3+QUdCX9lgeKAB3WU+pFG8xJTbQQpZT2vMkUkpDmKqVXZOWJDbyOIwNsZp747rOLLlNib4csec1G0iBFmT2FmL13trr5ypdQg5EdCre45SA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: ZRAP278MB0173 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_093359_698129_46B1EB41 X-CRM114-Status: GOOD ( 10.15 ) 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/ Changes in v2: - split in a separate patch the removal of rotator from probe - remove define usage for compatible strings Francesco Dolcini (5): mfd: stmpe: Remove rotator block from probe 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 +-- .../devicetree/bindings/iio/adc/st,stmpe-adc.yaml | 3 +-- .../devicetree/bindings/input/touchscreen/stmpe.txt | 3 +-- drivers/mfd/stmpe.c | 13 +++++-------- 4 files changed, 8 insertions(+), 14 deletions(-)