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: 13679646 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/7BFp219mpycLyMbGSR4PKfyioGWrFP81sTyTZ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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)