From patchwork Fri Aug 9 04:23:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13758393 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 86B07C49EA1 for ; Fri, 9 Aug 2024 04:27:54 +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=DMa4X8LLtupPXMyZE5+0ksQmm2ZitVH6UX9JA+8F9BE=; b=tOPKaW86e3fTv5dz7ChknyONRX hKiNTdv/ysw5Z8gwIAWgqUE3JTtzLgH3U52w6Ph/7qvNbbSUXSqcy9QHcyN3gAMkrfta3VTokU89B sS0olYvd3i7XQKV9aM4H8QAff3lbQ4MaDjUYfTISh9EBFSfo1+/i+1vYJgQ47fg8mGG7KYcrJkEpg couePPfs/iaB47paPjpdCd2QANVLTkxBk5X5CLoWa8RP+T4p7/gg/W+a6ERC8AaMiSc6l0pIpZv6m Y+oaPjGBfmSrarNSrTCvYEa4q2pqxQoUmM5ZcDiRVQ9sn1EcDknhF/+WM83n4RH2CorwL26VSe6yB nedIfQ4A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1scHE9-0000000ADit-3rke; Fri, 09 Aug 2024 04:27:46 +0000 Received: from mail-japaneastazlp170100001.outbound.protection.outlook.com ([2a01:111:f403:c405::1] helo=TY3P286CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1scHA7-0000000ACnP-2W80 for linux-arm-kernel@lists.infradead.org; Fri, 09 Aug 2024 04:23:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=isiONdOzon1+uqxZZUQnpOa5AsRfG99MFjlfFMStHCxNnuyLEMNEd4BsfGoy0r10ZrDgnC3nrmFYUQFkbblAoap3ORzL+XkzAwXK+oUiSAFCWBiyqCha7NMheN35AXcmjdX+d6DqvYsrVt0r/AFanIJOUQMNUbYg3WuB6+0XExpYjc0RdjaNwp4TaRjOjShasRQQcJB72lKwGL/5/SXEd6cVEwwIyIleQlhmlC1mAKBzSVKIFIpeHbn8bFk2WA03bzGWO89RYcc8wNaRSIyD7/sx3LstV663SxjmnOMKP8EJKtCavCWYzExzOsCyK91XPr+rmm+PDHkyP0kKg34kqg== 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=DMa4X8LLtupPXMyZE5+0ksQmm2ZitVH6UX9JA+8F9BE=; b=fXTAMLxfr2Cz2oWMQAgZfr0AnyC4wWU/N9yiBOH15qAo4mTwS6NXNHOnrTSW/x/+1XxuAAkBoApZPOJIL418nwLphcA4DVqr2ziC3eCj9h53v0Lxf1mQsXIszOaJ+3Wyq3NW4q0GJK3qcX0gSBAMD+XY/EXQK8xXstyTyZju6pfma8V2zZUXPRL1EzZKzYJXJiY+TJ/+gAuqcvEAUHiJclbR5dF0L8x1nOi90GyGx25qiPgw9Bqj5WH5HwZR7YoEr6vcCSTE5G/5gsLWKgD3YbaMkBrvaIpkHPmal/xx50dJsVZi8zvoxKhP/BKXS4Qalw4OoePSmyPIrLI6MNeRkg== 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=DMa4X8LLtupPXMyZE5+0ksQmm2ZitVH6UX9JA+8F9BE=; b=OcESi0Wx87FFQNOXmkFJWRJPPN5Bh11tI/MuoAENnPJO/SAnA/TD0Rbg/3MUJYWSCy1sH7PFmWUAADBwBbdDXRWwD5qjcng/bHz8TGnukVj1kdr7stcXsXeAc1NOSKvlDRFH6OUKNtX0j5GQOeSX0EgqFzjtDilhnekjZc5E0dY= 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 OS3PR01MB9639.jpnprd01.prod.outlook.com (2603:1096:604:1cf::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7849.15; Fri, 9 Aug 2024 04:23:30 +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.7849.014; Fri, 9 Aug 2024 04:23:30 +0000 Message-ID: <87seve729q.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v2 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 In-Reply-To: <875xsa8gws.wl-kuninori.morimoto.gx@renesas.com> References: <875xsa8gws.wl-kuninori.morimoto.gx@renesas.com> Date: Fri, 9 Aug 2024 04:23:30 +0000 X-ClientProxiedBy: TYCP286CA0101.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:2b4::14) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OS3PR01MB9639:EE_ X-MS-Office365-Filtering-Correlation-Id: 635ddbc5-d810-4299-c446-08dcb82b05f5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|7416014|1800799024|376014|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: 3ihpowYTgzKx1LLjr7b0punFRynYA6RbEgEg02adb5TSN7o+exg20g5Q3hJoFU9cxsyhcP5Pn0Dt7vI+DHxRGJky6k9A8k+R60aBNvnlGiYurIUVw2IKLJzD/gUub00Gpv8Wex8MVcss50hXJGhwpndElLGt5M4R2Ek1c9uj8hF8GEwujKfcZ/QWTj7kll/7bL+BYKdguSuXQvTwqjvSuER0E3bKRTpIKif5aT3rV2nZc4cZnKnm6GXi/jVMtPZVwYeg+BJa4G1eEvj0ZalMDy72nI3PzIl5fFo0FQAEj6bya4PyV1rt4K5vIElBKR57CxEeH9AQaf8HItCBDA+Z9dw5bLtCxiiDCr/hQJhj9mtPfviJHx72fsXunAJx3/je2LQ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efront-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)(7416014)(1800799024)(376014)(366016)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: cQ1HX9PVBr9Egez1yZ0DRdRvmmwyFmn62DyWdSjHnpSI+P/eN+5T9hc8uUHNrtY54rybZd7Le3hkwAcBBCGkPqoU2HC1mdUG/Zrv4j6leWCO22W4Zsk+h49LnyFEyqiZJyENZUEm0lX7lPDkY6qWyPp0nYgkWnDywPvSnPxB8E0BY9gTMT+gVObQWrqJj4in+rUoqq5lC7oWseTnLQ0XZbJ9x9Ewxz1YE8hSE/wNULNPpFgrraCxknTJyCVC2Oxwq2wmS8Tz2FviHBcBwtDvuNBEnRgUG6uB9lsyKpEprTWDKdItBEw3I9SQo8XYnkTJwkQA7RvuAIfWIVgWbQwCw3LCqdJUOmcW8RcN+PNsAnFSNdvqdT5+zr10hTE35e496fWY7UHWURa00ZFm5uVaIYUnFRlZ/cGNFzLtLAmsu1wfq0C5nKennNpPjG+E0z17GAwZiDa1HUZAmYuvtts+4qwPKUregZasA8LhtTQ7YBqsnvgOecWdDBtQuUViaOvn40mGm1cKus3UeJzrAPYC+/z3I5A1PReWACQWtAYIo/r3D27gYyuEZ94taK1QeOeSkTk2kyzZLRTdirOtD7x/GI0hsj/b8YnBQivnd7xN6wSH4NboBgLo9pR9fR+wBeSf5UnlZw+77XS1eEhRxNNoQ6kn44rJtPr9gTOXj/x7wDs7oC0JkZRXgcTOUVpgeP8PHt+mLv5iM548DfCvh+KetAp8sdbfI/n8yeWoLH8Tjwu6/prMvhCFuZtg/SNXskDZ+uN2hTjtXYEXlIaJJCvnDoD04RVTzPh7zZybEZpE57TCMkPDRPhNImwXVFmhhcolZbjna3qkJqatybjVCeC0UXjB4IBi4tyA3XjRfYhYTBoIUOlZxTmXrfNYSlP5wAh3AiWnsUZHdn9azqvZA/10QLfWZNJwhn0dZbMPHSC3d8Nfl3YsGytx9g1P9QVNlnn5VAGyik83mtPk7twBFqEJ+1xeTaYpvLy6f1EWhuY7e4MbAErIEz73Jgj2TrS/pLwRVa71xsBUT9g5xZ8H1Z2RPAIvlHRpq3vtZXwYgkWOZ4N6lix1xjRDGGaCpCjxmJq6uhIrc7OFctmMtc/i/KQZ93WMQpiJ9H6MmlQK75o1jCYwK0D67FLIbLNfVhIg0ZEeAlZmn3FJRUNVaohlrb9BuAy/keBCXqBIYI2GTMjiuwIgxrDpW9bCheNgNlaORZlXDT4IdgznYEfywssJuOTkfYJy2ArTnsY5uLS4ubzIGt2jEQfru17CnEWnFTDlfMLqjm6HErbuQ8A4/99jpzzvmbzCCXL8gg9ezr1qs02pqgkPe54iKvItgA7kaUASN816MTr/ONm3FaUDI+jPwboMmEaT653FMFfuVR3hIxXrMVzDCbetIr6D65IXsEvBj7QUamk+LRDWJxxL2abG9wdUWi8z7Qw5fDgQ+Y4ZcIKMHUUwvSGYKBgVlyBmcfGsy11Jh6nELVu62aoTK1q8DNWlO5vA2A+RJ41C9ttgBej7XY7HLTcEj2LhH4wScY6b1Vq6wpqsUASkSDLLntWvjrD7WGfTQQadl5t8r480D5atWP2lALZxALQkDdLD/C6WfQu0apgaEJNbClNpAtNl+ESrxs5UkzpcAJUNyJSH/6Xmz0Q= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 635ddbc5-d810-4299-c446-08dcb82b05f5 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Aug 2024 04:23:30.3644 (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: gscUlf3+vFCqKyzNeQBuvMi3bXKDHwXTJG1hd6vV7LdW7cfFgjYsBI4kNiCippFf35L5rMrgaKDp/fo6gEbtJUCMYP9cUduGoaCiOh0FmkAYWPco6xBXqUqRpbPO3+Jv X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3PR01MB9639 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240808_212335_672470_022D6393 X-CRM114-Status: GOOD ( 12.16 ) 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 e05e528ffc6f..a25f216b2513 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);