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: 13777027 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 F1BF5C5320E for ; Mon, 26 Aug 2024 02:51:08 +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=GqzIohYp5afmfF86fzJ9cHhouXOQhdLWAIzB1UwkvGw=; b=BzsJS0hznQvRkZBAAXV/GKyzYy twdWxjC1ce1zzlcTIkYKJd583fUUe6GgXMMXWDmfOQxrGKRC+XTauZgEOaWNRAA3qeChhn+tUyDl7 qh1iqQWl1T7lKAZtslGQNFdVtggQSNBCZxb6TUSm9C4UyZpE1gEr0B2SbOEVuJtf2YhVcxaCJeplI zFoCpUesjIlF2phRf24JWnVrXAvhmiy5UPUj9kvu3kYPkvB31XQIEnT7E8L4SImiE5YmiNORCMTPf pZxfiti6UwrYCitWKruxV4zs92H/fIOA5Z17SE/ApWQshaj1TF07fdKGSq8KfT6RkwEBOwu0CHWM5 hUOojgQQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1siPon-00000005aA1-271U; Mon, 26 Aug 2024 02:50:57 +0000 Received: from mail-japanwestazlp170100001.outbound.protection.outlook.com ([2a01:111:f403:c406::1] helo=OS0P286CU011.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1siPiC-00000005Yqc-1Vgd for linux-arm-kernel@lists.infradead.org; Mon, 26 Aug 2024 02:44:09 +0000 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+SYKqz5DwqwmKuahMrMagAY44tuF1qfchk2ntDmB4hnribySi7CzUERNQONbQBHwroRYTTASjA3GkkC9rsksaSbdK7D+FdHmqdXu+0aT9zinIs2P0gBhUYN8P/0XF3O2E2Z2gMEONfO0id+N9SMLG8eROcIhQ63qsioIF3A2V7REy74YD8+uQ2dpJ3aNBUvrMm/wiPC0AJv+gisXlhVd3ARaMkfFhIWAuyUkgKZJ7dcvKS4yTofxCF9Y/z9VoKz2nARcKJBzBWB3aKRjfIyzEnOaXUlAwiptdCD2AcfGpfQGeA2PXWhKR6mHQUUFTQ6rnlp4O0yJQFtpvnwXqik1SO0CEVN3RVt0fMHrVKnZuJRxmF98YAoMS61PxBqb7/vX8Gpk4YSUIzDUabahvzQodcqBRD5N75Q65R3bt5YBbyH2zwOR7yxXKRJzgF0JowdH+wKpM3LxYUUqB8fNcFhAv0D6/QZSzjjygJg+pvd+6O8DXF1zp6ulYcB0VcWhIUvWPNQBX5mbfKFwG5cN9OBsSQEZHzSXQpBKEftXLg3zxzaBQYFQ5KB66xUFhwvN1J08LRNdWhGwHvydBsMcYg4pXdCg0NUFVxEwr1i08R8yvehgQt6Jtl5Fn8/x1gio5hzmj5ak4ti6TQ078HDVaVBypHkn6Cpb62+4SicYs9gTWNMKl/2aK0xeFzsO5QDKuCLOERAkxtDeg7fDGTbxMgFociZf609OuiSYp5pDMY8g5aMXw/7XUtUi9fEBVm2/HrJsyqi0xeYXaklmGOkccCE4yv+tuvsHVo3KmsLAQvzFDRVOztwnKEt/XmFmwhcSd1pvTPU+COfX8Ll/aq5G8WcGZ8JH9TC5t5CcDquhyYjqCtSFdz3ELKksreGsEnMJF5EdQoJG4CfRVgBFEMSS0QsHGtX7IW0cqZVKB8nDlu0RHwV4snfwojX7tp6XO+RuwP8LFIkfRzAg6bAYAP3NDD+vuINz9qrP7QaLNVq86iLwIXafGphcCynhL6uTmF3P25SCN0drkOB5tHEs4kILUAMUyM9kbeWb2qwVlOHpUTzTfQ3n9OXRgfx3CF0ufpkTdZVG8WbqPlWamkOMyAN9+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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240825_194408_448856_8CE88FBD X-CRM114-Status: GOOD ( 11.88 ) 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 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);