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: 799699 Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on2055.outbound.protection.outlook.com [40.107.114.55]) (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 A814F13FD94; Tue, 28 May 2024 23:55:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.114.55 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716940532; cv=fail; b=nJpfQhPca9dpOvOIUzIHQ89jupItyd7YzYc5ZjubkouH1K6KQIx6TK4SADHqbYTT75t2LG3tbzrzhoaDbEGVDUh4oryngss+8aVyVjzECixDi2Xhm50W0jtA7Mokse3wnVI2V1WeRyKgL4qBMJSm8DZeZhDDx/RPlg1P0YEZ+yk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716940532; c=relaxed/simple; bh=BckNzYGy0LYU6M/yzSx9CrcRPfgyK9xvlKkpZW/7Lu8=; h=Message-ID:From:Subject:To:In-Reply-To:References:Content-Type: Date:MIME-Version; b=F6qpqC6YWWb+Ow3YOCo9SKW1bL68d1ITMyYyL2ZtFQzXFBBdkuX4SsRMFx7SXNW8tlmnnS3GykIn83dKmI/gY3iGKBZuXIegIQGyer/5G0vXyS0T3SkLMLdgIkNrk+pj/Ud703JDD97AHJJDWTwg9wIW+2M/N85Cl75uVSw8JHA= 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=PgTziOHd; arc=fail smtp.client-ip=40.107.114.55 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="PgTziOHd" 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) Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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+iWrd0C2wXryJs4SchkosNeB4uqc03NKN3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TRY:; 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 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 --- 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)