From patchwork Tue Aug 6 04:58:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13754401 Received: from TYVP286CU001.outbound.protection.outlook.com (mail-japaneastazon11011019.outbound.protection.outlook.com [52.101.125.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9C63D1BB686; Tue, 6 Aug 2024 04:59:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.125.19 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722920343; cv=fail; b=UQq63dQ4ForKMnYE5uD7YFu4cRpb0ywWSlogJ8QXEIdISlmwwW3DM4uFSsq0orb6hLLMK5Stf3g8gjzqrr+/om9QHr+w4MVCBVviAwF0lC8LRvP4AMSlxkj9FBAPKjdQhzwQD9ufFneUcuyzIFmrgLABROXK8eu6Z8pT+2sTwno= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722920343; c=relaxed/simple; bh=EOU5Ph8RqDK3CXyFx5UHkJNnLZD5DZRTUM5ql5zWUz8=; h=Message-ID:To:In-Reply-To:References:Content-Type:From:Subject: Date:MIME-Version; b=Ll+wEEDohuYKCuNcH5kotY8kputmk0UOR5Unc5FH5XgXwbOhos5htxbmXSkfbP3PauU8Nxl7ZKWh4mr98rqy3bNf09zZkpPCd+89/HzYQ/sVvNHueH6zkcoAHoJVnmOY3U908JsrFUo2bHaLHXRBiVAg10pNTgSshJAKDs8/Zx4= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com; spf=pass smtp.mailfrom=renesas.com; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b=LX3BRmY2; arc=fail smtp.client-ip=52.101.125.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=renesas.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b="LX3BRmY2" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=LO5XFy6gzXEFgmxUxL+N5JMy9IUEDpQrewOt0cLIN/63bynJgEaLi1BLOixffVDTnUyYaXQUC7zMzdY9yKe6wmZF8QGxjTgHKovs5qTbsbYOFJbc0cV32EkpDsfoS2ursmr8v0wki6/6utl2Ok3COIs5mfdp8WxDwD/zpi744JDGbAXjDz0+boP4+TCStHZL6WimMEFK3gFwxIwfJp+sZjSzEb4TGYHDo4/yaRjTIDUrvCpNIqARxdN6E/qlIZI0/ypdL6Ejm1rfFzVUYcFhqBjDRvPuk+SyMvaTz+5eJFa3sEqGnRolRqBtHjYLAZwOlB9ne9hUkS9/D2qhcO7H6Q== 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=NfCyx2ONYkUviuG/wntP5QJjjUOMYcCOHdxlqwvAle8=; b=cdOrUm/WxvMRV2F5oNRooNCaCnK2dNcWgqumXtZ+ilgp4xH2PMEeGmJjfjuGmHkYJbsp9eLY9/47ND2uJr9fiRCXzRP2ElqdQDbgBFuzVoj+UNwIbvUyyXHazawSXSE5AhYsevYFDjn0zewlCOTflHwFdiU2kxwBnjlHyscLgkYMe2LtrgixEySPYeebQ8oqseViZUppEIYjxTcw7EaJAMI0wPhApDcPl7UK7XNwIr8eWF0zT00LsqhvdO7+KPHujlcQYTwXm7jt3eiTdzqNQ21Moyov3MmoIiIOw5Nu1k7DBIB2+qL1OqWdk+Ua+2N55Z17htg57Jsq8b9KOBG7eg== 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=NfCyx2ONYkUviuG/wntP5QJjjUOMYcCOHdxlqwvAle8=; b=LX3BRmY2wiBM2Tr9EMIMgkNOcKWx78SUfUSaezwnOoEiWpAfXBzGCHi7AU1zbS8UWqJQVTMcyr8eaRgLXFI5kGjdB4YCFBriBom0VCDNfwpwSVGvo3Okfyo/Y/hfWp083YtL8IiHg1lwc2am7JRj1iFHZVQBzlVANVx+iWzwzFU= 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 TYWPR01MB10409.jpnprd01.prod.outlook.com (2603:1096:400:24d::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.24; Tue, 6 Aug 2024 04:58:59 +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.7828.023; Tue, 6 Aug 2024 04:58:58 +0000 Message-ID: <87a5hqw8kt.wl-kuninori.morimoto.gx@renesas.com> 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 , , , , , , , , 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 , , , , , , , In-Reply-To: <87mslqw8mj.wl-kuninori.morimoto.gx@renesas.com> References: <87mslqw8mj.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 9/9] media: xilinx-tpg: use new of_graph functions Date: Tue, 6 Aug 2024 04:58:58 +0000 X-ClientProxiedBy: TYCPR01CA0060.jpnprd01.prod.outlook.com (2603:1096:405:2::24) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-omap@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYWPR01MB10409:EE_ X-MS-Office365-Filtering-Correlation-Id: d850030f-4b6c-47be-ad0a-08dcb5d47b6a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|7416014|366016|376014|1800799024|38350700014|921020; X-Microsoft-Antispam-Message-Info: hD9ex22NANUR4oTbfSgGe58AY/l6RtpJJ37Vpi2TitYcEMrZtSgMbb4/cemR0RVw91ZynqzFF9dDvsynddg6Vk/zTXUfUHDIgfMcLxjVlowe9tNCppdTvK252ZIUhLCexE0cuPYN2oIIy0WwZnoxvJ/i1TrKAvi3Ff5P2IcH8q3MDrwYR8k+Xcbj1Mfg+PNyaJu2jFuWd1TQ0QnnJhIqmJITy6tfEJlntTUOgF61DiyKMMGiSvtMV53NQcgnFe2QsrofY1R8OBSk5LyHE6w27WYkHK79CfZv5qz1NtZYTkWJEdTA1AXfvS9JOnP/0yKf80kcM6OQ+O7z0I8+Ri6bUdFS6ZyGCQ7GbtUvhhZ+wZGaD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KeG8yA= 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)(7416014)(366016)(376014)(1800799024)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: K2A7+Io3LRV5TDkHAccaQn01JvT8gbhCooDYkVAMKhsuzV0TXjY3v4ox93IEFY17PQ6xBPUuNDFg4nLxuUq6DacLxwy4em8xDPGIuokCCSXQSPxKQqPJJ5k6LIvqbe5DkczH4SLJt4gIuPAhh7WEdKZK1FSUFIhQ5JjCOIcR8XcsaAEDJUY0XbTs6uYSTg2ovczVxfA/tR7a4Vekq+bmWhh0JiGq+z70wLmwwZQuUCY4WTZPbi/VVJzdEvkoSgy/AGxM/n7uRPn/HfTYr90B5C6v/rNRr8x6bVnuEPMZeF53vtxSVV80v0yeyiVDdFlWbVQy62FV4qZrHD/lDFD+jmRLa/3R9k7jbxaQ2u0vsVLHfWDB+NgS2dJD/He0VJ9/0UMxx0kx+vnNKHHRyVCV7e/lZh6yQ6H7wY8c7qmvcc/+Te9bMtXUU1anXfjd0yI8uX9krL42TEypIKhe+J1UMxbSxZeOxMUHwKSb70A1QQzb4YreZ/5oA0l0YP1A8nnVsQ79pX2KvuF914IxMLlYdw3kYQF3hWnAmk85meks9FHHLthCUjdBZbwtgEyozFIxgMTlNvPX4qHpWU0zEWQfufEGeU65ToV0TapPW1RAI1Tg1QYuGuAEzzsEDwVSyjidwMyDuuZB75dqpbN72PHm1HxBJBRd5lblsX0q8Kh8+bNjupr3CGiBmZ38Nb4VhyP3C+2zvpxRQjNoZv1uoi+pwQ5AIF9Woeci2ntkKHUkwSsZLZWsDA0iaYJ8pPrDBgKi8xLH7xETwwL/kT6+p0CjoIqjKLjqX3Bhslmj4VClIw5S+4mJsrRxwtKD5W/KVaANlkhjcMNohrCgXf+qdiC5ng5e7d8Q/K4MxIh22HpCIpcy90nuzWV3Ap6i58+LJZMbuhet9e42g4sLL9vxX4eMwtdxT9/ByHS4u2oSMK+n8tu8rnUqyX0AhP34Z1AT4FPpmhgRpk5CpeMRXZsJFgafHX9/xizzCNeJzjb/G97vKV/5tczlsWKv1v9YsQjNil+TBKXrix2wlBCSeDqAozwdeWJPItU3hsnNq+RSy7YJCOgwk2vXOnW7TP8qcdDZia2hQ3sUAAHu5baEFJc5euLdOq+t6ylWIA+Oxtd39FDZodZAvMf7L3k1YQ7zSIIrVN2fxt5vJLKjwHvOsyRCWfn8PUMmrswUT+nfZJp3q8SpdDth+fd2JQ6Ls5SNiwQF/1WCI1ne93Nx0t5YXDWlJKI93T/g08MFGH9YMccNfEwVjIEtwVGuBbeA9ACmtHzfSkd1nRScNFZc8IeKqdpaztU6uFCvTouYVSKqGeLqkzycf17U6CqDPnWJCfn8NCCDAuAmD8LGwEPv/XphnTAQiZvwxVGWl1NYAJ2rEL98l97rCqCOZ62r8DX8A1lPAGkfGFzslnDhCGlxzoTTXuT1vbIGs0pmGbhaf0oz/GU4ovdISE256i251Ntl9CepXdpta3XWPJPkCyinmgmtCa4HNRW18C+6XfJ3u/d8+zzIRfp4ykUZ0Ca4HWGSDCwEPg8Q84JP9UfWgLs3aokYzMeXTuHS2fpy+oofNjcaXyN+519nsbg9j9Cm/7Xae4c2U5r0bIrkQfMGKlVI3tivbdNRGMYvP3MUSrf4Og6PLt+wLDkQMsI= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: d850030f-4b6c-47be-ad0a-08dcb5d47b6a X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Aug 2024 04:58:58.9034 (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: W4UDbrNHclDXVB3kWYodYPBLLdyrh4EHbmPhpeOAtepsXxSFVv9NglxNM9xW6bWbBWmrqdsYVqUbdn8OqXNXR/QzYNGm+vkMmHypIRJPxth13MhdZav/nFVUDeWgjX43 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB10409 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);