From patchwork Mon Aug 26 02:44:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13777002 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 9A7C1C5321E for ; Mon, 26 Aug 2024 02:44:10 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2796410E0CA; Mon, 26 Aug 2024 02:44:10 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=renesas.com header.i=@renesas.com header.b="lYtKFm5R"; dkim-atps=neutral Received: from TYVP286CU001.outbound.protection.outlook.com (mail-japaneastazon11011002.outbound.protection.outlook.com [52.101.125.2]) by gabe.freedesktop.org (Postfix) with ESMTPS id A24EA10E0CA for ; Mon, 26 Aug 2024 02:44:08 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Ut4WifaeN1l0TFDqJuRKi7GoRaHhj4ZjdZXwJHMpsZzPhUpzbrp5wCpl3CW3yNyFn4vmexbyRbVJT4B4cKVVZpvzoSbEFuIkmf/IQfIxNBE8zI71sUlBDBK7LC53j+DsI1v3rbTynWoRxnyGNdSX8GrvCc7VuXltb3oY/PqMpkjapWyaBQgzUbT4j0N+7ybEDMPJgdKe/FrFfE9ADOUExBXpqbZ1mlbaYWQbUZqTJMeDNqOlh7ncuLV2k9ETBDNIoNVv7P3KhnZiROUM1X3BVhcBMO1H26xeHQ8CnRNVXIqbhTXvXcizQHwexXHphSEQFL8gpYBY0Uwe/26Dq1Nk2g== 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=GqzIohYp5afmfF86fzJ9cHhouXOQhdLWAIzB1UwkvGw=; b=eKwI4th+l/lpo1WoDYAMFmw2IB7UCgS83JA7JRFyV0zrVD1cvzM3XlUqHR9whAGFKbh2ce2mHAVl0WrdbiQpO+d35BMN+Zr1oq92UTJ+HOAtWvo90jEz9yAgaWD1X/zXwX9tDv1qZ+4AaqiyMf2tXWmuOt3FYSghPRzoIVZn90z2InxpleRxuuFK/bx4ib+zd06uome0KyqdMLt3y4hREN98cwfzW/d2oBhx0Qb8m6ar8k6pqK+CQNARymAkMZMK9zPwsjlIBezcuPbDI4GG9rOTFmnzNG9hbccsMyza/bBrzKDNtnKKzPYhLN8C65qQ/ES0yM2K+QLbhSdWaXBHyw== 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=GqzIohYp5afmfF86fzJ9cHhouXOQhdLWAIzB1UwkvGw=; b=lYtKFm5Rp4ls4JS6AOvO93hSE4gW+k6AjabqVAg+z/l6lY7AWw1RGocUpdjWcUfpd6m3kuL6atqWkjNgnXl2Mwheousjt6Q43uXVj06kdYD3mDRgcJ/3idj3GB9AcZWl3pQ/1fxFpMen6iE2M/OFytCtTuDsrn07Fj3tXx19LEw= 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 TYCPR01MB11547.jpnprd01.prod.outlook.com (2603:1096:400:389::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.24; Mon, 26 Aug 2024 02:44:05 +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.7875.016; Mon, 26 Aug 2024 02:44:05 +0000 Message-ID: <87zfp0ovey.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v3 9/9] media: xilinx-tpg: use new of_graph functions User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: Daniel Vetter , David Airlie , Helge Deller , Jaroslav Kysela , Laurent Pinchart , Liam Girdwood , Maarten Lankhorst , Mark Brown , Mauro Carvalho Chehab , Maxime Ripard , Michal Simek , Rob Herring , Saravana Kannan , Takashi Iwai , Thomas Zimmermann , Tomi Valkeinen , devicetree@vger.kernel.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-sound@vger.kernel.org, Sakari Ailus In-Reply-To: <87cylwqa12.wl-kuninori.morimoto.gx@renesas.com> References: <87cylwqa12.wl-kuninori.morimoto.gx@renesas.com> Date: Mon, 26 Aug 2024 02:44:05 +0000 X-ClientProxiedBy: TYCP286CA0273.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:3c9::12) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYCPR01MB11547:EE_ X-MS-Office365-Filtering-Correlation-Id: 98976b5c-1567-4512-27d2-08dcc578f3d6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|52116014|366016|1800799024|7416014|376014|921020|38350700014; X-Microsoft-Antispam-Message-Info: PHHCG6H1+ydFZKdrYZ7rDoqBNFr4r/9YUqYWdxWghmt5HiXGRA46l+N8uktzi35cmAr1TpW51qJEOgpUwqlX+mqgpPbkvKXP9UIAQLcDvXKuRWilzgpQQ9zbdn9Elo5xfum/3paRf87Y6pziDDEWKRpQ+do85u0qSFsVRH5FXs1uQL1cfsKdq/tQGl5SVhaPFRi2pkBPBKKV994MzcLb0Z59sSE2+GhF+vOefyOjalTyqNFLyC6DoB7Gz7Di4x28c1H+RyAcdapU37gW+a/fu52NNnxlF+RsyBRr8TL9OFjvNIQg2bQ23VuWR9nX5henwabdm6I6gNqRdhJ2yMirJVHBio76Jiha3rQOOSA+KJFlyrr8o2dcJR498JBwzW1wxYNYNVT2NNO6vBKqs9YIlJsJitAVz1pYQM10+BPEYnH251+MNV1/X9kpazSRcT3mxFci+GaZNlwdFP8lvmygDQbEWy3RP00x66h+OHh0/hCv6MBwRypcRtgV3OHuIK1fml7Fb+eSdD3F1u9gXLQHW4oBs+1DG+xYJcceD58fC0ySkIln9CI16/kkV6q8oXLnVpV70UgE6B9FdzNCpfMYqXhJhEGvX4lWTL6D054gZct6HH/727LyRP4WOSYPheRiKREen82YH68yGRZYaI7WrLflb+Le6S/MaG6ulDY6KwJGjcAaIHA+ZagMUfXJ8gahdF4RLdG8O5LGcvYjE9qyVAGfQG5ERwhnrUskB7aD8GsESe1ezojBqgHWLLm9uOTRa+55hs8OHMYDQXtjrchWglkBDICh+Djy1qakUeTWnmD0zXgoqoQZP6ysUKmroQ9jxeFVFvAmeeQCEFiSoZRXFnSL9qdCQnLXhnt9oguSQUB6qK5spesAamXivqIv0x0PXeAIWfEmoCpPzapZQ+QqH90Cahb+iaqjTeRXcOzPTpqBArV9eL8w+YLt84voChGNMvZ7yh792MpxSzAyDkumpREIMNuCjmlAuUIY537yAqNaSFp4ghXpeA22orkE+FQ7W1K6r7G46r8xYomSwk9C4v9iiji/zYTWTvCXcPUN5nJdivIqzwtJhpxMKGxxMsMilodsTrYdcS5nN1JV+ndylIZ4sC51NAzRLElWHPHOOvyzujdg4lF9qO1tfqutYofb7r/DAjdSyxoPS53b/E7xutSHQtrCc6OobmtkC8EppqJEL3zy8fs9kevJo9rPVINBN4AjoDm6kGBdDtL7jSiy1/FEIas8LLour2Cg54lipRnGZmiy0X27zC8xt+bsgELC+0SSuQ7BQy3fn1j/SvJaD+POgArzN+hv8sHlvHlgMSHF7VomtbGGvp2k/WenOlQHEZ5fjBOSf0tTILoMW3CNDasTb2ytpm5SBFRIi6ik+wBR4uo9N8py44Dikf5be05n/cUaetqSxTWC/n5VwlUdp+WOetP6dY2Ga6/7D6Ebcg0= 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)(52116014)(366016)(1800799024)(7416014)(376014)(921020)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 6RTbZkl5OV6Y9vOpvLJ9zB6+RNQKdhN6snrnS4Af5JLOtRF4MGJ/TeJ7WQcxM52hKQGLsIByl3CS4LI1Mu7VNsLbULb2Ndkf9T0xUNKwdGnbTV81P2vbEd7ZM0fpkepTiDZWMaYYKfORzox/e9hTO7f1wKx5pBkQFJKWcDLz2hxDj/SfPouiodNyrVkaf1STeBnGcjKnrCBRD29PLHKQEKRFhONnAA4MgclZJaLX1f4WVipcQaXYmxYORU+vTa79ReON6e+z9BNIyGicVbAYECkxdJkTzKoRaYVnZufwDidDgw/Kh630KqCSntm6e8vCd/GQOryy3asWWMqrl8xuuMAWgt6QCvk1auyAj/7Gu5wrVaJunauSKIb2f/fVypZFR9FL3V+SYKqz5DwqwmKuahMrMagAY44tuF1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N9+1qwxJUOkoCxOPJMpdyIWTFQ2ev1FfJI2DZhAMS5HO12PlEXNvl4+DELFmc9h6Oc0y5/JjO/QQyiwfSjcZp1uGcas5CRH6xc3+79GcX+FjUgODY5UuyoICavZK3tRqoP3ZCcrUWwCzTgppBiqGuKc= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 98976b5c-1567-4512-27d2-08dcc578f3d6 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Aug 2024 02:44:05.8099 (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: oIianSfrJUIIpMvBdi6wPsUEkLjAEwhPf+CeetIGa796xzNJggopgQMTqBxfxDQelrbnACXZ59TNRuUYPMyfDmxXnZm0ytORhH3TxXaFvk/d8ZWBzHNVzWEKvq9SxZCz X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB11547 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" Now we can use new port related functions for port parsing. Use it. Signed-off-by: Kuninori Morimoto Reviewed-by: Tomi Valkeinen --- drivers/media/platform/xilinx/xilinx-tpg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/xilinx/xilinx-tpg.c b/drivers/media/platform/xilinx/xilinx-tpg.c index e05e528ffc6f7..a25f216b2513c 100644 --- a/drivers/media/platform/xilinx/xilinx-tpg.c +++ b/drivers/media/platform/xilinx/xilinx-tpg.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include @@ -744,7 +745,7 @@ static int xtpg_parse_of(struct xtpg_device *xtpg) } if (nports == 0) { - endpoint = of_get_next_child(port, NULL); + endpoint = of_graph_get_next_port_endpoint(port, NULL); if (endpoint) has_endpoint = true; of_node_put(endpoint);