From patchwork Tue May 28 23:55:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13677595 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 33921C25B78 for ; Tue, 28 May 2024 23:55:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Date:References: In-Reply-To:To:Subject:From:Message-ID:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=zCd9UR1PXeL2daqP8zxRxUTbl4WVAbbtAVwGgiS+rSI=; b=UUfIOPsrmt1U4x/NX376wsshkE V2+HKlWMh6LrhiktwqNPcdeW7vzI3YCK5prQ30EyuDhmvlwCY8xb7SRFCkwUwV9iAMuA4hqumdeXy Y6OyBdvL9SuYcaDj6rXzhbnct6HVAiUg23BBRyjEu0SDCZwWPHf3tgZgPlxrrRnY1HCdTe7ZvEhD4 qp2HSGe0y/bTFPWjkVmP7SnutpuKjczH+uGHfG17ZBkBtJVjqj8C4hY6W2prn9w0FidkHiC6DiCzs RJA2iERRsRVDWg53JqwDhvhCURxYrSUly2jYJmCMwqiOycDj1CsHFfBH7I8vDZtWN0+en4usB6Af1 Ci4mPuHg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sC6fL-00000002MI4-1hza; Tue, 28 May 2024 23:55:39 +0000 Received: from mail-tycjpn01on20600.outbound.protection.outlook.com ([2a01:111:f403:2019::600] helo=JPN01-TYC-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sC6fC-00000002MAi-0Rt0 for linux-arm-kernel@lists.infradead.org; Tue, 28 May 2024 23:55:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UAyHroqtvlBfoUWXi7p+6IzJmyGv2tJYxTyVYqw2danO52fLN0M556gYY2uoEbQuDgnBnsGgneeAu8BffvmRyNisBI+PbcdAAWt5RxSwvyHINbpHuWwyNm+q56WVIKvv8S8+8rZB22dhIOWEUC2p5AQIjmWLkmLIDU2EOVHgJtus0fAXQkkGmnUoRNiIul+oQo8oL2fGSm8roKpS/xUMrGZiVeWck/Hv5yKbj4OvPKVLYK9/iPtHGT6xwMtDaFjNS+l8cgw3TNmJ+Wc/kaaP6a/O6sDkBCnFxx8WHZde9JgncKZqO1s+hTwhFC/j9i4n1MNjlv6R7jYU1vumsA3uyw== 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=navUPHBxFMD/qxJrz8ZrM4888Z1ixyx+tcB4YFC0FSg=; b=PM11wanl5/q6UU0pFlYUCttbTFZT/DPemhTO4d8KsSF2U5f/GkjcKWnFXKeEex4MThxq7r43nqXKX032u54pVHcWa1P8sllwtTS3MfMAKTdW+UF9ryGXmnW00jIc1YBb4Ey41zp3cvAuDyQZX4NWCKu0m3dIBL730JGIuD4kqNz4jYu8qf1Pcswli49tBOWFbYlR0q6PWwm5mkDlRysStw0CFE1okdQmTq6hxvn/qdTeQBYMJPMvnljRhHQdgZwLDElEKeSvgAnQj8fAeHwpVYPpS2a8J6aMF/PoTNcFVLKwULqr2uh6RJYp/S8ez1hEE69/zKANQc0MODtUSm31aQ== 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=navUPHBxFMD/qxJrz8ZrM4888Z1ixyx+tcB4YFC0FSg=; b=PgTziOHdFAS7S/tnUuONwYEEcAYrPF6pKCLu5y3+YH3j2TPiUjMQPPskftkVC9i/AoJQCmdati44u++TmxSVsdukRe9EpEG3geclI5Kre8UIdILBU1IwnLp3NwnC5+VweeUBh8LXYiW1rHVOtjE4GUYRn338/xPucQ/GKH0BIIs= 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 TYCPR01MB11224.jpnprd01.prod.outlook.com (2603:1096:400:3bf::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.17; Tue, 28 May 2024 23:55: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.7611.030; Tue, 28 May 2024 23:55:27 +0000 Message-ID: <87h6eh4hld.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v2 resend 1/8] gpu: drm: use for_each_endpoint_of_node() User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: , Krzysztof Kozlowski , 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-staging@lists.linux.dev In-Reply-To: <87ikyx4hm1.wl-kuninori.morimoto.gx@renesas.com> References: <87ikyx4hm1.wl-kuninori.morimoto.gx@renesas.com> Date: Tue, 28 May 2024 23:55:26 +0000 X-ClientProxiedBy: TYBP286CA0048.JPNP286.PROD.OUTLOOK.COM (2603:1096:404:10a::36) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYCPR01MB11224:EE_ X-MS-Office365-Filtering-Correlation-Id: 636e146b-575c-40cb-29a2-08dc7f71a5db 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|52116005|1800799015|7416005|376005|366007|38350700005|921011; X-Microsoft-Antispam-Message-Info: Ikoi1hWInQWF85TyOHfWyKWRO4SkxAHDmeGF6+Lb1RpqJpFm9qSgpQfhZXNHquRRXtiEHI3hR93LmydbgMvs+kK9Y9k4B4vwjUmIF5n+PowCDaYDaUh56l4wkSNz/AHFfjuJHtGaLZUk4cmZVX1xuxjmmir7glBFM0XAYRTAAlZQZD+hs5225Z91tt2HmuXtH4STxxUJEs8ruIJ+VNYPaKCIUbM1mvNqGY1FDxHhCpO/PwGTLOVH/ib/CBnb8w/PDvhjPDBb+nyIeT/PHCZavuueR3CleEAV186+jh/5hrMvJnh+iWrd0C2wXryJs4SchkosNeB4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.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYCPR01MB10914.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(52116005)(1800799015)(7416005)(376005)(366007)(38350700005)(921011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: xkgZIfCidWYBRwZPdbm1pD040ZyC4v5nML7JMJtL80Pse7lWfd4K2EpsWs5tSkHsmm5jWjvsvZtYWAszZus8CyZAJB5gOvhyxoBpX5X8yLxCoPRwVD7AeRDNrAr/djtO8oVBQTXKmFliZILlYKlOIHEgLF4RS39iXcLxAJfDyaSXR6hZsCb0Ua0B1hqGVR3Pmbk17gMyZ+MmFVipMQwEYqVoN/6MZyq3M72hMzzpq5nF1oiKoNqlm5nTiLc6K8iLcsBawxWp3rOTUPgzn92kEKyL7gTPfVx9BImCCaB6tUpP5kk9bPr3c3HQ2VgoUI7Tq3o750aPlXCirnfhZlUPprH60ctOzzI7ABqb8r2txzuBccKboYILZozVjBK3vZDVwNV466eiUE7B8iQoeS8YtVcSIIAfq4K7UDcBaZQK/vEfyLNkULZ7koDQq8PLFM6P9NTR4D624Vhl71oCBEzj9RQKJPTCMm7cMLN2JV6lL0KmAbnGG2L/4Rh1leJbuKO/k9GbMdHtOYksSa/V5BpV+ZHcJXfn9z82sM6FK1/g9/QCCEEyEdtZBV7NXaVPguWU/sDrm1j5CbzHQDWmmEnrLf+WARbNausMOu+4sFKQcdCeLjPgBxN9PnOQxyWdIkfpOAuOyKg3F05JCQUCl5zPg980ydUvK7cZLeNXkZezyAyKQDriLRXcSV5j06aO2EJurEM2Rq+dNdvpxjYQe+EKdbIzQN3RZI/o1kFA/KzyJB06pgt9/rFAsW6tPhKSJvp33da09p0rQftSz9au7+4u5gaFchOsI0VQhuYNhkh4XYsWrZh11nXlQqUkjjzIb3Pggrg774rIaKNnGCOiqjefRTqHNl1eBNwoGOpF48vkIjHZ7HGb/VrzESp5qTLvR6x3uNe90Ct+PHD4oc/OkIGVD98NcSmDlk50p2IF9nKnlJlH9FpYFqzdXqOA6XN+mjmlzGS3Gej38R/Bp2ZrT6lfXGO4T3P5/tRqB5Y03Bz8qQ6r7at19Xy0ghtI6gM2tfUjmg8UZD8uRNa2BaLsqUZtZ8i6aTJHMhbuKfttO+v86gvxFnuHweU4vvI/lArEdvgSzQwdQbDK+auF8Bju0DBqXsa6reJKiVc14xVNDK4YjoiNEFfYc/bGfdY7kDvHf6MbG1SQ7tVqg+02D6ywVhJYh8YahJUsoXf2E9Qtvi+VuD7n8CiJmOzhSJ+XTNAy2fzPptzWDwDjvRnKpgt9Zo1hg9bl7bocjuY3BAO4uT17kxOKosMoKMfay9ZVkrGl9sO51iT9CGYqbrEP43NfPcLqCh0EN6Q3+rPRGspnH10FstXOyyk2X/qa1s90WafySRC4jnGrxI6IFmy84eUeEJ/QW1s40Ik7RgiaG89ZKyleKYoCKdptUlrfRKfq6J0fx7mVdAqsDLlFdSKj4tfId09IiSo1pyXiCcukW+OovfzaT8UwnOtvqkKPNSY23r9CcWfwSpWX2lft6PmEHxyMDRcbA3nmOrroXLUc/RaSCe+MFW9gswF3z3kPY/FKQtQlAeFz8ZccAjXaqJ4RulaLQo+dCNtbJmJL0/T6bPLF4UhMjVOjX1pGbDR5SJQj61n2y5zAVtNLRLAy53DY49jZk2JjMTHdAnK8mKrAeG627tRR5hI= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 636e146b-575c-40cb-29a2-08dc7f71a5db X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 May 2024 23:55:27.1410 (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: vjjU+niKUX/BBNfFo4fyZl9bNnbayNEnf2F+bm+sqvC3+LKhEPTSEYEpb9Lx5eWD8yPvex+O18V7hO5qkGg1VIRtQcNLvaOa8C9pO9G4OgbCo/dY5PNKSQleSAB38xeJ X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB11224 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240528_165530_172734_9B482A26 X-CRM114-Status: GOOD ( 11.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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)