From patchwork Mon Jun 3 01:18:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13683208 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 64476C25B74 for ; Mon, 3 Jun 2024 01:18:51 +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:Date:Subject:From: References:In-Reply-To:To:Message-ID:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=6iLNL+o3SzOEYQDpOapUdQA8F/aiTMZt6x+dMmpEgh8=; b=kvB3s51lhACSb0YhrOjpf9J50e 0OIChU5Rp7wziD89wYuf+BnNqj0k3HYJvMnvt+l2zMVru1sqyskD1dXQfXKikwXKY8BvObrOybBpz jJtK8tLh7KPAFs/hT6/bDr2SlinB8PH1OYXr+sZx0Bws2DRyzCdyLJhVrf+gOKhRIo1shya10U+AV NrGYiVMDK/bG0UfZN1FWRa2+whwfyQ/X6qZCnGYelixwM+gmTNOKFvP/AKR2WUfGk8+goxsMu1+BL K397r0okOr8RAyZDYgWytXG6u347L7NObngeoNVYN1tjEcDxgc+sd2h5YsRISg1V2hAYqR6Vrm1yH Ac5eGe6g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sDwLR-0000000FGiR-22jE; Mon, 03 Jun 2024 01:18:41 +0000 Received: from mail-japaneastazlp170110002.outbound.protection.outlook.com ([2a01:111:f403:c405::2] helo=TY3P286CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sDwLL-0000000FGXI-1A1p for linux-arm-kernel@lists.infradead.org; Mon, 03 Jun 2024 01:18:37 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YlAyfg+dNISPkSr4Tb1jIXXCeRTxi4Ez8qZUq/JrJ/qFk/xjkydXQLXQJpmKUMHzFK1dV/SuQ+DDyw4Y84FLHxd5wpaU66PEh9UtiLpYgT8e7/eQomZifxDZmPNSuN4eOUe81o0jMR5SYeelK9iY1469rVRTx/ifUsMpWcN5IKywuYdZEv7YM4F5iJ0h+T8G27wkDzLkQyheJKxP1AbPfAO5uMPtOZ2DqArCIz3q0ps9UdLTSl5OvtFxImZff7LFLOJh1Zs+PwguKTOpt2JH8zHF5o2kPyQhMOPf1hbfBfgcn8NQ5iNeAZ2bYjFz9jzPrD3NFFhbtpocmSLbElhQkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=TzMCVV5NPWYM3brKH+nwYP+wX2ZizcEpv6rpzs6d6YE=; b=TiOzDqoS6xKeWAUgSLojQuQtM/4+dj2/oeOIs6uK0w2VXyFu6oUx7f1IPnu3Ix1V4bC4hmRhuMdsIWtP/8kx5w1QUFnQVq/qarm0SedpqEWsLgtMnp8eF+W+1lcQzZ12C5CjG0wPSmOcCY6/d6oB8wy1SUiS+wHivCYIfybq44MRlV6Q2OWqj9KEhTBb7Dm/VmnpnR8Uq3B+2xzhvpocIu/BnG3ormfHFRUTzNChUSOTNWPZdksbRgdX3EUZiWZWXiqpt8T8JN91Jw0+XMLJ9A3IG41Pkw15GWkGvZyguccawVWQSDnXttyA5A+cWhrrRNlNITCPnIYLcW92Va14yg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=renesas.com; dmarc=pass action=none header.from=renesas.com; dkim=pass header.d=renesas.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TzMCVV5NPWYM3brKH+nwYP+wX2ZizcEpv6rpzs6d6YE=; b=PwxNyStKhJyKCTqkIGcGUAxuu/1QSiRP4ANawQhRtnfjJipV7rWsNMSWAOcu1pjaC52I/ID17jW09bbkNY/VuPEUIXOGOtHKV4dYSvRQh9FG3PpP6LA1SWdSAz2jwQ87Jj/YEBWewuiFd0Jsl2exdCIeVYPJdVxnSFWxrrs8D1A= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) by TYCPR01MB11318.jpnprd01.prod.outlook.com (2603:1096:400:3c4::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.26; Mon, 3 Jun 2024 01:18:33 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%4]) with mapi id 15.20.7633.021; Mon, 3 Jun 2024 01:18:33 +0000 Message-ID: <87mso24ydy.wl-kuninori.morimoto.gx@renesas.com> To: "Lad Prabhakar" , Alexander Shishkin , Alexandre Belloni , Claudiu Beznea , Daniel Vetter , David Airlie , Eugen Hristev , Greg Kroah-Hartman , Helge Deller , Laurent Pinchart , Maarten Lankhorst , Mauro Carvalho Chehab , Maxime Ripard , Michal Simek , Nicolas Ferre , Rob Herring , Suzuki K Poulose , Thomas Zimmermann , Tomi Valkeinen , coresight@lists.linaro.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-fbdev@vger.kernel.org, linux-media@vger.kernel.org, linux-omap@vger.kernel.org, linux-staging@lists.linux.dev In-Reply-To: <87v82q4yg0.wl-kuninori.morimoto.gx@renesas.com> References: <87v82q4yg0.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v4 6/9] media: platform: xilinx: use for_each_endpoint_of_node() Date: Mon, 3 Jun 2024 01:18:33 +0000 X-ClientProxiedBy: TYCP286CA0099.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:2b4::17) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYCPR01MB11318:EE_ X-MS-Office365-Filtering-Correlation-Id: c8d84380-15f5-480f-1037-08dc836b160c 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:13230031|7416005|1800799015|376005|52116005|366007|38350700005|921011; X-Microsoft-Antispam-Message-Info: 9mFvZoBcltZGuzjnRd/agLOsyrABtWRltVxn8aW9Vvl9mviwU3WWfh70nNVTi5XRd8RFbj4BMCBoxwu0iEuKXCYo4CHc/I0advJXDsDOgPNNkb10DmyneAAxAaNPVfYIHRh8f9mKprZW0/y4IoT4nwr8TkDnKds/LPWuEVyitO1+wthoyDq5FAxlIY4B7UYD0GWhrpu5S/1dRd+4v4QjxIfA1uPdNHb153v5x5mAIgJP3vBACxaX0lgGBcOf3G6tjakCqT3KCEKhGnnR91nn/rdNWXDzdztknbHUP1f3U4NXpGm3bkHjrHCZyPaTi13tNNIv/aT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CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYCPR01MB10914.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(7416005)(1800799015)(376005)(52116005)(366007)(38350700005)(921011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: A0R3aZb6jWjR0PTSmYPYTok1XvZhJVROBsAVXoxgh4N6k/yg2OAu5AnOuiHX/a3kPFbPOpxR/mDHf6EZOiD4I96GsMaAfFqjwLrnmfOJl++9ApXgdeHZCc+KyOMpCsgDVti3S8XsFz3KI+d9NghD2QJ6jjMoNNJDGt7+BOPxWS18ZlXiq+24ybRv7TEzSnERX8PqKFLA2YucvDw6qGYVIT6xP52uwnAShhI+JDOnpKirDr1ivACRd8yTtsV2K4NGjqecQ11x2r211jQeZiVTyZCfdVvvu0Ct1YJmWC4hYKCDv9sgO1lOug+j8BjFOb7qPMwkm+TzBfq8NeyuhJ5JvHYZnUhhhDC2VBHYGwUM0OM+N63AgaAIOO6TCYRqklzigcpTIFawksiAOhmE+D/MgwvTMm76I2tjI89OKJuKFhNSkuF4G+KOsFwikFO6UN8V9AGUIJ6Lwji2xdiXsix2gVMWeY97jHjfVfpwwryxAIe0NpSxmu7TmmAxBNUgjFOxN8ZNNegKkIdwc1SxnBbRsoeTayoyToQX3UC60SWlpPXs8T8ziPUONTrDRdyGla3uIviCdPAb1Q2zBlx81qGzQyrtJVQP1/GWo7p06FrsxM/8gxRV79BzAlYVnUvyXblYMModJR5Ink0QKyA/xnKhK1gulVAAVn4AOqbU7Vna80zmDF2cN0wyG+FRWMRJD7h+DU6OMX+3TCsBQpUwrOPdYkbWSBRwAPhE6qmYzSmiuEzhm85UbQk9UixAnkWDad9mBs4vezWEYj6bpmMReU7ZF5l/2bcrdKa7j+POdLGN5IV844+sLSa7oev5Qvj6uWUTy4Gxq16k1L6EBGZUsqloJve1ki8ldQwWcoK7Df2+dNJsMy+LawwFjDoJElHye3xuVbarJizeKiIVuVeG24RQHqormOFLIxh75d6xE29JcS/Lj6KL77rHwwo22hpB4mrskyqOgY0OXC/AGiuCVQfw0MNI4ozC+ObI7aHUneA8vcaMv+y4gROXgYRz67n4jsZsxKfFH/GnfhiFZ4kqJFzTctTuTBU6+hOJhrJD7suLEAMgVuvzmd9cGmCqLs6/495+Kd6tKTJqErRIa/m/Z21zhmDwZ2LDZx1D0WvW0l7YK3wH3Bhu+a0IzKfKKgFa3XHN7210Z9UrlVkc8dsytFCk5YYNgRLGEZdTwzocGp5vHMP9cwT18RopOhrFYJa97t7M2wRXUtF1tccZqRR35Jtz3BOcahDFVD6KJajPRly2Bs/SgI366I348G8Aiqt2RnsoQ4ZB4Ql5SPPWbWWOXRvXcNQVtRj5JHQeha6txyDcrV2bzgwwRbLvX+k7Dk42raThkl+I12e+adRm65RlAB7hec9bvfhL9yvCB935VIVqw0uD91GydP7g2zRhwsq4kNBpwvY2p/M1w6dVBNZVsQU8EVMrPXEZHddbdwnlFkox0mFerX10wMfUgTyV6nftCTOP6tLZvZAay5RlRXv/7FaM1JqUWGJ1pktmkrtyuQmRj7pIowbWKcOafMtLSDOBTL8epJl+oAELXtZ4HQ8IV38RzkQ3+0fMlYsovCSoOJmVwI/HVKmb9WJks2TauB0y5+yR1juGsew5eiOYE2ojp0MlGFZTbub7QXrPuK0Y9tuWsDw= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: c8d84380-15f5-480f-1037-08dc836b160c X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jun 2024 01:18:33.5339 (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: 8Mz4xL87rw3/XBEX5mpsKSXtEWDqnZyH4laQLiffbpK67ifJfwbc4kqKIWVdZlVS7UNVrkflkCi20yneCC4CE2lvMaL161WtSGONwSdCA366k7zbnrG36QSwC1fuGBE8 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB11318 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240602_181835_413586_96DDF98A X-CRM114-Status: GOOD ( 10.54 ) 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 We already have for_each_endpoint_of_node(), don't use of_graph_get_next_endpoint() directly. Replace it. Signed-off-by: Kuninori Morimoto Reviewed-by: Laurent Pinchart --- drivers/media/platform/xilinx/xilinx-vipp.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/media/platform/xilinx/xilinx-vipp.c b/drivers/media/platform/xilinx/xilinx-vipp.c index 996684a730383..bfe48cc0ab525 100644 --- a/drivers/media/platform/xilinx/xilinx-vipp.c +++ b/drivers/media/platform/xilinx/xilinx-vipp.c @@ -199,18 +199,13 @@ static int xvip_graph_build_dma(struct xvip_composite_device *xdev) struct media_pad *sink_pad; struct xvip_graph_entity *ent; struct v4l2_fwnode_link link; - struct device_node *ep = NULL; + struct device_node *ep; struct xvip_dma *dma; int ret = 0; dev_dbg(xdev->dev, "creating links for DMA engines\n"); - while (1) { - /* Get the next endpoint and parse its link. */ - ep = of_graph_get_next_endpoint(node, ep); - if (ep == NULL) - break; - + for_each_endpoint_of_node(node, ep) { dev_dbg(xdev->dev, "processing endpoint %pOF\n", ep); ret = v4l2_fwnode_parse_link(of_fwnode_handle(ep), &link);