From patchwork Thu May 30 02:05:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 800295 Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2070.outbound.protection.outlook.com [40.107.113.70]) (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 682BE1B299; Thu, 30 May 2024 02:05:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.113.70 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717034744; cv=fail; b=byRmTEq6Xtj0oOlBnevRsSzluDp5QcTuaoKlWBGRJRfws+ABOXELDCOHNTBgji43fRPQE8lVRIsqWAay9g6DYtItmrL+rgk8L27SbKAl+UBjhy0roB3zSQ9UX2oQPrnOL5t/slRAqNarqkUkCHeq6+nF6QbnDhMxqxqnXFx41Fc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717034744; c=relaxed/simple; bh=APMP0vYrATNc/AwnIWuAiFEij8eWJy8DkbOGc5xhMSc=; h=Message-ID:From:Subject:To:In-Reply-To:References:Content-Type: Date:MIME-Version; b=h3jaipfhGrC0YtMekzfDPAZCeobdEmKVLfpDbTHEr2zNbKl8H2AAsqwX/taZvpINTB6gB4Azg7INzAUVW2fNy5JcAeAXu8k9jETzGP8PA61HsBZSPkCQzmIBjKY2OrH38E2xCz4hoIEsQebXwo4frFrFLoCgbnGRTzmcrF7dUog= 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=LF/LVi9P; arc=fail smtp.client-ip=40.107.113.70 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="LF/LVi9P" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n5InSjUzspYgw80d/aEUWEErhFSAWFkiSexT3yOn9BrCj7LHhXSduOHMT4vNtBq9RxNEBgzdDCnzFEhKu0IPhosHzhq4maGoXczhhrYO2x7feqT2RK6Uym3G84iBFX5LuzpEbwuSb3sISmF98MCCGFXFTUCX8nfwBqrUnI4FI3pVumr8a/pq1tXMTatMdP+SdZTM5bCfBu9+XB1F4qkQjQEHmwThUM1/Fp4FqOwN/0WOesDOpM6crZGdNoseddDE5s1SghJQZzbpXFDYFot20a01VLqOOomzOHkegNdSVcrCwrd/rKxhyZPWZXm3AG3N8eq4AycV+qEl2R+cFIXJXQ== 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=q/hA+X/NDL2DHVcXTjFOx498moK6jPHb9pGdUrBCLk4=; b=REFstSi3XaVMPmRmcU0m1/1jfcYi0etq1fjCjnwX7hH6OiC2Nt6/a5v+3FagfLbRHN7C9BKwTyVYgtMcsd3gk4PNfkw/DuYFZYv2oriZaLJ+HNwcOxCYtk4xOOXomqH5u9AJ/hqjAQGu2BGA8z70p2o4V+0EPDXc/BStjys9iGY5zFfv1XMnN7/ysUhUY8Pz/1crjvxT4wcsTbEEJUzEmY1/SfV1d15vwPCCBl0U6sdTeNDA8yMl2ru92yd8rVP+j3PO2zBwGBHuIoka0g1aMLq10gDmSN0YEZjgkPvd3iirBptissPHk0LoJN7JkrE5phbFo6MpRIPFQCuY+ZsLHg== 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=q/hA+X/NDL2DHVcXTjFOx498moK6jPHb9pGdUrBCLk4=; b=LF/LVi9PKtpB+wUWr36GcQoL8HWgMD6/6XBEcwDAK2jGkeWTFlQ/ypIfqE5AJCfpOxhumz6oGsjMDSbXBkpubNOIWe0AKFjcY4thZPMcwXZKAk7+gUafsLe5ib1bv9W1494y/eDnE0CBHL6nfN+TJKIlQRzAFCF6eacWOQrWg6U= 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 TY3PR01MB9900.jpnprd01.prod.outlook.com (2603:1096:400:223::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.21; Thu, 30 May 2024 02:05:39 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%4]) with mapi id 15.20.7633.018; Thu, 30 May 2024 02:05:39 +0000 Message-ID: <87ikywoxzh.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v3 2/9] gpu: drm: use for_each_endpoint_of_node() User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: "Lad Prabhakar" , Alexander Shishkin , Alexandre Belloni , Claudiu Beznea , Daniel Vetter , David Airlie , Eugen Hristev , Greg Kroah-Hartman , Helge Deller , Laurent Pinchart , Maarten Lankhorst , Mauro Carvalho Chehab , Maxime Ripard , Michal Simek , Nicolas Ferre , Rob Herring , Suzuki K Poulose , Thomas Zimmermann , Tomi Valkeinen , coresight@lists.linaro.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-staging@lists.linux.dev In-Reply-To: <87le3soy08.wl-kuninori.morimoto.gx@renesas.com> References: <87le3soy08.wl-kuninori.morimoto.gx@renesas.com> Date: Thu, 30 May 2024 02:05:38 +0000 X-ClientProxiedBy: TYWP286CA0006.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:178::16) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TY3PR01MB9900:EE_ X-MS-Office365-Filtering-Correlation-Id: 15d2c3f2-4eef-4278-7ad2-08dc804d0088 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:13230031|7416005|52116005|1800799015|376005|366007|921011|38350700005; X-Microsoft-Antispam-Message-Info: D49oeb8KknhK1Q5sj7Eqnt6PZtzW5EKmMYCMX+2p1R9qkWF1PmFbXIe8kdhO6BNsMl2nJ2C3bH2kv9Psz7Q6S7dz3CxdqeMuuE9L2Ccq2lh8dGLCJb6uxv+esxHjnDWvBgAS1758k0IUDoQJYUNj3FRnAEnKbZ3PMeXzKYCODxFlys/QPY7cVj71yUk1mbo3fJu8ytkqga1IlFGQETI500/j0djCJGQ5TnFDDBPRAwu0f2DIeDPylWV8C9pyB6w5zHECWAJi9tPjEfTO+pS8bSK/BlmaN03/7BFp219mpycLyMbGSR4PKfyioGWrFP81sTyTZk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255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:TYCPR01MB10914.jpnprd01.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(7416005)(52116005)(1800799015)(376005)(366007)(921011)(38350700005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Khjqf1SHbeGy1eNN6IcJ1uMxVu0/BmhGSI5bT7d2MP9diseefMwb1voIlJi6QRMhuUqNQCsBXk0+N/AaWVpRMqeLPej7VwQYBVtXMwkE5drTaktsRj6hHsAk1zdec5J8F5IfBKX8fBcDXo4CIfernanktlARF9RqNvRp8CSYCkA9RbMhLKN1oSr8+XA4/CUWQLJm6jW88SrmTi8vjkm8aWmSjvU4OUs29YBzWUyNcLOU3qjeJGQAMv9uHeGmRmGcpc/AmLFkKE0wRn9Emuun+8zWFGaHGVVE5QGrnPhpoPEQ1k2rYIVF0msZlp6lkbGIBpCWRTqOdqRyBJfs8bz0zaU8V5GD8gF1FC2sOy/AuZL/qQPAbBQSMphcpKDmRFa5DVrNI98vlVqbPj9zrrbGyAevXTNVUeEuicpuzQLVsrXQim/RXvdNyfOjCEdIzSqvE/OZSIe2SapZoV85+VFiRw80HAh8Dvv9xJx+enNujN3LUrcjHa8po4Z6n6GEc/8QOFZmZyW00c7h9A3x7O74wR0M1KO/9BcdV9VjnXH+yQNv4UEXhQ5SAC0t4fIQ+gjNKikokpqiAkt7+aRSNwKD5bIjCyi0/C2I+nxqwDAcsMMPGt1/O6qKGrDMWRiP6hxrFYk8ItIOx3nX0fpgJvlJZOeL9kGlJCA8gZUeQssbHjqwGWbeo/uVE1zz4XIgFjkKnRMdd6WeOTJ4iow4914fTzcdZuOrU84k5ToaB/GenYMEPiG1yLoi62QsiI+RRantkhZ9600W4NH4QhTqUbtC4kgALtdrH2Ph84mhxIp1X4hby7nl5MacyCPz9yZuYCpwitylhzrIqPRCJ0rMa5iI1N837nqmdGYSKQL+SN8SGnA1Uz9IwSsyzNEkJtFk+QIyEpVISbVZszvkox3pPJ3BAFN2o/hzGKyIqa9YAfZybfqCZH+949GtS9lalZ0G0T3G7yXnUVLet/i52SlbsmIGPaP1YEx12BqFUlEZIKSgcmvsyiv+1t3iQFG/ThTPOA7ct//ZKY0EGoYRKiz1tcD2GmYE2Z7Q63QmSYFwZrEsr4qHrTVRXn0x1Ef+G6uiMvYsfSJxi64HrHAhFuaWhlKUv2P1gtkzu8TyKBtS40wtVLLMk1TnN+gFmUJZBKBT9Y0gPAGSOV+JKif89jYEs6VX/df6/gdZdU1UWsSbQFkEVHu2Mc6PyRdy+wZfWBT1UECqNu9xRC1JYN+8IRMcbHHnXRONWor7GoCFT2FxC1sl1deVh7q3rD50kL+KJD3f8UtNh4TYRKRTdimto2geT+wkMTzSr2sgQQ2C6jDyngW240QihXUA9tWYOfVZ4LW0HPB1OtN7xXNILpCdSOw+n1hK8DVo/xTo25W23KFPk4tQWb3Dxz08wZ5OAPLjLV2hQTGbRuh4jlGBvF4p5FvS0aGninlsdbrU4Cag+865E+KqVZn0YWgdVhI3dlZs6leSC34uvwk7hmkCT2IswrEqLI8GRgQQ7vl3zZfrAGyqT+6/MZtHfBf4ZZW7UKcWUSMSJi8K+5T7AZIjcHIDpPPGsvQDJLN06wqycU8KzxuEEPX1J/8y+SjSdtJe21iI87ZdmLm0WMcdOH1qdtWJORg0MyEzVrFy3kb7p7zr7zmUCIGYWW4= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 15d2c3f2-4eef-4278-7ad2-08dc804d0088 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 May 2024 02:05:39.1057 (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: GwVUgX/1QgC+c+nyFocwkN5nJ07NI9pRk1QgFbnGP2Jxv8hp2pkUNloodZKmOZUB6QEw7XrUWC0p4jYGfZosiv9sg7Wgvt/hg/0DjoVucn3ZyHAbwEXZxuKsKBBYCJBc X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY3PR01MB9900 We already have for_each_endpoint_of_node(), don't use of_graph_get_next_endpoint() directly. Replace it. Signed-off-by: Kuninori Morimoto Acked-by: Dmitry Baryshkov Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/dss/base.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/dss/base.c b/drivers/gpu/drm/omapdrm/dss/base.c index 050ca7eafac58..5f8002f6bb7a5 100644 --- a/drivers/gpu/drm/omapdrm/dss/base.c +++ b/drivers/gpu/drm/omapdrm/dss/base.c @@ -242,8 +242,7 @@ static void omapdss_walk_device(struct device *dev, struct device_node *node, of_node_put(n); - n = NULL; - while ((n = of_graph_get_next_endpoint(node, n)) != NULL) { + for_each_endpoint_of_node(node, n) { struct device_node *pn = of_graph_get_remote_port_parent(n); if (!pn) From patchwork Thu May 30 02:05:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 800693 Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2057.outbound.protection.outlook.com [40.107.113.57]) (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 2346B1B299; Thu, 30 May 2024 02:05:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.113.57 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717034761; cv=fail; b=IWk7dB4wSnlHTey5vua0OZ51X7yrDy/gn4Jf2mwVjK8aHxRI0I0OxJm6R2Qk8G/54O5MywvLbBPVQRIei6CBD+b8tjKEAX6406e/2Oomb+0dZ/YcFF/oVrC/8LRY4qcLuKjZPPVkbb9VvPULy70gQWrsVYAEL3VYQ23Hppw6N7g= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717034761; c=relaxed/simple; bh=jMWV2tOCFT+tH5YSEcEM1qE+Db6K54NPiGd0CJ3jOh8=; h=Message-ID:From:Subject:To:In-Reply-To:References:Content-Type: Date:MIME-Version; b=uE29EmN5ZHxYhnq4bTAjV9qgQqBjPgfjNlHvHVRdl5iw6/d0ntV7r3YJ9/GXLj6CTqaT3zovsUJQmpwCUUhOiNjMLvkJ3uv7AbrWJhKCCrK4DayfQUxiq2JhnpANJpXfJSJthsnAS2EavpuqN2o+OPaJR2aLRtNpnpGlSuq4lag= 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=EYQb0Lin; arc=fail smtp.client-ip=40.107.113.57 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="EYQb0Lin" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Nabz4HtLjmGD+J6IcrJdRJnGezr/i/wQxC046nANn600WngzgxGdAKdRl8Dc+YJMG0Xh/TLdzGuosv/utkEdbvBvWUBXc+FoxwSh1ikcSYqi/ppqITB6+XZknQBJrPJP/fVea8GprTrSpqJlU7teDqj+zI43aWwCI+wyhLEFwJ3wWs5z9NGqqPcKrmfno+5V+sNs3WwFWoVKKyVUY1oxlT0bnLobZvxOo6stm2UFLV2zx3l+x1Iy7QDrmTcKt84Yj0WivSOXIb79nRHV14eQ1FWcGsqyg4spuV2tKdI4EtjpBVnKXvc6/+iRBLmVroJB2MNe24iQ0LKV3ZFPBMUeTg== 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=REllXbKiXbTph1LoY5sZTemVlDAhDPlDjVQgZtSkG30=; b=HChtLQI6wwcXsNZSC96qHI+6WzPU8mBp6Sz/QBzrULTfH/QFZNF1EM7juQLbVeqIZnFAdMwHVoRCaDC6vj7kAE6CR1HaenEM1SlYna6iq94K23+rRMvD+/txrwqzUwpe8kwYVoj1tGwzMYRDtL8G5T59PCE3vOD1QR3i/xmPfdPsA3vgMCUbEaavC1LYb2QecVmmAHnZyEJNi1eMQVxc/TQ9VAFv58uZmck+3iq95eve3NhkJJfYY05o9m4XC81XxOaKPIvnPve6uHaWRfav1r4H+6amr8obzvXc5SKlLxJ/qAyxj8zolqQAIAs9JWQpbobhs7AOcBrPiV321UUl+w== 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=REllXbKiXbTph1LoY5sZTemVlDAhDPlDjVQgZtSkG30=; b=EYQb0Linfzskw4OyxANtjtykS445NLrSZaxWXUCOSefOD7tZerMw9JTx0yTNWHvrvja8tAZE9VhzP/TGXlXhXSjxRUZOr8GMLbtA5RnTbfHCqkcE/cAd7dso2ROrybcIzP+vyA4oF4+Bvi9svuHIZm98AHmS9Hx4Zy3oqsUcNhA= 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 TY3PR01MB9900.jpnprd01.prod.outlook.com (2603:1096:400:223::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.21; Thu, 30 May 2024 02:05:57 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%4]) with mapi id 15.20.7633.018; Thu, 30 May 2024 02:05:57 +0000 Message-ID: <87h6egoxyz.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v3 3/9] hwtracing: use for_each_endpoint_of_node() User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: "Lad Prabhakar" , Alexander Shishkin , Alexandre Belloni , Claudiu Beznea , Daniel Vetter , David Airlie , Eugen Hristev , Greg Kroah-Hartman , Helge Deller , Laurent Pinchart , Maarten Lankhorst , Mauro Carvalho Chehab , Maxime Ripard , Michal Simek , Nicolas Ferre , Rob Herring , Suzuki K Poulose , Thomas Zimmermann , Tomi Valkeinen , coresight@lists.linaro.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-staging@lists.linux.dev In-Reply-To: <87le3soy08.wl-kuninori.morimoto.gx@renesas.com> References: <87le3soy08.wl-kuninori.morimoto.gx@renesas.com> Date: Thu, 30 May 2024 02:05:56 +0000 X-ClientProxiedBy: TYCP286CA0333.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:38e::19) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TY3PR01MB9900:EE_ X-MS-Office365-Filtering-Correlation-Id: 808ac797-d23a-4214-04ea-08dc804d0b59 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:13230031|7416005|52116005|1800799015|376005|366007|921011|38350700005; X-Microsoft-Antispam-Message-Info: qLqJmg8w6SVpcftne/4JlJyrmpNNfMDp73jefeZjYA9wLOtG5/+FHYSlM+LmXY6T87XYjIAxEr4hRJLk8b50als+imPsWiOtkQrrUmzMjnEo4qITgUpkvhrRhnsv+rirVk3/RWoR2ejoFIFJLTlPfZ1Q0/bMYnKKZkMzYBabSK2H7IrNPbsHIN4Wpn7MsfhMvcYS0DModLlwIBalV+t/zc9APesXMrJ5YDxKIiMVVGz1QaEIVnvDozRk7zfz/DsLJHlolQbde0KK4OrCWZV3SuM4BVK/yChl2WfaN6mvbHruIkqPlz6YGio5/Vzfi8mbF0GCO9o5yMpX7ln7P7f4t6z8CKAASxjLzlqaF2Hv+yergNok8iSE47k2dq7fr7BfJpv6d5ywIoyL8lLis9btEiNu6DXhOYQujeeCY6303EBYEBOKV2y1+3N9BJBcIfFoc/mlmtyWn86C1p1VGpCa+dXI/OFx6dM4Qk+CP61tspRBvE6QKqenqnKv5YS1t0OdIcvyxe6pSOa9D/M95pEJfBVtbtdR2eYtOWKE/XBfrQ1SXeVrQEJkUx+OJZHlzvweUDzAUAyqyDwqDwXK84uiZu3JaOtE3Zlln214tbieCuqHr4EMuYcvmQwmOR9Sp+D65t2DcDnO/0S3M/hEe15yWn0Z0NF+VWjqc4BQ5f7GECr9lxtXDoV0YvGbxKhSnHa5rovpEcH/xHJLICpdLx1UooKCEocwXrPOWTWOK9AM+AsyScDYd/4keeS1IbRxCil6n3yzIj4I+pQoTjU8w45G54NROJER0a8RIjvlgi/JG8bfitkHrUoJ9SfGJRjnb7Z2YQacPFD7Jtkxlslm9Tnt6gayYP/Qbw+3W0RODpEADuQ0hV59hbYN1rz7HjKZKqvjpakHdrJ+XYx0t7po3uZlFi5QAVjnSulxTWgPzXC7BhQvkSmJRjln940fL0DN5pKb3vt9JfOs6DXyoMUdev1bPwMisYqtQ3cDXNcWS7wf0eYT7LY1Gvk4VSohpSa51aC0/6svH+ZvozxfaVR7uoodU8RABiTuEarmlwo1aobrWFNV8yu7ruVChassf7tJi62HK1g4ETRJ1O6tasVv7xPZi14HPST209g2Ea1/NCX+gdrjtbJwk9Mv2dpASn4JIHbCc5UHqp1cZl6dn8RsosvnNBjYtSinFFootXAuRfODg6Ir9Vv3AIiwhbqsBMKdNSTY4n2kxFSQ8Jltn9n9eeFRoD5+hdXaScwD7JrfbVJr5oDSeotvW1oQC5T5OJ/ankpMMVMgm6ePsetZaOoNDKWcD4IjBAKnOwrMhikmNNuZs2NVuVDErLf6zstbT5gwgCTApiPf7swlT2MOlXtW64CeEBAAnGpGbdh5fvw0QsraNXg= 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:(13230031)(7416005)(52116005)(1800799015)(376005)(366007)(921011)(38350700005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: qJ7btPrZmA7sdnM3P8SowIc78OwZwQCkc3w+mrXKTVSzcAi4FncATVcg5PqVBz9dC0WTskqCLZLhoHEo+0kBBr85UK4N+aC2IQdrrwQbN2wQ5kWylClnS4pmvohdpLgTvwj+1lEuqYPcCC/JnVG+YQ7NxT/Dy+u2CkhYPDwyMCf7Zipt3v8g90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+IdJ6lqSIbm4EqMaQ0C741cfFOIKmVb/aY8FTGhUs6pdFr3uB+41lgzYPyBzX7Dka2+vvdVSmlKNSWC0no2FzPCMrgSvpY2J71iQ25hI5lb1Hsby8uxpVthsNJqwfMDY5UWxcUUwv8QoKMygfYem5C+dxOVbvd0IipYGuy4tcmSf5yI4MaPlQyst2a3byBr6J/c44tcmrHVIxs+Pnyycz5H0+lYM+4iNXBSnHb4ciQMl6WXnZAs9vbXxHVF8cJctmQmKzgRbkCWLLqtpWZTispPq0EdNbASE8O/mUlW59McH4uQ7QN8B+XrJT8VfSm0n7t+L+AGMl+XlAfu7/5svdhUoE3pVlFNJfku4WYEDC/7q7Z2sEi/ENUobp1vXrw= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 808ac797-d23a-4214-04ea-08dc804d0b59 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 May 2024 02:05:57.2049 (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: F7OVuVHKFJG0aEFh+J7i2I7JzG3EyXw7Q4/dXh9OHupdK+k7DAYh+SXMJlnnHtY3A/DFA6fO2PJJg+CoaLH4CtjupU7ucnGF7ebfOK/S0RYr7W1qWgMxmVVhg8ZbIa9m X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY3PR01MB9900 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: Suzuki K Poulose Reviewed-by: Laurent Pinchart Reviewed-by: James Clark --- drivers/hwtracing/coresight/coresight-platform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight-platform.c b/drivers/hwtracing/coresight/coresight-platform.c index 9d550f5697fa8..e9683e613d520 100644 --- a/drivers/hwtracing/coresight/coresight-platform.c +++ b/drivers/hwtracing/coresight/coresight-platform.c @@ -275,7 +275,7 @@ static int of_get_coresight_platform_data(struct device *dev, */ if (!parent) { /* - * Avoid warnings in of_graph_get_next_endpoint() + * Avoid warnings in for_each_endpoint_of_node() * if the device doesn't have any graph connections */ if (!of_graph_is_present(node)) @@ -286,7 +286,7 @@ static int of_get_coresight_platform_data(struct device *dev, } /* Iterate through each output port to discover topology */ - while ((ep = of_graph_get_next_endpoint(parent, ep))) { + for_each_endpoint_of_node(parent, ep) { /* * Legacy binding mixes input/output ports under the * same parent. So, skip the input ports if we are dealing From patchwork Thu May 30 02:06: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: 800294 Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on2076.outbound.protection.outlook.com [40.107.114.76]) (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 C0290208AD; Thu, 30 May 2024 02:06:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.114.76 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717034771; cv=fail; b=KQ7mk8VXVoAxtk1ZwpT9BTNAZrPMNNwc8tlObh0bHs2nLvCgw/Tu+tPFgjLAoEGOPVqvgYmejQyBBYHV7bjQLbfnnihntMPi4E6DuyR+GYAv3f+9NmMF0M6O8sUXR6GBDf4WI21/+4+GGbwHC3+zjRySMvRIgZV3g/r2zfoa9iw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717034771; c=relaxed/simple; bh=wKjEPyL1kLmEa1RWUv0Xk7JzIG9DlELiQlr9OfVxw3c=; h=Message-ID:From:Subject:To:In-Reply-To:References:Content-Type: Date:MIME-Version; b=P6Yj+Fi2WNUxX1N1ngrBloVXjDjE/wJj1wx9IoQP+Y5+34EdZU4IuF4vgkqcI19YI5nei2q1nHxkdHCXlGVqJL0YOqZv1kO55WCLnwAo3m8W/uhAUJ2JTzrbUIIL8jgWNu5eDSgLw2f/s2YokE5BBdOoa1Q9tIMyUBWleLJUNMI= 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=UityBz68; arc=fail smtp.client-ip=40.107.114.76 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="UityBz68" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AWKE6+6uSKg+IqhIpn3Lkd41gMOLARfrruM0uM73Zs0XQad7eb1v3g3PZXQa5EnGZkDLmCQ5dK+nJxlcX1LGJjm1+ajnJ8bWC75WuifxVPI7ayKQY7Wg7yZC9DJSH+DvfnCrSBQ6qUHrbqP9sit+CuB+ibno4ZjZ6ofaTS+KaP6KhnEk2arCdlw251EiI6ba9jI5BeMwMWA/Nds69HHIniHOgXc+yX+kAJVloPsow1GlKWcoYrqup7GUjnZdoJhhG3npu5f9M6lEoRHd3/X7uw547J5aTixZyHEroJLYAaCdAvKWzj6q5XEaduQjf1N3+HxEY3Fk3DRLRIjsQLc2qw== 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=9rI+ZNkzrLrVhQsiJK5pQe/ZrYozduef8K4ZYQXjwTg=; b=UoNh+nRfGNRs9xN1167FKeh0h0ctgA5zRE537ocfiVUx9tcyquvgUMT7t/QDTs2AVWVsTxJ4VtrxD2Auw8p6/NcLMLtXnHZv5vjrf5FSVCKuDWavP9zFkMkq95FT8cpZP77fBbReVNl+w8Vaih0wTJpocrHVnx0pmEl8ZhF8nbU+XwuKRAwcOeZRl7xCl30Tc54e1XWDjhgUdphVrmqXfpXs7A61imjH9lNcOJhMQ/J50ueMHB+PQiX1objVxSRBU2AD19uAmVzIfZiSNLNvEphs2u5wi0bTV/FsttiWYOcck5iyCrjRqOHmGIkgBlIX96mpru4DcELXYEbnUfx/sA== 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=9rI+ZNkzrLrVhQsiJK5pQe/ZrYozduef8K4ZYQXjwTg=; b=UityBz682bwzibkssJZ62HkBA1+i/6ZcIZenD5i3ASGhedQ46ZKIjhMLydgO17k190WvxUG0DWhrKcriLhKp1heB2+9DdgFrlY2WGIn255kCExcgF7u2EAgrin0TljLBmEaZdJvOyqSfGsP+v7/JrIjBdx2KBhxM/2LoSeCGJXk= 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 TYWPR01MB10240.jpnprd01.prod.outlook.com (2603:1096:400:1e5::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.21; Thu, 30 May 2024 02:06: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%4]) with mapi id 15.20.7633.018; Thu, 30 May 2024 02:06:05 +0000 Message-ID: <87fru0oxyq.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v3 4/9] media: platform: microchip: use for_each_endpoint_of_node() User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: "Lad Prabhakar" , Alexander Shishkin , Alexandre Belloni , Claudiu Beznea , Daniel Vetter , David Airlie , Eugen Hristev , Greg Kroah-Hartman , Helge Deller , Laurent Pinchart , Maarten Lankhorst , Mauro Carvalho Chehab , Maxime Ripard , Michal Simek , Nicolas Ferre , Rob Herring , Suzuki K Poulose , Thomas Zimmermann , Tomi Valkeinen , coresight@lists.linaro.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-staging@lists.linux.dev In-Reply-To: <87le3soy08.wl-kuninori.morimoto.gx@renesas.com> References: <87le3soy08.wl-kuninori.morimoto.gx@renesas.com> Date: Thu, 30 May 2024 02:06:05 +0000 X-ClientProxiedBy: TYCP286CA0118.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:29c::11) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYWPR01MB10240:EE_ X-MS-Office365-Filtering-Correlation-Id: 1f2e7dbf-b581-4eb6-36cf-08dc804d1074 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:13230031|376005|7416005|1800799015|52116005|366007|921011|38350700005; X-Microsoft-Antispam-Message-Info: jGrNdwinyNqNOKWmNq00Qbse5RNM64lzHgcAdmHAAD3b3zTRJlOkrHrWTF/qYl+qkgn4zctj9BA4rB2y5ZuQWGn9o49KIH3Q3eWdKSCGih4BWlY4fh23LxqfOUMqXW+6MVH+Dp40Glph4m7u86DKZgYKoiS3pa9F4v+/n/Dc99H3mf6NadabvhJS3DN8ZMzh0zolaeJ99Ij9lpLxmzyHPchXg/R5VTZnH+1uzbZgH6fcdKIFjrbx5GIQ9o78e93DPfOSTRhiu3ordnIlxzq6CTlgONpz9v56tp33nygCZ8MY5cIteJ1dwLc4AFAklrbjz+dtkNchVCV1YufZ7CIZLwM7a51dFxOE8BaFssjS5Lq2YZW2BnEfEHXdVyOBFN8FNuLn0DKBHkJCFuGNAeHhbTTSU5Jq2Cy9wCaH8HY52DNhX5S14GfLyZ9cbQNMZDLHyvNoyRhFvOHxWAu6IlaapF/UTl4txRS1myy1IYMdaAc7N1DRFjzmiewWqLqIEet9OFmkVyeLp7X1b+ZxlIC6iRLnnJktp+zCswivwR47qA7zr76YdHi+TiLJzYeYuFAsnzjq396YHCuOsrIaUpFRb6DfYF+1xy5YrY2Dm5abuPPmRO4taeJhA3dRmGMdq2Kg+Lqfsk+udqZ/Lb2vWLP7p9yt3s7ubt2ZdEQnH1TdQHDnZABofUkitjZP135XcDfaXkT3lILpdaTdYtwOGA0qd36fliDK6Cif62ilHerBFp3FIOWr7cOErWZAY2Vg/oTyL/i9IHY43As9Rrwe2bFj3mtYI6aJYjQcR6E/09FsARO75HigRgG2O0szO6dv/dbvtH6BGsnF9X9KS5i9zvdInIZa0eap9nrh4WXJdNfZa5z/nyUmJrLliFbwmVu8u8N7U2AYaJ88xwlTtB+Jc6aPgeCPKxbSZK2BTrXj7PpZzVQGiwfl6T1ouX9jXNNAmK0Jwz7RBh1iCKjCSCOO+/ric7CkFPxTfbMBKYm9UI1LsP+7p4XSyw7ENuuNN4hWUiMAF+pNjZ1XVUAmfwT8T3ud5skNLStLE60KLxQYlxNUKvVF7QSK41QHzWWqcFjDjJWMgwo73K6Oc6mV0ltJPDWWzqvwF0+ZTYQ/omUauV1F7wKEAjY8NrhaX285jl9gACXuZXhfVh/3MqwhVPaouxZWUiK0ampIK9/HkSoh1k+K9+tAeKFdwMILk56rQYKKbUa+VordRJKLz8hefHf7dfuuRKdUQyeaop/xxzKp2Wuc5TQXRuJlVFZ86ZB9JGQisfM4xLByk583iDiO5kzQ1eYJKY5kw9+8P+mUQNLZPKSL6clcI764F0MlfmPuXHqF0nm1bhhbABFmDVg7vIN19+E3DA== 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:(13230031)(376005)(7416005)(1800799015)(52116005)(366007)(921011)(38350700005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: phayKQNkx/q9LdipMVJvK9FzTb1jrk44mkahXVIjOTaMqUMBHc/YgdPvAtFp7I7BdVBxZwXPACiVoS7bNfmpaF9mrs31j2WzbIQnknvkedEk7rqPhYPvvyeWLWYwM47O26oVrAqzkCRgbojwLa3beFvgf52BPSWV1ifrm0F+bisZu/cXPTMnmZkcquhdSczMaKkTWULPkuR0ZUOM0fbHf1eitoJCUy0Tf0uoX4ykwXRheu1lfgGZiy96qlDR9ySRRIhiwgEoLhqExnfDYVWgOwk+jRe7TXRu3oFVV6iEsZcChbIjp/zA55VmVETecQVz3/HWvWRXASO8xle4Fs//MVLfuiYsdK27XyVz3MXHgAUKMSciDd2yA4OXvMZFYSeQIo28WC/owQJKxafm97JmIbgHP7ebDrjbUw+PH2LTpHKu/7vUM3NML/t8Gv+ZwuoE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EpaqZoi1I+M164Ct/NNVNkwNwX0rAwHnwWwMvyTTwQcI3wMl4M2dubMAIweYCbsocr8xOK8ETiwtiHhqdu+5287pPurPUvsjuwetq5n5uPq6pJqpM= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1f2e7dbf-b581-4eb6-36cf-08dc804d1074 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 May 2024 02:06:05.7910 (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: oRSW/hGwduQHN+XcHcN6t56j71DwthOSL5sT1nUDA0FeOQRNiQvSGcoYrk/3bM+lNhSgegGW7mz/HAQHlDBI7fnaDh3y5yOGK+vL2ibEhn3bsv0JCCx05WV5w0UV2Fhb X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB10240 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 --- .../microchip/microchip-sama5d2-isc.c | 21 +++++++------------ .../microchip/microchip-sama7g5-isc.c | 21 +++++++------------ 2 files changed, 16 insertions(+), 26 deletions(-) diff --git a/drivers/media/platform/microchip/microchip-sama5d2-isc.c b/drivers/media/platform/microchip/microchip-sama5d2-isc.c index 5ac149cf3647f..60b6d922d764e 100644 --- a/drivers/media/platform/microchip/microchip-sama5d2-isc.c +++ b/drivers/media/platform/microchip/microchip-sama5d2-isc.c @@ -353,33 +353,29 @@ static const u32 isc_sama5d2_gamma_table[][GAMMA_ENTRIES] = { static int isc_parse_dt(struct device *dev, struct isc_device *isc) { struct device_node *np = dev->of_node; - struct device_node *epn = NULL; + struct device_node *epn; struct isc_subdev_entity *subdev_entity; unsigned int flags; - int ret; INIT_LIST_HEAD(&isc->subdev_entities); - while (1) { + for_each_endpoint_of_node(np, epn) { struct v4l2_fwnode_endpoint v4l2_epn = { .bus_type = 0 }; - - epn = of_graph_get_next_endpoint(np, epn); - if (!epn) - return 0; + int ret; ret = v4l2_fwnode_endpoint_parse(of_fwnode_handle(epn), &v4l2_epn); if (ret) { - ret = -EINVAL; + of_node_put(epn); dev_err(dev, "Could not parse the endpoint\n"); - break; + return -EINVAL; } subdev_entity = devm_kzalloc(dev, sizeof(*subdev_entity), GFP_KERNEL); if (!subdev_entity) { - ret = -ENOMEM; - break; + of_node_put(epn); + return -ENOMEM; } subdev_entity->epn = epn; @@ -400,9 +396,8 @@ static int isc_parse_dt(struct device *dev, struct isc_device *isc) list_add_tail(&subdev_entity->list, &isc->subdev_entities); } - of_node_put(epn); - return ret; + return 0; } static int microchip_isc_probe(struct platform_device *pdev) diff --git a/drivers/media/platform/microchip/microchip-sama7g5-isc.c b/drivers/media/platform/microchip/microchip-sama7g5-isc.c index 73445f33d26ba..e97abe3e35af0 100644 --- a/drivers/media/platform/microchip/microchip-sama7g5-isc.c +++ b/drivers/media/platform/microchip/microchip-sama7g5-isc.c @@ -336,36 +336,32 @@ static const u32 isc_sama7g5_gamma_table[][GAMMA_ENTRIES] = { static int xisc_parse_dt(struct device *dev, struct isc_device *isc) { struct device_node *np = dev->of_node; - struct device_node *epn = NULL; + struct device_node *epn; struct isc_subdev_entity *subdev_entity; unsigned int flags; - int ret; bool mipi_mode; INIT_LIST_HEAD(&isc->subdev_entities); mipi_mode = of_property_read_bool(np, "microchip,mipi-mode"); - while (1) { + for_each_endpoint_of_node(np, epn) { struct v4l2_fwnode_endpoint v4l2_epn = { .bus_type = 0 }; - - epn = of_graph_get_next_endpoint(np, epn); - if (!epn) - return 0; + int ret; ret = v4l2_fwnode_endpoint_parse(of_fwnode_handle(epn), &v4l2_epn); if (ret) { - ret = -EINVAL; + of_node_put(epn); dev_err(dev, "Could not parse the endpoint\n"); - break; + return -EINVAL; } subdev_entity = devm_kzalloc(dev, sizeof(*subdev_entity), GFP_KERNEL); if (!subdev_entity) { - ret = -ENOMEM; - break; + of_node_put(epn); + return -ENOMEM; } subdev_entity->epn = epn; @@ -389,9 +385,8 @@ static int xisc_parse_dt(struct device *dev, struct isc_device *isc) list_add_tail(&subdev_entity->list, &isc->subdev_entities); } - of_node_put(epn); - return ret; + return 0; } static int microchip_xisc_probe(struct platform_device *pdev) From patchwork Thu May 30 02:06:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 800692 Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on2052.outbound.protection.outlook.com [40.107.114.52]) (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 151CE1BF24; Thu, 30 May 2024 02:06:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.114.52 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717034775; cv=fail; b=P/5PauyP8quoVsK6nCgjBp1cA5GFEWmlUnLgzUexyxIUhsRL1sbyps1wCGssxmhCsEN3D9/efcBz+9tV4DObFOvkqBE0x0VkZu3Fz/QbrRxXDQZqdTpI0D/FxC05WdOhfvmNARbVTAKeAwADOZmVfzmJboUy57OOaQ3NqCtdnYQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717034775; c=relaxed/simple; bh=8ZuGsgrdGcfp+QgOSFkBt0AMtXm/THslfJQyRrMCYYg=; h=Message-ID:From:Subject:To:In-Reply-To:References:Content-Type: Date:MIME-Version; b=oCUUHFcLZ6ifSXI52l+c/zX4ig4gLdK3wiOgoKeZcW1s3sSBA/+/jiY6hdzCmr3vWroIdA/w0XEK9hopwVtJzbO+9PE+Wc8nvdw0PWEW7v6lj/kmuwgJhg5Nvmh+5kC+d+CQzBZeVLiFWUklihY+E1EPSojZeHk2KsBhRZQ/feY= 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=birZSt60; arc=fail smtp.client-ip=40.107.114.52 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="birZSt60" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dtbjcjPYnl6EZtrGScC2QOSUTH5lc2+bI/ps1nfVGJEp74i+lacPqLZB15Y17aRtkMRaJZPTt+67b3718TqZvLi7A+M3GaE213gW3GgpQQnvTssiB6bKGxRSiU/wLvAgXlFkwguQyTat2K62zH5N7Huvo1L3vTOpVzwAqTWvbYWZ0iRafJO8PEePH2nWbfCSt0S/Wwd8T411PBR2LS3Dxo98rUPrpUX7kZv6yGbObF0hHwJMl78OmYvkaa+6pG86VHooXUO7W3RVgPTsOnn5AWVEgeFGPcS4leta/Iuvb6Eo5itG28ynWGdCi5HjL/maRBAFyaiKmjacmzdRAMwLKg== 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=gjGsaR1b+XxwTO9Q3/woPdYTEnq443MXMgIOL4ktaTs=; b=j+g0J3CiU/kxy34tATq2uF6L2ZR4xQd6gXixGGnkR27O3auelcHTN05CJ2qsfygunOhA7832lleUOqspJd3euG64T7Vfj13LFqY7rcJ8D+IH072r9qYyKagY+ZIUXFWUlE3UGv7sRIff5diuM8fX0/VDkM2fIxsFQ4BVlq84c+2sBtViIgsHfHEkjtXRCuIRBd3m4ISwJ82dGakPkAdDfIzz/Dlbof5qglaVCUxHW1vKRXhu1gcieVTRkPxBvqpdRE/IZrKTSoWA/gEmykleGivGZhvbBlzeO/A9dwH5QYgIKF62f25iw8YxGGcRMx4LeTTKK1I3X7kGeBWpGJa6Zw== 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=gjGsaR1b+XxwTO9Q3/woPdYTEnq443MXMgIOL4ktaTs=; b=birZSt60Lozkygvd/UX6aiOJY/O2vPOm8da3OSjhPU1CKhs0Rd9LCj3JOfOJhKH/dotDXQ4M2cMDr9+OzgUDtaQLZa5d7pYcenQulthuy54RMJo8FJJsB1Yt6qYHkw+GX8BFG6HhxGXrqLv5BvFYgoxgbPPtrylFYMiQXUe/PMs= 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 TYWPR01MB10240.jpnprd01.prod.outlook.com (2603:1096:400:1e5::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.21; Thu, 30 May 2024 02:06:11 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%4]) with mapi id 15.20.7633.018; Thu, 30 May 2024 02:06:11 +0000 Message-ID: <87ed9koxyl.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v3 5/9] media: platform: ti: use for_each_endpoint_of_node() User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: "Lad Prabhakar" , Alexander Shishkin , Alexandre Belloni , Claudiu Beznea , Daniel Vetter , David Airlie , Eugen Hristev , Greg Kroah-Hartman , Helge Deller , Laurent Pinchart , Maarten Lankhorst , Mauro Carvalho Chehab , Maxime Ripard , Michal Simek , Nicolas Ferre , Rob Herring , Suzuki K Poulose , Thomas Zimmermann , Tomi Valkeinen , coresight@lists.linaro.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-staging@lists.linux.dev In-Reply-To: <87le3soy08.wl-kuninori.morimoto.gx@renesas.com> References: <87le3soy08.wl-kuninori.morimoto.gx@renesas.com> Date: Thu, 30 May 2024 02:06:10 +0000 X-ClientProxiedBy: TYCP301CA0069.JPNP301.PROD.OUTLOOK.COM (2603:1096:405:7d::9) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYWPR01MB10240:EE_ X-MS-Office365-Filtering-Correlation-Id: 3e270c2a-d1f9-43f2-6499-08dc804d13c9 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:13230031|376005|7416005|1800799015|52116005|366007|921011|38350700005; X-Microsoft-Antispam-Message-Info: A0a16wCTaxgvdcabJ/merXRjFpJiFMPjobF6/vL/2BkaWwJOp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lCbA+aNaSOkxT7dHDjWiSyl+Y+V8L9D129uTq/k3tnmrsZMNqLU0hg1ThZtlw68LlkEVNuPk3Q9PS1e6Ahp4aa41qNTqHwxcMse6rQjORVpa/ip7Mzk/6NKnBgjE653upKqOK0Cn1CVTGRo4TndzFnV9OaVbQvL2TPMIWBJ695d2MFOR/b0hbFehkZMPoQQTCIgCwfXOkXkDhicowQk70+VGkj32awMTqFvYsfzik9GapbKt4DDcrQkj0KjmTUgJHcHSxeMgjcWwoRnIjc= 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:(13230031)(376005)(7416005)(1800799015)(52116005)(366007)(921011)(38350700005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: kfsNTyfeJVeCUT6v1C4CPGz8Vaq5F2mb7H9RtDCsPTn/63Kv4E+kU2toiTFPZO7VU6wnydNZgUQg6l1j3CsKp22RKjWxRRq9xEXxn0ijDDDO0cT7ok4rPL6QZHhhx4ApLHn87RN4g7QXFto1sSk4+Etwcd04e3z3hEKRGLP5dcLclriMWZint4kd6KogryWvKb2kXLoP+3fIoopqMGVNBG957pd4TkJBaSRcEoW5W+PC6Ii/bZtVis9pTJf5NNxi8OhJfTiLHQCJ0KiBetTEwwZgSzSZs3ovGvkRqCp2GtFIni9IHbMAMfL23FbLVJ87o0DTnSwKA3eZOlip37Cj5J+PkcqrmxXnPKmDOxGZiEoHPk/r7JGd3/OMTLxZuPC29y5icJU0l6H738RHtjjj0T4dr/VOd4gD4ikrqfRx2p/kJdJ/g/ZYQv2wnML1mYxBWekZeGvc6Pt/YPVxSy5dEYTkHBzPS6NfBcWSRf1yxdEhfQ0KqNC7p8/sQ05+lSS56AprVgF/ZHD9XN6fWV2o12cqidnvUQloosIboRxBVBo7M6wy7ji56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com X-MS-Exchange-CrossTenant-Network-Message-Id: 3e270c2a-d1f9-43f2-6499-08dc804d13c9 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 May 2024 02:06:11.3906 (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: AIDJN+GKJv0+tciRAkWrN/bhdmscUzH88HIEtclcROmwQvoWoVmH7HQjoFjNV8kZrVp9KzNC+Qwkvs6LdjTWY6bNfTlnN8HPG9lndboIhXE2XNYzEYU5E6BljPGi68/I X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB10240 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/ti/am437x/am437x-vpfe.c | 12 +++++------- drivers/media/platform/ti/davinci/vpif_capture.c | 14 +++++++------- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/drivers/media/platform/ti/am437x/am437x-vpfe.c b/drivers/media/platform/ti/am437x/am437x-vpfe.c index 77e12457d1495..009ff68a2b43c 100644 --- a/drivers/media/platform/ti/am437x/am437x-vpfe.c +++ b/drivers/media/platform/ti/am437x/am437x-vpfe.c @@ -2287,7 +2287,7 @@ static const struct v4l2_async_notifier_operations vpfe_async_ops = { static struct vpfe_config * vpfe_get_pdata(struct vpfe_device *vpfe) { - struct device_node *endpoint = NULL; + struct device_node *endpoint; struct device *dev = vpfe->pdev; struct vpfe_subdev_info *sdinfo; struct vpfe_config *pdata; @@ -2306,14 +2306,11 @@ vpfe_get_pdata(struct vpfe_device *vpfe) if (!pdata) return NULL; - for (i = 0; ; i++) { + i = 0; + for_each_endpoint_of_node(dev->of_node, endpoint) { struct v4l2_fwnode_endpoint bus_cfg = { .bus_type = 0 }; struct device_node *rem; - endpoint = of_graph_get_next_endpoint(dev->of_node, endpoint); - if (!endpoint) - break; - sdinfo = &pdata->sub_devs[i]; sdinfo->grp_id = 0; @@ -2371,9 +2368,10 @@ vpfe_get_pdata(struct vpfe_device *vpfe) of_node_put(rem); if (IS_ERR(pdata->asd[i])) goto cleanup; + + i++; } - of_node_put(endpoint); return pdata; cleanup: diff --git a/drivers/media/platform/ti/davinci/vpif_capture.c b/drivers/media/platform/ti/davinci/vpif_capture.c index c28794b6677b7..16326437767f8 100644 --- a/drivers/media/platform/ti/davinci/vpif_capture.c +++ b/drivers/media/platform/ti/davinci/vpif_capture.c @@ -1487,7 +1487,7 @@ static struct vpif_capture_config * vpif_capture_get_pdata(struct platform_device *pdev, struct v4l2_device *v4l2_dev) { - struct device_node *endpoint = NULL; + struct device_node *endpoint; struct device_node *rem = NULL; struct vpif_capture_config *pdata; struct vpif_subdev_info *sdinfo; @@ -1517,16 +1517,12 @@ vpif_capture_get_pdata(struct platform_device *pdev, if (!pdata->subdev_info) return NULL; - for (i = 0; i < VPIF_CAPTURE_NUM_CHANNELS; i++) { + i = 0; + for_each_endpoint_of_node(pdev->dev.of_node, endpoint) { struct v4l2_fwnode_endpoint bus_cfg = { .bus_type = 0 }; unsigned int flags; int err; - endpoint = of_graph_get_next_endpoint(pdev->dev.of_node, - endpoint); - if (!endpoint) - break; - rem = of_graph_get_remote_port_parent(endpoint); if (!rem) { dev_dbg(&pdev->dev, "Remote device at %pOF not found\n", @@ -1577,6 +1573,10 @@ vpif_capture_get_pdata(struct platform_device *pdev, goto err_cleanup; of_node_put(rem); + + i++; + if (i >= VPIF_CAPTURE_NUM_CHANNELS) + break; } done: From patchwork Thu May 30 02:06:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 800293 Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on2049.outbound.protection.outlook.com [40.107.114.49]) (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 B511C208BC; Thu, 30 May 2024 02:06:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.114.49 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717034780; cv=fail; b=jqVrQCDVdm9rgehWUI8jcRhGOCDrngr7fDwlfRLao/4yYRH1oxtKFIYyV7Ci30kMNYZZS5bRba1cI16NKj+Zwfd/8yHJymZ85Vx1JBRd3iqL5EzSgX5OQZq+c7BEjjcIO0/ZVUuJ7Me1e/EXLR/NiEhR2ZhuCZ5QAze/uP/aR0E= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717034780; c=relaxed/simple; bh=uceUvCGwLuoMrbqNp+yNdos4nDNpPBVY4SNxjeyFpOQ=; h=Message-ID:From:Subject:To:In-Reply-To:References:Content-Type: Date:MIME-Version; b=jQeN5RmW15T9gyokPU6vzg8PahUfdb3hsGQ0x1Gco2LNCunvvJLnei6xE9u31Duy9Qg2kzzABvipHJt8fCSKRw31sVg75nbjmuAmwFStYekuaqZfzI/xwndi9jooQul24r5qRv9YQ7BHX9p+N9yslw9HpBrCbqxX8uUnDA2wTY8= 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=oHujOBbQ; arc=fail smtp.client-ip=40.107.114.49 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="oHujOBbQ" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GtkTF5fD6uChLKjxdIxu9ImDOSbgF15ItY9NyX2jSeVxMHYcnpYwcwaydcFw+2cTP7Gck5c70aF7h3ZcuDBNwmdOnNo74FghO8HjOL9I5/FyYSdlrqWiqVhkAdzWpKy1aXacLZnNPCj0tJQ3pa+7zg4pmBnSjBdeUt9hldDQn2q8WT4CzUOINeeiY1DZoTBIAUMDJEMS7t8G3EJ2h22B/6zqfLuYAHyYyfgD+J+5v0NTL7YcdNWNjlziVTH1oMKyo3I+ehkYsOzngtxIk0yYaQb3J4/h1BmRNLiNgfft5QppL72dZrIRk2WZscDmfgmoqbO0FMJ+4TgQFonKSBYsQQ== 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=TzMCVV5NPWYM3brKH+nwYP+wX2ZizcEpv6rpzs6d6YE=; b=Uu6cSaWW9Rd4Y4JNtVFryGDgZ1Y8gQ7qXCYRMjCes8/HWWEvdt4Ah1GLFroz48ukjXnlFG4KCaTlLcqFpE/SmhziD24AOhV4Aztc3/n0psE831jEP70upgKk/ce7v6/AhjlRFuK6LJ/iK7PQJfUdUPZ7YWbc/75aV4Ig4gAT1Rhx32adb0fNP51P3ArXDrrUjjyZO3dRUVCYt3dbBPVhA8OvL7/J29HUD2BiPzEbsc180CE7FCn2vA+d81HW/dJCukhZz2FiFsr6XXX7ba6sWT8H3Gd5sDtewz+fUIx6u/AbM1CQEqOw235/zND2j4J3BImMLtZ69p55Vuq486e3JQ== 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=TzMCVV5NPWYM3brKH+nwYP+wX2ZizcEpv6rpzs6d6YE=; b=oHujOBbQRQLshEs2SXXmcygjv5BbtZ/lcDLwOflAYwUCpNMXxdDOpH6URFjhXO/9a6B4PDmqFUrl6W5utEJdlSRcOlyF41SmZduQOujLtYMri8GAvupCb5Wi4ktP9FktQsG8EIYhhQEWPbjdH895poLDJRFsQv8UDQuSLJIpdS0= 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 TYWPR01MB10240.jpnprd01.prod.outlook.com (2603:1096:400:1e5::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.21; Thu, 30 May 2024 02:06:16 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%4]) with mapi id 15.20.7633.018; Thu, 30 May 2024 02:06:16 +0000 Message-ID: <87cyp4oxyg.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v3 6/9] media: platform: xilinx: use for_each_endpoint_of_node() User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: "Lad Prabhakar" , Alexander Shishkin , Alexandre Belloni , Claudiu Beznea , Daniel Vetter , David Airlie , Eugen Hristev , Greg Kroah-Hartman , Helge Deller , Laurent Pinchart , Maarten Lankhorst , Mauro Carvalho Chehab , Maxime Ripard , Michal Simek , Nicolas Ferre , Rob Herring , Suzuki K Poulose , Thomas Zimmermann , Tomi Valkeinen , coresight@lists.linaro.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-staging@lists.linux.dev In-Reply-To: <87le3soy08.wl-kuninori.morimoto.gx@renesas.com> References: <87le3soy08.wl-kuninori.morimoto.gx@renesas.com> Date: Thu, 30 May 2024 02:06:15 +0000 X-ClientProxiedBy: TYCP301CA0066.JPNP301.PROD.OUTLOOK.COM (2603:1096:405:7d::7) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYWPR01MB10240:EE_ X-MS-Office365-Filtering-Correlation-Id: e4cc77ef-ef6d-4ef7-8fbf-08dc804d16cc 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:13230031|376005|7416005|1800799015|52116005|366007|921011|38350700005; X-Microsoft-Antispam-Message-Info: v+RxCrn4k7gWXnDkavsHHYKpktUZbOlld0ggo3kvGJlRUsu8DPeXbgv6TlK9I0/ywuFtqkmeSwQMKb9TM61xjkq97DUPhfufvO8Pb30RxrpgU+tNlb6VqD/2e/ln9Bo6HT9apk8c1Zp3hrXhm+e588ZLrlvEpTd7cpG9PatgAOw7t8gIASjVzKpmZnZgehM6KlXYgPRgnyeF+S/sUD5eNLpJRvPnvU2fguHQqj3gRzZv3aNmONkzN2FlNGp5JOuwaP15hOmGcXuPvSpAtGyxUawNEjfF9MRRxOBHSJMeOVNExe/JVrdhGqeY9jeVUsPvc8KjhmUAuMW7dhOJCiYRXSVK84f2h3HnzbbDviwZcHoL3EdsGWYOTtIF7JzZkBoKpOBFc1rna1cfzvimGZWE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od.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376005)(7416005)(1800799015)(52116005)(366007)(921011)(38350700005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 0Oi4nsCbeaFp/xCFHUDbetyvlbeTMFnaWkJZZB2mQG7PpkjqaUN2Fxr/IpqpIlpQ/75KKYxkXyBgIhnr/t+gDhsZW5RYinxXkn5LjGT6+7DygAcV0RIqN1ltv/tzYLCCpPSr4suXdumwr/PU4mea9Y2jNasiKMvZLti5NW0zp0o481np7/VpDLPn5rO3PMFBqhOvU/msS2LJXFTmoVeAT3I5vxg/07bqmFzzyKrdFircwcnZTmdSyrsVHH/1yl449gW5Qo7p6Bua5+xwb4QHFRf9p4143ehknoqJLHFtadOc8ZCDIeeeiGF2qLkwBdR6mHYs1PuS1jb0b6pX8JJVMmpfeBQeTYBlam6zd5y9VisFvyEtE+t4JSI5kYvx+kOVtTlNRLJF0v2YxV878HW1P7KyLFRHlcG3ZjGpCFu5b4td2dWfxKhoIp7LtLHa4hJcTp4BGbvydxNiXrrHoUsTOuRLeyfjANGcJJb53s5hSYy0BA0533ZTCYgFJV45u+HjkaUWekaP8yJN/hhraZAqnjFRwibRNDR5Wp5SEu96fHvzVcCxUk9hvzkVGHhhIdfpbqUw56BpCBkF/vuP29F40q82AXCLAuHPMYK2HLU6CsypsEw9pbqdCuyxgf/WTeqKqYv8tr/mJzWzqVbgPoUnmCp26CoGg/ztXk0p1oeUDp18WKwh9gMzFn8GrsAVRmIHZ84pZNv7dmuq9cE+MIQAXvSE9PDoLrqiz25F5Tu6VdZkWEsBJ40Mwaf/lEGwbmWgBdTatqYKvr7jthfmCJpeiMTrcQXt1R1v3jpXQZVflW2ROiz2NEjS0Mgvi+cZIrzyr8IDnvCPjp94F/OXxKK7lIjLEjANXf4Rn3fSceNvlcGzExThVsPSLbn2vtNI62wHX7tLqtO8YO8sEljy98BfMkEeIJglm1JwucI8KKHqevNlI3OgdMVpadiJNmhJkXvsRZQIv4z5RyDeRpDhtsWUn819oo1fRf/6nlzNOYAxpdGQvQ/lP9vvlpKQbnLP+HwBZomRVU09+46hAHecBLhQnszj4UvU5lkgnYcuPzpMqtQOcuU9ECJzrlw8XjXd9o/qtYDfcRPMhPCpztagcjHfJcvH6p6lBUrI4ytS0Y725KEU5NZrp0khpw6XnhlASeN5/wWJ83xeiZ71Mr1n7nni8VDi6EsevtHg5xyJn3U3Uf/RGL39PhGEZkSAaF+UeaaXHsyLfDMNuQro+gdpSBjieuKuviwsbDzYG+CamKVJPMiS6P4kBhbIF/kwvaqlIrmI9f6UYKXx4gKlYpVK+T4aGysez2O+fZ8RaoCbeWE52c/eKact2f0QD8cIW1AVpqJBkjY/68Typ1nIUOerqMbSgRsUqRRD42k1BDLrzs18lr72O31fAOp/HJK+4S1Df4FN+RslfAj25bhDUwBvcan3SnQPtC/xGR5t7es8J3qAw23lIyp6GAlo/Osjd3dc7mTiCVvCEZluKzoy5gvMUqBumMxzlhbxzJMbXnOGhyX3OwnQYvs7aKFni/e+rUy1Mj6PPP62tAD79qYWdDXxHo18YDrr2ZYn1UdI3No4uVEd3G/LmkIaN6aP/cAjd6w0Hq8/Ix19iAmKL9Dl8/aa34364Y9RnhMcpOY4czcLP+3k7Rs= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: e4cc77ef-ef6d-4ef7-8fbf-08dc804d16cc X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 May 2024 02:06:16.4125 (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: f3O1Vi7W1KY7lwztQ3dMhWKe1nc6WX/yQS3lUPCvaiZNceXLXPt19kWRXgMpMFfkQsHHrTIp1u5phsOuPYdKAe9T2bZ2FtjFdc5RCZXTfpQPa1cmSBhnvu5uNkpy4pNt X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB10240 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 996684a730383..bfe48cc0ab525 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); From patchwork Thu May 30 02:06:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 800691 Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2049.outbound.protection.outlook.com [40.107.113.49]) (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 E9AE21B966; Thu, 30 May 2024 02:06:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.113.49 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717034787; cv=fail; b=J54sopfUWtIpSqZYFYcWKO78Xpr2xCzsbcJiipSwyleHoSrzXI5lmB7t/Ehk/HBfD3JuMJBFG9Uw4epLx1fVwh10+kZnw0QzG+bfJ3xgodWtbRCt/DgxV5cocuJ3V0pQ2IGfm9ZGCr7dwDHw1KxiyIY8KIlpQuugBfo5HMguErE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717034787; c=relaxed/simple; bh=QjQSyVQmTO0jU740IcMo+DjTRDV4O+cr/KDkiY2Iz3I=; h=Message-ID:From:Subject:To:In-Reply-To:References:Content-Type: Date:MIME-Version; b=SwXwJTGYHD3eubqBZk1Vrd/ABq4Ypz8+BWtMQeIeUMgzRoiQ5ANlnoPAN1BxA7R9Z8NNe5c1+y+q06L35h9+65IBzV7jfBd3U+9dSxjm/OyvBOKbPq5fhehkEeSAXSc1UtjN+DgMALoVPPWOx8YJ0deMiEDapj4X0d7nhWTcDbw= 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=MktLtXW+; arc=fail smtp.client-ip=40.107.113.49 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="MktLtXW+" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hQbMBu21rySj3PORydf+uwqovN0Na3Xo/wwsu6ymE6kzV6St9DSp+I3LZ9+zb9twpGhxUHzEeUWpuJMW2+lluS80qgK3n+eoG09Q87RgTPJDpoHALJ8AGDjR7b89nsTUNcxKcJSBWfKGffq6TXaC4pVm7p+6lYGocaljlHLWz9Mj+O7YD7uFLZezIT4f/NxdV3JTrU2wCMhSIP+CnkqAA+/w11kKPnE1IuU+BuvncZnksDDmPd07RhtbIykdkegrfUWM4rGvmwbhsR3SCmYV7x3lcNomGz8IoaitAc3WXE4zmm/woj00Lpmr6F9/1xV5SzKcHeuOl4XbMB9GUz+sqg== 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=Q3vqksv/GybRwRfvf5iD9mFwpkjoL6qLD9V40ien6ds=; b=RDuyzVpgiMMIcJI7t6njuFQ1u30vEnCepsgxj++7JCbIAC5yt8HuX19ec5E0lQs/QyFIi7L3duQztj3EMDvctN+2CXWpT876i8F8aKj97p7hkKFIK1LwkRmasJyY/2fy8pYFhZsb7d1J1Q1QeyhVIyklU70rAAcbeKFqk0p299kV9ekQp/Q8NrYWjIR9jGdq409TJOrsn3Nk5s3n0ln2GXk/XiocekS3UlOUHi1QvSmsiLOVQkVB3k0IZleN9X5F0pbqSQMCOiJTj23Ww7hRefpyuiG0dkiDBWwZimSdiutkgaYJOm2+3G/7CfVnP7ojSujrRp3Rps5qRCubyQJL5w== 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=Q3vqksv/GybRwRfvf5iD9mFwpkjoL6qLD9V40ien6ds=; b=MktLtXW+kERu0TJZ0xgVIv2U58Y1mtPN32S4upArIDTKlMwyCmT8huCol5n9DwB6wdykAjwnEqUhD66jAjAy78c70H/uJtBHhJBzmYHa6GgZPL5tofiLu+O1clgw6yCj5y4VpfpdK4QqDAmoXog+dg/SGEUO79s2txhDTpGHKJs= 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 TYWPR01MB10240.jpnprd01.prod.outlook.com (2603:1096:400:1e5::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.21; Thu, 30 May 2024 02:06:22 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%4]) with mapi id 15.20.7633.018; Thu, 30 May 2024 02:06:22 +0000 Message-ID: <87bk4ooxya.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v3 7/9] staging: media: atmel: use for_each_endpoint_of_node() User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: "Lad Prabhakar" , Alexander Shishkin , Alexandre Belloni , Claudiu Beznea , Daniel Vetter , David Airlie , Eugen Hristev , Greg Kroah-Hartman , Helge Deller , Laurent Pinchart , Maarten Lankhorst , Mauro Carvalho Chehab , Maxime Ripard , Michal Simek , Nicolas Ferre , Rob Herring , Suzuki K Poulose , Thomas Zimmermann , Tomi Valkeinen , coresight@lists.linaro.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-staging@lists.linux.dev In-Reply-To: <87le3soy08.wl-kuninori.morimoto.gx@renesas.com> References: <87le3soy08.wl-kuninori.morimoto.gx@renesas.com> Date: Thu, 30 May 2024 02:06:22 +0000 X-ClientProxiedBy: TY2PR02CA0057.apcprd02.prod.outlook.com (2603:1096:404:e2::21) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYWPR01MB10240:EE_ X-MS-Office365-Filtering-Correlation-Id: b346091e-4670-4687-7704-08dc804d1a5b 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:13230031|376005|7416005|1800799015|52116005|366007|921011|38350700005; X-Microsoft-Antispam-Message-Info: kP/PvU/hdK+bTMlepqnj5JciKcfw6TtD9k09coo+DxivqqPc18WcNAB24ffUbOOPwhG5i5Ja6urBv8PaBQt5U+7OGmIpRummoAJdvJLI3WoiXzGsY/6/nXW6re70lh6KFkvwH21/DJiNakAKqHQDHTi9nCB9fsqXs63R6o+swj3hmZMItmrCfk9W1cwYncxWCpre6lifBP0E5BbIEZpDll2lClz6cXD7yd5ueqOq1PX1kc72QqdEv8NOF+DjiYZs7Dzk3MZgQDeGV2WZQ+qKwkdh98JZuHmuy207VeJC7wsNvhL4HUhMMxCCnNTJhHL+OxpaSdlmXNTSmui1pCvktDntSNt+PGzylYhfqG3/dokowLc3fmtE1jMvop3PQH98hPRrILCeU4A1N2qUcHpOL5VQt1Gc9zLNMzGDZ8zysjPZDS9/ZkE6BDXWTlbKwJgXok2UCcn+BRQKS/mnOOI/upaDt0G2LCGKtiRNzjv0rR+yrFaFvhRxw8qemRnWtiNxrorjRd6OsjjSttK4ddMQ0JEEzid2NnneYZbx+Ta0ZxszGI25eKCZF4MEZhn9GjH+/LGqCZCG1gPw58v4mgmLSlOsokOxOHp6B7SUmDhqLMWC2T1SPM5mlwCtvsUNgCC7+9jtn7rlzRa3AOgA7+WsU4muMKFlUD3/fOP9lZ2N+n85qZd3D628KrDsdUPeq0fbFdmdhz1lifvHhvJNIBT0oKE9xmVrDoPGyfRfuAjWsTdyNiGUSWp4BNdtvoCYVThdSwoJf1+2udPPGxWwomCy9DBAfLsj08uj+L04iZT6bDEud9NF3JleAGHjVGKZRTXaGyB8S8jeN4wIpKfA0pS4wHIA4c/+topORVpK6k26qrXaKCxiNk4G7JJEKaWyQMEmJGKchbq8oX32iMVjAX7yOai3Hn85Py0Z4zCQv2NpeB9l/Sw5NIt5PrmDpc4QVexEvvlQQRdJLYmpd+9VarEb22PaYJeAjycr59GFap1JcKkRAsM92/2fyYFnqN/FX3tFJJePAwxxST/viKQgNEGOKYEtY724V42sXz974KHLwfA1wURIuNn3wpl5ncs5W7DZ4Ksg87Gf+Aw3oSFK+U84uLtkLGMV0btlrgt7iTTNF0mSai05KSlar2t61FYylaXGwVwA58ElZPEGRATAV8HvK3g66iWodIxjGJN34MPLmsqu6PzD5OInI3vO41mFBsf5WAJPcXTh+z6zhhbseBXjkPwvoAp1nQNlVWS69DvK0YloPVgeLLlJcKMh7B+u9J4Z+0G8CHDCuqEOaPkIOwr/tcebegFdIdORfF5Pkyi2FkHLwLCHNSWnKUubfXYDdz0a4zOjoBTtJqqANJQEdMEVVQs9a5KBSfVQIl9RS7JMUZM= 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:(13230031)(376005)(7416005)(1800799015)(52116005)(366007)(921011)(38350700005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: DoBipfDvMLpTVvlYAzeaoS2bHJyP/lELte+N3CZqkmYV5cU8daxC2DydTwFzLcJFhjmgWxPb/wPuHqlGjlpPloxfHcX4X6K6ScwjX4fSx0LDVOCyjNiMHltkKrk5Dz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oCVh7MxCIlcG1xPLVqmkvMhfdgCwQ1oy/gPoVpm+HnsjOroaXKErachRd3jKhS/MncE1gVhmzJF2SIXYdUoqs1Cp7X2836DdNJwrgHZH3KqTUT3RzdJ4GTrvWQGupiYDHHh8y5/AxG0Z5xd5NTzkNBZeMueDQSAHAEMZDTqrxUF1cBl4Z8osxwu22JeqIfGA9+2md+61OITccGHPJ9LW+kQtr2FiIRLpMM1l7qNfyMnfZUzMLcjDnWeG1so4MF7NECq84xxOB5jEF2kysPoAXRco7ewI21HbKNpToyj1JUVm3hl4M/KsZ6XydOma+vCePJHyVPN7RKpsCO/qF0MBQkUGnMDKZxWxlDtXfDFBJNjo9bOOcBnlcJrP2eOfP8TdWgdoOMgU/cbh0Xt8/Kua5ySd9phJBEsnnElmSzYzlRKRGA= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: b346091e-4670-4687-7704-08dc804d1a5b X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 May 2024 02:06:22.3795 (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: 2+ejKOmGF7XaIvLJjd+e5bKicvRwKSBHttSraQjDjWlQs9dBtQAJAvPfOJ+B3ZFsXbZpw0VjXi8hEMYTmAOmmhOQX12dJGdrXyjT+DCjqnTfw6ypAc0u7KmmQTuB4uvW X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB10240 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 --- .../staging/media/deprecated/atmel/atmel-sama5d2-isc.c | 8 ++------ .../staging/media/deprecated/atmel/atmel-sama7g5-isc.c | 8 ++------ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/drivers/staging/media/deprecated/atmel/atmel-sama5d2-isc.c b/drivers/staging/media/deprecated/atmel/atmel-sama5d2-isc.c index 31b2b48085c59..3b28a232418a9 100644 --- a/drivers/staging/media/deprecated/atmel/atmel-sama5d2-isc.c +++ b/drivers/staging/media/deprecated/atmel/atmel-sama5d2-isc.c @@ -333,20 +333,16 @@ static const u32 isc_sama5d2_gamma_table[][GAMMA_ENTRIES] = { static int isc_parse_dt(struct device *dev, struct isc_device *isc) { struct device_node *np = dev->of_node; - struct device_node *epn = NULL; + struct device_node *epn; struct isc_subdev_entity *subdev_entity; unsigned int flags; int ret; INIT_LIST_HEAD(&isc->subdev_entities); - while (1) { + for_each_endpoint_of_node(np, epn) { struct v4l2_fwnode_endpoint v4l2_epn = { .bus_type = 0 }; - epn = of_graph_get_next_endpoint(np, epn); - if (!epn) - return 0; - ret = v4l2_fwnode_endpoint_parse(of_fwnode_handle(epn), &v4l2_epn); if (ret) { diff --git a/drivers/staging/media/deprecated/atmel/atmel-sama7g5-isc.c b/drivers/staging/media/deprecated/atmel/atmel-sama7g5-isc.c index 020034f631f57..e559beb099f71 100644 --- a/drivers/staging/media/deprecated/atmel/atmel-sama7g5-isc.c +++ b/drivers/staging/media/deprecated/atmel/atmel-sama7g5-isc.c @@ -316,7 +316,7 @@ static const u32 isc_sama7g5_gamma_table[][GAMMA_ENTRIES] = { static int xisc_parse_dt(struct device *dev, struct isc_device *isc) { struct device_node *np = dev->of_node; - struct device_node *epn = NULL; + struct device_node *epn; struct isc_subdev_entity *subdev_entity; unsigned int flags; int ret; @@ -326,13 +326,9 @@ static int xisc_parse_dt(struct device *dev, struct isc_device *isc) mipi_mode = of_property_read_bool(np, "microchip,mipi-mode"); - while (1) { + for_each_endpoint_of_node(np, epn) { struct v4l2_fwnode_endpoint v4l2_epn = { .bus_type = 0 }; - epn = of_graph_get_next_endpoint(np, epn); - if (!epn) - return 0; - ret = v4l2_fwnode_endpoint_parse(of_fwnode_handle(epn), &v4l2_epn); if (ret) { From patchwork Thu May 30 02:06:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 800292 Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on2044.outbound.protection.outlook.com [40.107.114.44]) (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 BB7341B966; Thu, 30 May 2024 02:06:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.114.44 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717034791; cv=fail; b=nSi4Z4CdgeampP+nXayP88VG7f0RX5VRdUwVz7TH6vNtAofjI60MVy8jQFfn+PArZMZhLq0MVCQt/0ojs59eYvjGX/6v7I6rKSODq7+gup+K8fTlT/woq+eG0A3bssNPOkPep2xC5pX4ifiRBG8XbybYymfjsFLu1rwZKfmB4iI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717034791; c=relaxed/simple; bh=KT94KJLdSm/7M1CkgfrnI8TeEN3vyznFYiK2Vh6qhoI=; h=Message-ID:From:Subject:To:In-Reply-To:References:Content-Type: Date:MIME-Version; b=hEUEec4hKBrDIiDnFiyAuVT7hrpoF8k4xBPMzItIXam9+dsdx++eKNyUEbWWexXvdzQo1lHcO3nUo7bMTBmBWSzdVrF4mJrc//tABXItqARZemtLAQaZ7zSO9hJH5S+mjBngmabmRuk0rdKXUkAx4K/4HK+WyMngXjPnQehAMo4= 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=CUGiCj8/; arc=fail smtp.client-ip=40.107.114.44 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="CUGiCj8/" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=m1PvaM+Xgx26d19bBhbON1ZGS6RTQBL1c3mmQ8T9KI/kIDJbSlSzWIr5Y/9eiHSkAKg3L95dhzhEpZ+OPi3ZwOv/4zc6U+XfcHKkNH3aH4LyP/ZB4gf8vQHetB26/Xuc/f6YK37ieVAouV7iO9UqiReIH9pzVL5A2umLhKbGM1xFF+JIkZQ8DY534XGkY5gal8ysOrOMC0VWPUYVV0gtjmE7PliR45VNAu6pt6pb1jjCGXwdKBDUxJaiOOsvWj5H0DqjCb7hKOkFlAPqTQnjwBs78ErEeI69V+FN4Sf9zgArjsWldTD/Msv6jeVnOZ0sRBVnH1MIMOWL7eGiAaaCQA== 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=KJeioO+EW3xq2nPVxpRr6/AxHxgv9TxbDqgwEZtHUFY=; b=VPQk4l/ikdY5wW3o50ehGChjz/YR8qfcuyNjmr2EUENL9mu6HEy0z8xjUHFvMtQzAZIN9/QESUeUtAPEdIJ+UAUOw+/5kTfzQ/Y0ISX4qlR6Omb0Fo1iBLj2nYHwUwmJhKnCDRQjrEU8xYITfIColvzbj5JdIs0p48I20np5lwj6Cu9dMwmu3AN/p5KftCHA1lbUXlY2D/bXnLtGWEU0D5WsRmajulpecu+eHX2UxlQSnTaY7FWGW6F+BiCl9IUEnSBWCYZIQmF8A8x93ddTOJ5UvK2zPPTDnceLz2aqYQrhOCG7k3HahMHg0gcbJIkrv7ffYDpuawVZ0mwUGwxnIg== 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=KJeioO+EW3xq2nPVxpRr6/AxHxgv9TxbDqgwEZtHUFY=; b=CUGiCj8/UBjJ1qYXkVQxoX90z62U3GP6rxxDkZGlY42XU/yaeZ26vFloeEMOeLPi4GXDLZFNKavOdwl4+YuRVqltdOp8IP7fgBpQx3zI6wCSD5m0h4iBxmQ29sWnGnBvvStS3iglW/IIyMqf73caVsa0myW22+jVCkMxH+QxUdE= 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 TYWPR01MB10240.jpnprd01.prod.outlook.com (2603:1096:400:1e5::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.21; Thu, 30 May 2024 02:06:27 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%4]) with mapi id 15.20.7633.018; Thu, 30 May 2024 02:06:27 +0000 Message-ID: <87a5k8oxy5.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v3 8/9] video: fbdev: use for_each_endpoint_of_node() User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: "Lad Prabhakar" , Alexander Shishkin , Alexandre Belloni , Claudiu Beznea , Daniel Vetter , David Airlie , Eugen Hristev , Greg Kroah-Hartman , Helge Deller , Laurent Pinchart , Maarten Lankhorst , Mauro Carvalho Chehab , Maxime Ripard , Michal Simek , Nicolas Ferre , Rob Herring , Suzuki K Poulose , Thomas Zimmermann , Tomi Valkeinen , coresight@lists.linaro.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-staging@lists.linux.dev In-Reply-To: <87le3soy08.wl-kuninori.morimoto.gx@renesas.com> References: <87le3soy08.wl-kuninori.morimoto.gx@renesas.com> Date: Thu, 30 May 2024 02:06:27 +0000 X-ClientProxiedBy: TY2PR02CA0072.apcprd02.prod.outlook.com (2603:1096:404:e2::36) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYWPR01MB10240:EE_ X-MS-Office365-Filtering-Correlation-Id: b0723cda-523b-48a6-5822-08dc804d1d66 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:13230031|376005|7416005|1800799015|52116005|366007|921011|38350700005; X-Microsoft-Antispam-Message-Info: uZI0Epw3mfC++b/HtDTNP5nnswlO3wyEbKDuVN/IBtpQfF5BaXCIu7dH17c7hJcR+FlqN45hrmUh6wmVW+LguO4sDQgkZXTXZLpRgifQQf/8Ez8KQlVM+8hvxevs6m/m0+CM2KWs2bsqm70RZgCRPJz2t6kR8dM5bTLi6+MBAymyGfodgOc53jm2wM3DYd3JJr/jnt+/VOCtXQiNhic8OCydhOEeZiPDZ720iJiQJ9hOdrGFVkR2oI5/vgkz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MxLDMViSJm+IOV8lZzEOBbytdlNVgulAUhEWU2LXMBW7+8KJkp/4UnIaSgK4jBrY= 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:(13230031)(376005)(7416005)(1800799015)(52116005)(366007)(921011)(38350700005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: FabE0vtv0Bcw8KkC7Yi7qiRdbLYeL9k+uzNKT+1CTvfvHIl8d8AqHOjoWkC7I2fROGsnu3rC2kD0GfhToMAWvt8vMn099SCpPSr0g4tzVaS3yCjJl82SpVXruYo3XNbV0jlWqzrCJ+n5aEv3flWkiVMOCVNGE9CyhU2gJCgqjvNV74e9dFzb8DARhMC66sBVhH7zlRPkuxpIVqrtnbX39oxCHqOEXa1UOustDZtRz21nJ63bpk9lfrokk4OIv5eJx3uANC5sBgzPcSQAlLessRQ2K2TcSy+c+fpkjwl0/A9GT1qbOrxNvB7KhTXIaKLAx6q41ZDYd6NNjGjjzg1HKs0BawRXpxSXP0fX3K+5neP51DPY8kRglvMoTf5qOncb1pu4jfwRXj3IH8Aj9fIQJrBY192sjPeFkLdCnqPjQIm91ZnvVksBGxHJINXSHYQJ6HdAoJlW2kgbAmZ+K6jwJBrqnScQSqL9UAs9kX5CAvKncYuQbunAoYwhIZGyWPF0M7sQf48FL4dnVxnmdZuiZN4ijOnZM2nGYE3o7eVS5kDjzWtgIk9IFQVJ7bfQchqAhO023NsrMWM2JY4cdSwoRz0GH5N6TQ6Aul1hX5pAx00CYp3dbmHcTdhdWF/D1KxXvpMgDDa/fGn3mHc1I+9KvbzKgW9vLnANuatb1OX24FcUdxKMInkF+7+d9jWy4f7KNFlG0511WdlyJXblhV8RL+UZDydoIxNIKEo9hcTPBeHsYu+bHyrizHxIzt8i5iLB3I+uyt9BtsNwU+q4yTJPPZ3bajLOwrpLNO76vKL7YtqloklQejt2F5inUBHlXVhzuP9yJHj2YMVhDtqqzsMn+lykVm81/0Fr7v49Z4jLeV/+o7h7fvYHgVIJ1ClZydeRmFb71g1tfXHgY9INd6POC3A2wSdOf2DyVN8chFirIxIbVeDKUXWI2kvyonHjRizaUJRRXHlGKDVJJPRgihOS7C8agiT4s2I8aXdrn5+nkkarQQtT6+qTY5wZeeZOYQorss9qxbiGL9T28DMrN4htTTFjsPL1EVoj0UKbe5juhB1ej6uO2xv6Gtlk7inl+MUOidP/RQK49eTESyOq6WC3Fdxys0tjcjPtaQ7nNkTM+7K3W9vlwDytmf06Sk1weWV9X7WOon/hApyDUmg5ibAiF94kOt5sYIBtAPe9rWCNsgeL9yf0NXrB9PR88oCszyMJimuTXEyaCDSBYi1R+XbUJU16DYi0lWOhOpSzPPP9d+feE63zD9r/U/xjF1+vs3rkL9qFDiNXwq8SQymS3xcfIQPtySyACU1D6GrKCz0UbEXxKUZPLYlsER8HI9jGhgZH3hapDIEXGeV1A2ckHqegfw3Fpe16Wvi+hiJIig4ohscALuoGTSZUPc0R+CN7EvIsjp5LtRoTQoIS//i7bwxkhX+CqZ+ftffTVwNLEjDwCrbl9DD+HHWrrI3EBT+EY4BdRwV5VAF5RsKxZxB+MrB5wwT2Vhr9EKkh7D0VMp172alG+vxpuoCqTTetBQF9aokD7hVrqGXDiAqDSH+UXyJ6l2pERrrruGVv9pcHLHudY2MkzMxWkcJtDwcVl3tUcgn8yKP/FhTLwf1aE/guAXGMu/qMTGQzAuNYcIOcNH/g5DQ= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: b0723cda-523b-48a6-5822-08dc804d1d66 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 May 2024 02:06:27.4796 (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: 4Y2/KYOigko6atj3R4GlKBqkZQub2ftVL4zFK032ybk5Tt32Q/HDZ9TEmP0erouyFVasOxAl1bjvwOotmwiMIpuIVu1tsk3mmOCsG+/75Vq2NUGh+UbSvSWOC8VUPE+O X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB10240 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/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c b/drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c index 09f719af0d0c9..d80720c843235 100644 --- a/drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c +++ b/drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c @@ -149,8 +149,7 @@ static void __init omapdss_walk_device(struct device_node *node, bool root) of_node_put(n); - n = NULL; - while ((n = of_graph_get_next_endpoint(node, n)) != NULL) { + for_each_endpoint_of_node(node, n) { struct device_node *pn; pn = of_graph_get_remote_port_parent(n); From patchwork Thu May 30 02:06:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 800690 Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on2077.outbound.protection.outlook.com [40.107.114.77]) (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 340BB2576E; Thu, 30 May 2024 02:06:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.114.77 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717034802; cv=fail; b=WpvX01RhTvzvcr04jzMA5eIgvmSyia1JD/FrTMtEN6To2Wq2bkeh4JW4DWhDM/mM8EVDnXE04pxsKv+iBl+rFtUNyiMrxOKsNFUh3Ml0UtMWb5vRcM1NGLCD400aixKZWQAJ/OJ6xEFtQtGstirQqE5+3gPD9IV0ib9mAQjMXXM= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717034802; c=relaxed/simple; bh=RLm+i9/ScJYDLOHo+cV95VhB7eobV/GEZD0X1cPqbWM=; h=Message-ID:From:Subject:To:In-Reply-To:References:Content-Type: Date:MIME-Version; b=mbXOsNTHIXhn6opFtBwE6EWHUxxATZ0jDx/5L57s8jZrxsUSrUwjWkUr9q+qpi4OvclRrLnlg1d7Diz+3ZHTUFPLIEdqfz7flj0pDle3fzhQMK52vqY+wehiwwBnbWTn8pNbN2phlFnJPxArpGFnKuXI+MPIt+ciVmmUTvne+d0= 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=lXJD3iAP; arc=fail smtp.client-ip=40.107.114.77 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="lXJD3iAP" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JB7F0480Ty3MpotYWgVwK6DDRlpXKeOZ0PDv2/c+HhQuvgrpj38cTBJHDZ1TPWTWcF4JcFW9pQPc2ve7+B7lopM2XG6Efk3RMwX274tC/ITnTbxPMpoTI0u9G4w7hg3fel/QlVLZd7vZNgbqWDMbve3tYxWdGqWuy+vYN0rUuU88TslmcbviUxlS5lneEjYDXZp9vOKSG3TaDKos9X/1iCfWnemr5YMGComeK9jvIv6FTk96blphUUUPjo4qogRukhyH8geGQXInZ7ZLmOpwuhicxCOr/6gsSsJrUooldiMeWRHIXzGKj6LrEbPbkVrr2FdbqiU2r/4bzjZ+mijMzw== 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=MsagpA/5pNrylws56rjc/fEA7kqQPMX4DxQt4ow3FTA=; b=n/dJh2LJQT/EGG+0RSEETpU3/B01Jkp8v8srZeHw8aqNcavGBZJ5QSnnuZ2iVkDn2GuJknju97/4s8psUjFVipTT4qORlGXQi4KUvGn3r5JnJ5bmQL43jsnhmd+ltlzj7I+53NFfN/64JBEhwJKOFzWsS42EZV3g2iEfXpTdUPnF2HQilg7lA8UQTlCrDSKfM0/XXL/dIDiQSJrnaYTjGPV27Nxw2fewmftiDa+rPYcgxJOHr1Ms+9dFw0M7+GAk3yswh7+ewlTxPUsaUqOZzIXCub7Y22YYt6WWMVMLVWNOJ/66jcxVt8aUqiazWB+6KgjQzkfiShvKbNCCOY7KAA== 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=MsagpA/5pNrylws56rjc/fEA7kqQPMX4DxQt4ow3FTA=; b=lXJD3iAPv219Q3jIOHpzlTCtoJ3hY2voJ45HYN3jkwMWKEKLa9N4Jwq3AfN/5u3Wlcy7ke0EmGoDQALEn39FpxDVEttZ6rIztxjdiUJor1J7EugFG3Afbw2CbgLjBS753nVqy+cakeATFu7o8boMWHNRfHg4rAysGAjnKuVPYRI= 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 TYWPR01MB10240.jpnprd01.prod.outlook.com (2603:1096:400:1e5::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.21; Thu, 30 May 2024 02:06:35 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%4]) with mapi id 15.20.7633.018; Thu, 30 May 2024 02:06:35 +0000 Message-ID: <878qzsoxxx.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v3 9/9] fbdev: omapfb: use of_graph_get_remote_port() User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: "Lad Prabhakar" , Alexander Shishkin , Alexandre Belloni , Claudiu Beznea , Daniel Vetter , David Airlie , Eugen Hristev , Greg Kroah-Hartman , Helge Deller , Laurent Pinchart , Maarten Lankhorst , Mauro Carvalho Chehab , Maxime Ripard , Michal Simek , Nicolas Ferre , Rob Herring , Suzuki K Poulose , Thomas Zimmermann , Tomi Valkeinen , coresight@lists.linaro.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-staging@lists.linux.dev In-Reply-To: <87le3soy08.wl-kuninori.morimoto.gx@renesas.com> References: <87le3soy08.wl-kuninori.morimoto.gx@renesas.com> Date: Thu, 30 May 2024 02:06:35 +0000 X-ClientProxiedBy: TYCPR01CA0182.jpnprd01.prod.outlook.com (2603:1096:400:2b0::6) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYWPR01MB10240:EE_ X-MS-Office365-Filtering-Correlation-Id: 010c2cb8-4815-4cf4-9f30-08dc804d2235 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:13230031|376005|7416005|1800799015|52116005|366007|921011|38350700005; X-Microsoft-Antispam-Message-Info: rLh75B2clWn/ViVXcd14xojT8yvQT9zmUbXumD4xwdY/wzuh+1XH+DX37zyG9Uh87LOCIHyp1GhSj6uTBOfpRsdQfJgUrTNqqA04/CFePu5r2Thnus+9r7Y+/PQi0k01DvCNNOw2xlu+wXy8MwRo00mbOfE30Af8dfUafJCwM8nti7ZumehqGbUBXV7gOw78LpHm8rF8rM/98THKRVWR6DcpLXGK0kI1dd31Yd6bfFvGAMnuK9oicu+kMiH+xZTRi6JcR5S1+T36+FL8vJ6O8JDwesWApeAY1yoytQ6bH+2Sjh7r1JwmHx0yuHo7xHM96z+4CNz66mtO2Zp+N79jjIatMA2hYkX/LsM+l3fk0YXqeHND3G8hm90arOPQnpTZSSmDKIJoLIsyClvxwqoUuPWJOmzpV1JyiDunxPhhUDaSeHfBoko5Shn/CwhC/UFZ26uAqWg+YP+laT2PsrRrIetK94nnlFa3+q5HwMesSSTST/Hxe6PzV/OxD99XnMWohCLVjCectZP+xTyA6QVNjlkYEkesByvrgkEj0ZRrMHB5cZUuDFS9cJPXxkMgm9/kw1F0FvEctGsOam7rlLF//MIvSoON0rC/HyUKpvwWBLJzWIp02jdBEqysSoRj/yGmFYT5vzGlQBTQFN6Lz/8R+TOzYPxsqAckCZo3WqDCBqn20opDHZpY2E1k9xodsX8CeK7dt11NrxQXqsuuuJeKdj7pMGiamxtRjws7jPlru+KX/6K0DymgOa3gRkCdXvya2uQfkV5o0UfI9bOMgunZVkI+Y833aLx0JzSX3nZWUP3gr+umEW82I5E4TblVKtL1rlXfjSbKZ1W8MrdFA+bZaOPD1ZsvJTpOW1Irs2OR+ckwyfrIFMQ2djdAUEAr9JOZtywgx4nNOCfG0DgwqkVXk1y6xuXfMh6WtwRQ6+vCk7J0SFudOlF1PsUV3+Xh8ckv6TB7LXe4dz7wYYXJqoSIjt5X0px69Qt7+WZU3JNB8Ty/zgQtaJxCbBTJZyrP/39OfCm+QW5tH6huCkC2zKWcbnJmoTGYPBhEY5OLbbBiu43T6OB5Asoee5trU+v3j3f5A5ghvVx38mcY8qNi4WVVDw8hfeGXcyKswtjkEYBN8TXnZvn1rC974N4K4Yw0Ul2AHD1qpLb3sgdrU/58+75t4moxq9Nzpz/QpL3AQQyVrrdyiQMuIW37zD6VK0KoyJSEXlEpjkU+9u1KQ9I5ty/2RxRWLyuCFeVTMzKFlDGlY3qyMurSkNTDFYWf9e0aeaIAurtLdWHCChZEfYbO9I/0Kr8lT5j/WSJ1Lggslik9fgDTP3DSjZGhwSVKWKPep/a3QzPefEYM63FcvGonOZ9fNA== 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:(13230031)(376005)(7416005)(1800799015)(52116005)(366007)(921011)(38350700005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: fX3g7BwxqQdzfd9NKLRQLP37QeHA6Wvt59E86mNnvgah5kKTxdlUE/PZl6EweHZA+geOMR/uz1wMbAzbDCZW1nPABXSDbPZLkhYO8eYR/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dXHgHP43j3JTpKmctcNV8Hk/SaFGUv6fZ/vlf4ALn8Ru8eP5zl4TT0TiRDCYHEsNRT+PRpYYwcliWaAb5DFQH3nX3kQ/lYSt1wA7vjq6mCooazbuq4DHuj5nLpCPKktcW2mT26xFSLL2bh/uGrcFQzUFt+UTKCYN5m8oLEai7ZBMhlU5DTvMdTR2GqiGKyA5GPwJf51fzcqoU+EJCpWx9HS0wPVWVGQSEGdi0gffLml6LenEBCVisndGb5Fj2WSd8AbY2cA/FSLafYpEZbtyZtzqdaERkY5rSytVT1fzphBAYDu8tLKmHJd2IxPydlnSObGtPT2231cp3uP+E6jk2CQbkteop6jfy8RvFxFyfdpXtuieRtaAwaxggDlf8eGSOd4STwK4t96JVe0TMP//th02dih2DmjVo+3+ETtpqhFTcslL9bWGqQaVGoWt7qZtgj0JSXc= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 010c2cb8-4815-4cf4-9f30-08dc804d2235 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 May 2024 02:06:35.5532 (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: EGYfLmdPPc3gNwbTffUbgFy+VlBKfaMviXZyGG+aBtoxTLNwg9h1jgrQNQoFVornARPOM+D2pM4XfC5Q9JsUBieUOm+2KQuGytwL0tFE7sUsFaBF/eSwRbU/iCZ0lqr8 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB10240 We already have of_graph_get_remote_port(), Let's use it. Signed-off-by: Kuninori Morimoto Reviewed-by: Laurent Pinchart --- drivers/video/fbdev/omap2/omapfb/dss/dss-of.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/drivers/video/fbdev/omap2/omapfb/dss/dss-of.c b/drivers/video/fbdev/omap2/omapfb/dss/dss-of.c index 14965a3fd05b7..4040e247e026e 100644 --- a/drivers/video/fbdev/omap2/omapfb/dss/dss-of.c +++ b/drivers/video/fbdev/omap2/omapfb/dss/dss-of.c @@ -117,19 +117,6 @@ u32 dss_of_port_get_port_number(struct device_node *port) return reg; } -static struct device_node *omapdss_of_get_remote_port(const struct device_node *node) -{ - struct device_node *np; - - np = of_graph_get_remote_endpoint(node); - if (!np) - return NULL; - - np = of_get_next_parent(np); - - return np; -} - struct omap_dss_device * omapdss_of_find_source_for_first_ep(struct device_node *node) { @@ -141,7 +128,7 @@ omapdss_of_find_source_for_first_ep(struct device_node *node) if (!ep) return ERR_PTR(-EINVAL); - src_port = omapdss_of_get_remote_port(ep); + src_port = of_graph_get_remote_port(ep); if (!src_port) { of_node_put(ep); return ERR_PTR(-EINVAL);