From patchwork Mon Jun 17 00:59:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13699791 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 E3E43C27C77 for ; Mon, 17 Jun 2024 00:59:28 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 54B2F10E0F3; Mon, 17 Jun 2024 00:59:28 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=renesas.com header.i=@renesas.com header.b="Fzuwy12Y"; dkim-atps=neutral Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2060.outbound.protection.outlook.com [40.107.113.60]) by gabe.freedesktop.org (Postfix) with ESMTPS id DC66E10E0F3 for ; Mon, 17 Jun 2024 00:59:26 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JK67/qMwXjkwT4wvlXXFPVx3F/1+YqKR0+n0/mPaQrproqrCaFFKqYMTHthk1NQWFDzvilBuj4JOpa4xLQFybq9V4UjBcqR0i3EpNYJl5VzBwxqh3cOFLN40H94xSwx3dOje16PlUJgsMxMxtGTyroWQTv6kTQ9EAnBXe/J/ip2PrfRJfZRI6nBEbVKg+ZFPvZAdR8OYN+AT+ssX7oUVQVbjSiAyZgwooEgLkYiMECGmsboUksJlxL197gOcqEBMRV6Ea+uFBuFu+N+V3/Q+cnNCbYT0pOsr1ldtnlgzRoaF0GsVaYl8e/Tw3W1Ju9vt49Vgvf0Z7ZaCHqgt/TPbYg== 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=IGOWRJirrNdZimnYbSoFqdWIo8BAAWQUnPoG0vRCo6eg05dkwFipTAXXCfHKucuNbwx1q37ZFzGlP8/5uRjnlpOL8k+tZvuH82ht/76d420Dy2paPw0O/jDOl+P5dtmHizwBCHVIcJAn+/EVf0BRYg5kHTvyLHI4/AfCFlBcSwhBUD6cXoLNphrcAnUuYwVJwaEjE8kyaGdFbyvSmcHOllQjcZwvXF3BeedAjMuUVlwYUe8uFYtQIRuDNCsfj+vqtCWpSIVn8/DUW7boRmlMXP32r/Au+wXKKou8PUn//JfSV71abrWd9/DYD4p7xmHex3SjVHIT9ETZ7wC5Qe8FxQ== 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=Fzuwy12Ydl7exl22CFDWhBTMfSe4lTtHg9dgChwPiAy9tr2M7L1cvnZUPPG/fqHVrrUkVNqZy63yl88sL+Z9m99WkBTpd5pDH+Y9/PDrdnHAgRWB/9XfuCdWJtX+EF7JjJ3v4wy/tmqRcFb4VGMCsZ7PEAVCFu5dTXiFsyfgeJk= 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 TYWPR01MB8560.jpnprd01.prod.outlook.com (2603:1096:400:13f::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.30; Mon, 17 Jun 2024 00:59:21 +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.7677.030; Mon, 17 Jun 2024 00:59:21 +0000 Message-ID: <87msnks7tj.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v4 resend 6/9] media: platform: xilinx: use for_each_endpoint_of_node() 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, Sakari Ailus , Hans Verkuil In-Reply-To: <87v828s7v0.wl-kuninori.morimoto.gx@renesas.com> References: <87v828s7v0.wl-kuninori.morimoto.gx@renesas.com> Date: Mon, 17 Jun 2024 00:59:20 +0000 X-ClientProxiedBy: TYCPR01CA0171.jpnprd01.prod.outlook.com (2603:1096:400:2b2::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_|TYWPR01MB8560:EE_ X-MS-Office365-Filtering-Correlation-Id: 97283901-a5de-43fd-200d-08dc8e68b8f7 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:13230037|366013|52116011|7416011|376011|1800799021|38350700011|921017; X-Microsoft-Antispam-Message-Info: Lp/eih9Foa68sVUD5z9T3mA2fKql5IEiUA1Py/cmVuCEqnA+Nlmv0xnHEVtjxuMre/9TN5alw2v12YPj74VBY274RVtAGTKEcUNHhH6/P/ISn0Bo7ZW/f83TGN4mhvYWBpWrxPAAoM79t24+n03oVPF+Ksk9D/mzIOCIRXcxA+BzBgbCT7iWZnpBZFJT7/fQbirxaeCjJ8zB9nJYU1GsVwsEKtp0H/av/RUuUA8kqKJfImFIdyxd3M93EO1/GPWfIdXg0Mh7heCQqshm53j6qQjCt6MuRZL87MNiGWqxcoOqVchbZEt9tEVycOf1D6oAg6vW931CYXqVNUnTP4fodyzxS1i5FHrnGtraexI+OvWhvvRNLiyphp+8KL4pB7v+WUcPuk1NzOO9BMoVEsJbE9a3GJTHPAJZ6k2eOTq9yRn0QA47N2wtCh64Vz+bDNso7nwuorJVNN0VpLbWODDqFOACmD2D/ze9vFcXCaGSb55sn5EsH9IMUs++3kd33ocuOqZjd/OJgD9lhHwgYTsEbNZXhJXrlmYF2pl5n5yfcoN3eqdhFTOcDNSheGuE+xa/355ejA8EYk9yINQBLNet0LWGmNjPIQvADFpkFnLsfqyDYFw9JSKt3w+tVsFVh+gPCzS6dJ4mc1YaWxQj2UNVQBCSGF72jwEQtHNyQw+wAWAJ46QslMxI5k8DpgoOed/Oib79cMEj11CNrclpSzpeadUlfZinSEZ9GI9K5I4fCN5Y08bW8vtG2wYwUYBtT/8Sc1HUCUudtbUzyGDnQbz8x0By70sG6j+NZqatKsY41jRioNwX7waa9dPVPACdqVtXYx7rAdMyeu9AaXlFUakr4IVBrFe01M8U7S/jgf+Zvv67gpukUjDzqiT8s2klgpeoMw/9vvOaIuyfN0KpiqhY9IY4XsWQMcRpVJD+2ck/V1ffdZ2EKs7ukocYiMI1WGHN4TWZUg87Jr0yJOKsKV3SalGTk/MtGcr2T8WnwYRRIOZMYICcUc8y+abLpBHkobRzLyseOfVcMX2QN4JMJooIG4vc9Nl+K0jzmP+S6eZOlUriFIfyKskWEwm6902Krr4zA92R49L4LMUrj+aUHZaMeM51376T5Xej5yopElhnIZLnnW3oZRkdP3MF+Hz4Xw5/QtojZPkO3dMwMyboZkjO2Z0+8bjWEitsiI2MRyiwyjVFc572glyn9t8OIgOiTZ0ilXibAtO1Uhcpg22saxwMXawEeZW3NtFKKX6CW/62s8iw/tPT/47AFawhQh06xHzBiKSh1XHbERjNhUa/6m2AXriNdWoH+3hDhUsyNgOyA2uD1nRhEGSkxYTlckGDHxAnFVtfn+u0tMJjHMaiahqtbL4Ie7zvZNxQKwlJRmVraQwPQ9ozEu5Inrt77R5eAhbv X-Forefront-Antispam-Report: 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:(13230037)(366013)(52116011)(7416011)(376011)(1800799021)(38350700011)(921017); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ndHGorYUcgBssk6QamX4vhrmgA6UsAgHUX9OozVbb7aKOLA4RYtmVAzpWR231GZXg2qg2ndnZSi362U5D7G396eoVM9r57b5AhRNei/TUb01esqOSPZtpif7BRavRIB91BJiLVZSniPjoeWBNnfkf9dhOks3Kw4ReBZXWTdoNp+YpXzIhs0b/b4yaQu5Kmm3qJGgzwQpI1q1r1BljDAgj38Q99rf6Fq3Oi0b46MK120FW+eji/B5yoga9UdMwu30CzmNuOjZjXH8veP4htVZtTTfwfn3JyToDATBybgAbUA7zgAlqA9/pibqMYs5n9mBGMN4vMviCd9KPgZvuVV/0fQRu6UA+J4QqJufJjf8m5KXZsvuZvTYRJGab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W+mD+vz6wURAdLHMNd20K5NVlV8/Ks0F4Nc8qKhA0pPzRjqvj3LiasLPsPwlY6spQGc7JCFJ8dSgENTByyDJ5V7JVi7thcVO1cHLLzCG3iP7ywtMeNFGukIGd1qNQJIYNvY8HHLrCfDVwohbxgPu/BGiFwITB/WdogXE6EZVondcETTlxudJJB7f4LNDgVw= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 97283901-a5de-43fd-200d-08dc8e68b8f7 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2024 00:59:21.2029 (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: Zi5tiCkJOOuJuA/ooYpzcqB7bhRajdcVesEpP88dbpUtZppRlrJ+HytqoIcEqWd5dT+MGGnE4luO4l4e9xTMg+weCu5ZCBcQDC32OgOhFIpJ7NbPmwmkTqgACU43zb+0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB8560 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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);