From patchwork Mon Mar 31 10:45:02 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommaso Merciai X-Patchwork-Id: 14033469 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 aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8E170C3600C for ; Mon, 31 Mar 2025 10:47:11 +0000 (UTC) Received: from TYVP286CU001.outbound.protection.outlook.com (TYVP286CU001.outbound.protection.outlook.com [52.101.125.35]) by mx.groups.io with SMTP id smtpd.web11.48834.1743418026199439781 for ; Mon, 31 Mar 2025 03:47:06 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@bp.renesas.com header.s=selector1 header.b=ZR0Iykmd; spf=pass (domain: bp.renesas.com, ip: 52.101.125.35, mailfrom: tommaso.merciai.xr@bp.renesas.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=BrDuQEavcYAg44S5gxjQrm6vDKjpxqmtchl8oPxn/+dkioJk5HwlnVLv9naD3T6klmT3rlIcD+4vk4o0SpcJ7QMcZVr7oQr+r8b4voJfW1q6Ipi28jNVT/t2N7PW4yXIWPwSVEGu1nO8KNq9QOqI0auZXUlxnsh2+qlK1JnToLsxYXs5u6RG6fm8zxXGiIXxmeIl7q1aZgPgpteOu/otRBZfZzKKsqYSd2CxTgfaxLjWydy1Os/u8Vsr9Z1QlgutQoCIPsJwwOzayHW9O/637FwGGTjIQKOq7ctuG+2+apAUQIgLpp20OLaNHJAxi5FHU79QsU0lNwbEFgKr/JwRlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=9vCbIkSPsmoLUXD1013TQ7PvfHEbj1UhhJ3Pf5W6a5o=; b=Ok7My5WHshnVvLpVMXXUGQ8ZgJJXi+Wt2Vt1PXgLYMlJObyWBcYrgqf6Z2LSEuijjFpyraJHq9tV00lnPA/Ow9OvYAwQ9uUoqLaetypf5kipecvwMpFYSAm2MqQrVEJ6i138MZ8gq1gGQGhcx3PkWG7rnSpLClY6MWnqqcWSE7AUTfk7h2/Pizck9WZVVPcrEF79i+mnv6RgfHAvWBFn921WP6mkNfOA6edEl7NHXid66pgVya+JjDJLfNzB+z1NCC2+E35Glx9FDmZEETT5Q3XRMjKe/nkweOIo/4e1FJ+J5KYWZq2nvHqAVw/JcUfFu43LRnFpxb6/XRQN5Duwow== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=bp.renesas.com; dmarc=pass action=none header.from=bp.renesas.com; dkim=pass header.d=bp.renesas.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bp.renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9vCbIkSPsmoLUXD1013TQ7PvfHEbj1UhhJ3Pf5W6a5o=; b=ZR0Iykmd24kx16nCb+s7vwH5vkCVSTdMCOsc2KXtYiQmmu/j7LfK3KAsZ3BsicTuePlVjRkOzTnrPxn7T+R+g0OBr8aFwcrzwDsXMe5H4cJt7Zi+tsYk8YwcT5/HN+lP6Le5sz2+SwKZxF3QOmSp/5Hzw/o6SkBKWIbpACsOlec= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=bp.renesas.com; Received: from OS9PR01MB13950.jpnprd01.prod.outlook.com (2603:1096:604:35e::5) by TY7PR01MB13744.jpnprd01.prod.outlook.com (2603:1096:405:1ef::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8583.33; Mon, 31 Mar 2025 10:47:04 +0000 Received: from OS9PR01MB13950.jpnprd01.prod.outlook.com ([fe80::244d:8815:7064:a9f3]) by OS9PR01MB13950.jpnprd01.prod.outlook.com ([fe80::244d:8815:7064:a9f3%5]) with mapi id 15.20.8583.036; Mon, 31 Mar 2025 10:47:04 +0000 From: Tommaso Merciai To: cip-dev@lists.cip-project.org, Nobuhiro Iwamatsu , Pavel Machek CC: Biju Das , Lad Prabhakar , tomm.merciai@gmail.com Subject: [PATCH 6.1.y-cip 31/43] pinctrl: renesas: rzg2l: Replace of_node_to_fwnode() with more suitable API Date: Mon, 31 Mar 2025 12:45:02 +0200 Message-ID: <20250331104514.79090-32-tommaso.merciai.xr@bp.renesas.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250331104514.79090-1-tommaso.merciai.xr@bp.renesas.com> References: <20250331104514.79090-1-tommaso.merciai.xr@bp.renesas.com> X-ClientProxiedBy: FR4P281CA0148.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:b8::13) To OS9PR01MB13950.jpnprd01.prod.outlook.com (2603:1096:604:35e::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS9PR01MB13950:EE_|TY7PR01MB13744:EE_ X-MS-Office365-Filtering-Correlation-Id: 98c3a648-f242-41e2-c169-08dd70416018 X-LD-Processed: 53d82571-da19-47e4-9cb4-625a166a4a2a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|52116014|376014|366016|38350700014; X-Microsoft-Antispam-Message-Info: kYgYdzYvueA9oBtKCrwIgYYZY6bAyqXyC9QMixBcUWelWry05rBCujLMovb26ID8kRCVxP4ccTS0wV+TAmmj6dKMEImYJjpVrlSJaFiHcbXBfpbCV/7CliuQ09XiEPEpPdC+aaJ+nFFW8iz9nEkH5uhT2zYGhiOk5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nDIKIYDYzSkAD3CeQ0WNeses1KnAMiYV3FdwdEKiQvHEDOC3EqU7P8jLegn6le5mU5HwRYmlBxyQaolXnXDWRisyEV2Wlj0ea3qlZjRbs8Fu5LdPwDy8kC3BIr/ROdF376F5IzerKntzHJCAsEDU8yZbbbT02mXve8hJo8A81WNLqv/FYaAeuUir03dzDL4EAT35CY8Fn9Bk58dGHzFZYIDUFe04OuG6OFmyk9zAuwo7 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:OS9PR01MB13950.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(52116014)(376014)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: wIHBEsHhL11AGT8eVr8YVRzfBqYjcHVG49K1wOmuXwr2UkHxfvAcOf9ZlqOZySDaiePC9ed8OoVKpaXUWkxzCUrARgmWrzLPtLsPKgo8h8BZ0wqMIbIPqVgbQ7aL0D4iNjPyF5duK1lcUXzNu+7dX5epKfH8A0Org3IO1lXs/Yx4ezq6owMzjT/TJ9joH1t1oXjfvexv21vVKrWnhWlFXzIA7p2Eu7aUgyA76QVc4MkX5ImmfPSeJszgegTUwJt4qev27dU2wycwUcI3+7i414VE2kGOvPWdBhSOYu8JnALvJDigaGi/JXD+fVCmKzAMq7Y6sLKfPPIP85bsYNUDWsH1glCeHTAsBz870YgpLmgkkGTWbKSlEbUOYSrsCmTqgyEYWqmvO/Gjp4yX8FFw9X0lNbt+1lEZ3mxUziGfeZukS49d4eVlIW/vOZiAv//a0FzHAIOI+Su8NWvK7SFvJv+Vk8iFjFMdAxfgcTrXBGT/61lzPApcZLlz7r9ZdmoTanpvBpsjSXoJkXSiz35LgQngf8+Ysh2OknABN8CzVNIkhpxl42gn6BrA7VJXwhMMqIRoDPX1bokUecOe+zfapm2JyQ3WGKXmZMwpmC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98c3a648-f242-41e2-c169-08dd70416018 X-MS-Exchange-CrossTenant-AuthSource: OS9PR01MB13950.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Mar 2025 10:47:04.5086 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: uMh3BzIxlPLpSE89O/UQ4KWTB0pfmLP3Wlf7dXzXVIOwR8GSH3LnIyGCRl6/JwzPXlA0H10DoPxL5O3EBZUh0r4m19a40Y+k3BMGcszdn84rTb7+buUQvd4JUdBlb62e X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY7PR01MB13744 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 31 Mar 2025 10:47:11 -0000 X-Groupsio-URL: https://lists.cip-project.org/g/cip-dev/message/18419 From: Andy Shevchenko commit dad83b9527030e29cc3148f7274910cf40fe7f1a upstream. of_node_to_fwnode() is a IRQ domain specific implementation of of_fwnode_handle(). Replace the former with more suitable API. Signed-off-by: Andy Shevchenko Tested-by: Lad Prabhakar Reviewed-by: Geert Uytterhoeven Link: https://lore.kernel.org/20240822230104.707812-1-andy.shevchenko@gmail.com Signed-off-by: Geert Uytterhoeven Signed-off-by: Tommaso Merciai --- drivers/pinctrl/renesas/pinctrl-rzg2l.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/renesas/pinctrl-rzg2l.c b/drivers/pinctrl/renesas/pinctrl-rzg2l.c index 4c111fb27845c..bd739879055ac 100644 --- a/drivers/pinctrl/renesas/pinctrl-rzg2l.c +++ b/drivers/pinctrl/renesas/pinctrl-rzg2l.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include @@ -2623,7 +2624,7 @@ static int rzg2l_gpio_register(struct rzg2l_pinctrl *pctrl) girq = &chip->irq; gpio_irq_chip_set_chip(girq, &rzg2l_gpio_irqchip); - girq->fwnode = of_node_to_fwnode(np); + girq->fwnode = dev_fwnode(pctrl->dev); girq->parent_domain = parent_domain; girq->child_to_parent_hwirq = rzg2l_gpio_child_to_parent_hwirq; girq->populate_parent_alloc_arg = rzg2l_gpio_populate_parent_fwspec;