From patchwork Mon Jul 1 02:32:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13717509 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 8BFC2C3064D for ; Mon, 1 Jul 2024 02:34:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Date: Content-Type:References:In-Reply-To:To:Subject:From:Message-ID:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=EizFzsMXfbQm3/2Lb/FDIskE2XZqm0mVAacTe880PQ0=; b=Adf4uTeR6gtaPIMtiMkqcHtpxP cax9YNQZnSB5L4hu14WoQLAw1QtoVCkawqjjMIplV9Za19ubDutfSbmM/Mp3OvdiAUzas/HRkcBpJ wJ0KdO5QLgypvYlpUawPwpvlhgdt1Jn/BfQMnCRPRJluty7HRwzBqK/uGbSI7HbStjMPupdHpGuv2 Irji2qoezGOk5HM0kkj09Q8LGvvwRuoXCQnmsBEtmd6jkm9n/PUnGs6oPd6IYgi6H14iI8Qhkw3O9 U9USj0E1sY01ga227Kojm96M+tKtWnmGb5uPb3pdAXJW3Wr9TOYZup9K7trv4GYREW0aV902nihN2 a2InrjTA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sO6rt-00000001UGL-1UYF; Mon, 01 Jul 2024 02:34:13 +0000 Received: from mail-os0jpn01on2062e.outbound.protection.outlook.com ([2a01:111:f403:201a::62e] helo=JPN01-OS0-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sO6qm-00000001TqL-1uCp; Mon, 01 Jul 2024 02:33:05 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ebiKrYAEWxFASlBFsuzlmcXZNNWCMrrbQw7DXTuVMN+TmbJsTUyliSzrORcGOeYnYkgtILOZZEdw/XMwrl74TuqZk9BaSziy/p8SwXvY4ikQr35+4EoQig6T4j2FeXZ70TWepFjDeKY4x3fmQ1OtBJRGzpsW/GM7i7hsUNEGNoHKC4U1hmMb56J54+z2ffxIdtm7Xz9I/VwCslaSFaaTzA0tx8/yvY4Gx1KTHb0kTfhqADVs/iIGojhPhQQcueT7JcMWnobjZL4lAoGyeWSUPb5cG13IojmQUZB65FGm6Mjp4Pe74686a2Kk7JltqSN+LyvjUvN+W2VnCrDBG17Gbg== 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=EizFzsMXfbQm3/2Lb/FDIskE2XZqm0mVAacTe880PQ0=; b=mkRhnJqibcUd6vWBKWJRzWlT/Ly0Xnkt5K0S5WLo0JNMYBfwdQ0HCYXpujIp25T23OJC8RDclPt9kcqaxENS5JQ8V8LISjHQQGaBIHnzsZiOb45FxjtUdX7+2C0uWckXWfbVEYzW2IofZ6ijJa85pSbLW6/DVLae2HU9WUqJr/nVKKmqH+1aSKdKFU9xKBT12Rp3VrAvB9t26se94KGPGa/hjmUzdK51Vq3efcL5pkMed0gbTpJKklchi8ETECow3IVuQRicp7hFaeEV/8hLr6HEQqQjtLTGVRMLSggYuvb0ehk7TM4hB3IKaTk4uWebfJidUBxh3q8OHXgDM0fYgA== 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=EizFzsMXfbQm3/2Lb/FDIskE2XZqm0mVAacTe880PQ0=; b=F6G95ptW6F7U68hg22+Ew8KoEpcPoLjv/x4Yo5M4Hzw4d/2jNlhIfQUfJZS9E6CmKutqmRM6ysb7CWzHadC8l+W8Zt3wndEEjlrKh4pDwNtQNDUsN9UluCiS53ZcATv6Xx4przRF8i16813+blHhI3AhYTPgAQ6i7Ug6wNm51eo= 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 TYCPR01MB6704.jpnprd01.prod.outlook.com (2603:1096:400:9f::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7719.32; Mon, 1 Jul 2024 02:32:55 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%5]) with mapi id 15.20.7719.029; Mon, 1 Jul 2024 02:32:55 +0000 Message-ID: <874j9996zs.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v5 6/7] media: platform: xilinx: use for_each_endpoint_of_node() To: "Lad, Prabhakar" , Alexander Shishkin , Alexandre Belloni , Alexey Brodkin , Claudiu Beznea , Daniel Vetter , David Airlie , Dmitry Baryshkov , Eugen Hristev , Florian Fainelli , Greg Kroah-Hartman , Laurent Pinchart , Maarten Lankhorst , Mauro Carvalho Chehab , Maxime Ripard , Michal Simek , Neil Armstrong , Nicolas Ferre , Suzuki K Poulose , Thomas Zimmermann , Tomi Valkeinen , coresight@lists.linaro.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-staging@lists.linux.dev In-Reply-To: <87cynx971l.wl-kuninori.morimoto.gx@renesas.com> References: <87cynx971l.wl-kuninori.morimoto.gx@renesas.com> Date: Mon, 1 Jul 2024 02:32:55 +0000 X-ClientProxiedBy: TYAPR04CA0023.apcprd04.prod.outlook.com (2603:1096:404:15::35) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYCPR01MB6704:EE_ X-MS-Office365-Filtering-Correlation-Id: 7cc68beb-1644-4f31-2218-08dc99761d48 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|366016|376014|7416014|52116014|38350700014|921020; X-Microsoft-Antispam-Message-Info: Jik6/g3BrnM/eChqqIJ4btqWtMkY5t4/7gAgoWn/ABMyOLn+h1h1x5s4ZyjBGu+5a1SWau1HvkiOx7Lla8M1k0YRc5sssU6KVVBaZSWm/Ubmcs1pD7M5JRirIUeUE+GToq/Ieh38XnqjnBkySxy88Gpr111fnViBaGUFnBeTZMFu7pjTSr2oUwjaadNJEHsoA3BlSFZ929uMBoWHNMobg/eB7FJjfrt1q1FYYs7qshn26oARr5Ov+UjzffMPLziYD19nu8P2dQpGmh/UtZ3/82PD/c8/g3vsRPbEjG7ZNq9DZb9uFKb3ZOAOAeMa7PIqIzu6fkMwR5loV1ZyqWny5FQDyWCKi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hJqkeQ4ybcxGt5bs+7dNqIz8VfgxWxSAa61jmaSw= 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:(13230040)(1800799024)(366016)(376014)(7416014)(52116014)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: C94I2FmY2raftHtrXTHSVKsSoqUg9mD3Tgr3YeJgkbJ9QUkIUR1CTmYgOOp9vXHhslM+lIsBxJSvHR4R0apSvzTCefVnv80pwl76gmZ8nM+ORGP3Mmo3HwFeDG0j4RAFkz8QCW6B/9dHM3J+pUBO4KsUYaaiitN5Ph9nwbqTn83QjbwqkLl9J8b9k1Rm5MD4/OlXqHsRVYxkutzMUqZQ3nEdRaDsYPEqTVjwp4TWXyFoabaO2OLJHih0TrJ6Nk6niqSqozv2TtB9AeKj6bP9Qyvig8ovHepQJurrkkoXCnbKJ/E3uqjwR6RkxafK8V4ZKLjAE2jKi0CX7yiR3aIWDwIVRKFH1m85KEcrSNpDohtggqZFYYIO2T/WZYBp1ZP/6iKAmXUOZtR/zOsNtLrSJrarcaomjK6u69MuLhV1H9jgOo4C2S/E1vc5jLDsZ6M8z5bvsG7sixkvL7unD5NF1oBJcQrEyQhcWykvdOYiZ4LAx8DQtoMLiopTM+PZ6c5Faa+2xleYv0tPToBeLLnBTirEsJQpbArdgzdSTmtQpvgV87TpWHkUx2qmEH5xm0gSdB0hF8JoqM0zNvo4URtTI46ocJqYXVZx+sWBhdPDxZppLoNBwUe4M53jf0Q2vO/RDeigzvpcu881gwrNvkMrpS4CIzf6Hbm4RFE8M6R7nvg3rMl8u+db4rrpQYQBSJqKP6Kh0F2r/jEaucDSE9To1mhTRXtrbLpTrJZr4ojc07HWNUk16T2OcYIYfxqPXlmoYp5/96M3LmR2F/eqW3Uk0dWrQ4np7WJBvViBEz2nXJIq/IcZHx6ggYahbsDy3c/bASB//bT8ykklelGxJ1ixMlMc8cAatFEdavOhOVJyRoSZJbX8KyWZq6Lglzf6N9kNhgbIOOFvO5cfYwaR8qILNuzFDOU08XrJTC6K2jqEcHvb1lS+pSpigavSKtK6vaVbLpgDNbpCFcSpCnRIV1Ky3EpgUmQVLMZCu9zoWeHHo+ssIHcBEQBEnLUVnvZ+wnjn8gb4O/5IcfZY0NkuBydUM1KleuGW0U94yNbcLcOVKvfSWfsxQA4aaBux0tD/CznPJPSAI9iTM93hhn2xzWNcOCQa27CuM7ZjGHyDzSY3a+Mg4bPZmnczkE6UjJmAK1NyOMwM6JsNdiF+u5sT72BNa44NvVj+O2HRCUi2pFFw2/SG68GHuqDacG1GxtgvD7P1/t8OI2TyitT63ozOcu8O/YbmpnCNLvmZ0o2mGyzQb85NXkyVJBW8OcD2mAVggmc7SYvf/MizrI8qlkX72Cj2EkHP+kbVaZC9BxM2j4hezIRJDf/jlyl+r5raQhoduD895+mbOfSxqqj6jKeI8Fcext9Dgtv7AhwGuGXKTvurm+y6N5EhxiIO81anreXH+OIRSPoM3wUT2TejpX47FO46PbC90Vv9Oo4W0EfhyZomVF1EfudkycDlepzQs2/4dt6F7BhIqDMKyZRHLi5sN6OU+oDiV0hvHvSKNaJUkSF9+Idizt3X/3+dcwFUjcTPl1mAeHuPvZrIAWVxWFBS+/ripDZu8CK4I4tff225F+qBr5xa+ylYki4mCkBLi7PiSgpRwWqHD5IJDZdHd8UYI8FjnTMnTbnArPytfbsi6HqlQ4I= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7cc68beb-1644-4f31-2218-08dc99761d48 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jul 2024 02:32:55.7071 (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: 4/spJ6PT47PjhrhWOgnS2y9w3qKvry55nIcImbl5IJauCmvp7qOigfnI1Y9TRvmy7Ii4ZRRE5652GJhyO+Rr0e3ISJhBkUj/O5Mm5N9MpVLk2MibUi55UY57BhAxny1h X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB6704 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240630_193304_537885_361086C8 X-CRM114-Status: UNSURE ( 9.56 ) 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 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 996684a73038..bfe48cc0ab52 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);