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) From patchwork Tue May 28 23:55:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13677596 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 CA9F3C25B78 for ; Tue, 28 May 2024 23:55:59 +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=pJiCcTa5cFZs/fgDZY9am883Qa1lJtkMUg4iokMWNyQ=; b=AbIHFWebC7fqJdzBSuIs1vMriG eBm43td2/2cCw4yFvM75l38PUMj71jX+JuDSvm3eNJUJQ0mrXNp9CcX7NWfb0VR0+665dZnVFPrPj E9ed4W/X00aHuD0+i4Ao04osKif7PIcBq9bo5y5EhYGuOLV9Mb9FBNpJlRNh0P0M+rBqprWoZQ67g OkN7ggM141PRZq2YKvX4XkIbda64MK9qI2N15t3LsY1YyWOhWCH3iRQMRbcYUHBmiHqC/SKO8fe23 ef4RT5idIKpfWDddrTNJCoiHVwMcgObVsbW04/ac86Ocdctq3iIVrqbavbsUuSPk6+vxlJ9Z2kynw THggh6RQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sC6fW-00000002MOT-0QW7; Tue, 28 May 2024 23:55:50 +0000 Received: from mail-tycjpn01on20601.outbound.protection.outlook.com ([2a01:111:f403:2019::601] helo=JPN01-TYC-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sC6fS-00000002MKy-1JTj for linux-arm-kernel@lists.infradead.org; Tue, 28 May 2024 23:55:47 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KFCzQF2k1boJvqPhNPM/6PnY0XxJGTSMmSUXtcMKKXJMIudmBB2gqAhffFozmP+b/fHClZRtV3SFI5kP7OM/p3EzXYNdZomSbg61j2oj+IKxqQ/657gnTTbpezDZUzkFagHh6EMlkX9qwT6ciNWW/Fmh04YlW8M/1kH/B5ZWaa1mkanKoZthe7p1pgHpjbUXpDj21uGU19O0pkHWPdJHMvwNarPxmHXR+bSr8S/FvUMyoc9Qj3KfmJ4EhNyReaexubtRD6fgYUUJjshvd4fpUzFXJjyNm8joK6e+9NV1dYF93gCFMIhsXUAm4SOVAAqnFHE6xq7f+9a+d9sxZuDcCQ== 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=0RBQqFYJ9l6oUjQ+wE7YbR54LyNIP2FkkrriFkT+5Fk=; b=fBirR+70GRfKURj4S0UUHRRk34gMcSRbKlThrsgzssuQbIxS1cenfJh/2eeziYTEl4T0TNj/2iw+gZMLr+vaemtU9kIK5dNjQOvzK47onoWJBg9yNF6Tmm9Lf3C9/0IMhUutrh5D3RrCeY56VBF3ueGPVKh0mKzGtbz0UzYGqgmo34ajPC3ykfwtH6rhYlmSA2OrvAohk0zK2M26rYhCz6qu6oO9SkG8kJnG8OIeGZ1XyRC4p3V3t2sZ5L22yr1Yt2guRyFqsfZpKBOiTxVER7qbGn35eVoOZ29eHOOCZsZKYTV8vFFfiPR5Uep4AdbW28k6BmphecuutWhrtZzYJw== 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=0RBQqFYJ9l6oUjQ+wE7YbR54LyNIP2FkkrriFkT+5Fk=; b=dMcwoEMEqiba/Gdncl6dx2DycToRhPtG20FP2t/CcIZYXZGnqAsXWzP+WISJSQ37ClDnH80jzydcj9WFDQ7Kw4G6cMUaKb2+XaYFl08gpXH9dY4XGHKqhTZMDTpJc2pST5yibs+hPxL4Dhpwy/LXFCVhRYNyom8tBR/QtqpR60A= 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:32 +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:32 +0000 Message-ID: <87fru14hl7.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v2 resend 2/8] hwtracing: 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:32 +0000 X-ClientProxiedBy: TYAPR01CA0166.jpnprd01.prod.outlook.com (2603:1096:404:7e::34) 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: ef75b43c-f816-43ed-530b-08dc7f71a937 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: DhvhBd07dBUaBqXmcv6cLrnEIKFAuAFSLBEtWcw6UMSDLfBzI2pzfRiwPLILnn5JXE1rdl8ZOORxoGyX++loyJMQXNYLKX9Mn4v1pPwMLh1S+uGoW57i2y+UZWSc+0UyAkPuPgYn8SodIVuigM5+jVfjA+LVWd3qm4jr4z3Z1KFDD70bieLpYf88iYjgdDPGtkweQboAIo1I/yqT372lyL5H/ZkqZ5JfRnf+2jTJnAP4H+qH6MOwknZXphze9YYKrCXn9ljeLRUYdF3ei/5olpkR3fKOHYIqa03BVZQuOXPpN5mZK7zpwO9L7AKuBKWcSYIwgpb1pMVNgNmcDZUhEZSVczRw+c1mEHd2PWNVoxqoiYob9fWBhy5BTd+wObiBp18vt/64f7kiYzO520KgnCa+VNUpnQNrlSOFPWTCdWh/YpujSNBa+lfOAHtrjH7T1M/RAKedt8wOe2v1zy3Yn3TuGJh4QQJnQ4VAU0kc/RoJ2sUCwJndANr+x2WCm7QOKxG6vKLDGiJeHPF4d+gbVnVP1SeYI18g5mxiPqpoy0UvxpFMtyAJWrH6A3skUTJ8SnMkuk5SXBqatgriHWXTWs+Kgwc+2oYuq6snYzPrqkawF3mbzVZlIx7gbaVT0GuuquAgRRx5isdT/lexD+h6LEL7Rs8+N5yPkHn0YYGpIukvcmxpmg6JM3LTGSG3yZiUDhana30/qavs2v75HQBrhJZjz9hK7xrqc0bByhkau8OlxYc3j0LlY7yAf2JwGSYzqTI4iTEQQRENEqkdkoLB0AGWI18TE3Oh99lWtSJUGLCNLGTozlJr3JOaxOzkWHRiWakqNWV0rVll/j9NdDjSQ8yKsNl9+Smc+njsj5jSrpU9Gv4MgyjV7Xe7lZ1Oz1kOTp7fZ9sglnyPR5jnEfB+bLz2QdZDuaa+Try9SWksKB5xbx8ni5xfRF8QRHNaWgu0rVi/CEd78ySMMC/1qSvo1wn5QNiB9LiPWVd2OHxLdqvwldgxcAemMcTurXx3K5fvnsE2oCXdnuekcLzVFLuLtovIOswOamJjz7QtKLB8cS18TEKyk/e9QIfovKSuCz8F6DEXqgvsFM+/pf6L7jxuaeHNa05a8A1EoFDPn3JnOv9Zb/TlxewEBZhqhUuguJz1ZZWh/qadHYX2CX7dklbYtgBvEb03fHdASn4whMqU5GDg0+0EBMCy1mrkPNlkb/EDlUF9QlxX6P4Bnnuo4iwFpLITe1F9+KoJZJSy64HboCjZz+ENn2pyivsupGWGPmgN0X/Tzqz/DrwTRJKvaFBVwHcw0zXqxQAHy3SadGgh/XujImvIeIri9ZGqIv8HtFzm5oKA5Y7zCSV29AEhRZg3mXPaJ7eldHCPrV/QdTXOkUw= 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)(52116005)(1800799015)(7416005)(376005)(366007)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wqG1Webzx7mLnYf7pHmLsmM6VBNrWO/psuN903TmdFCyqd/I5cOdzq3cOgsD4BsM9oPEzgViOXat/ieOCKLwVp1z2aUs3AqoXsxCDXq0rIJiZEzKTxIqxL4Q0ZE0JAPlW3650tNQrc7ZNIcHtnuMgf6GNQV7z5XyWDrJQrcoVVQ4JG5oxCpFDuHHyx0r2+z83Exrsf3dWzz43voaQDnNonpUN+cJdSV8KibHU+zJainqHP2PngMlHPOS3+l6mFskNT4np5QAKtE10iejHskg5tqRxK/BtfVk01by/ahft2z7GPCsDfweCmfdRVoFewacbW8MNOMvGg2Q8vAy+k7+QLsJa3yRsgvH95DWxKso7p0LelMAV9GFDsHC+JOYfcPB2OdNaJtyriWWowKxq/qyxBbS9UK8U2L1x/uxUmolT3KxNJ/tx3957WC4bUsECTXWO2amKN9mJYBCo8JwB7JqotlX+uhLU4QTjFq5JchVZxLWSq41HvkMRkszLidhlNp/SQ8mguoIyI/Uwlm70SWCzav/tTauLbvVlYtTZZYiX7VZoVPoVD1MJT4GTho+41f4CKvGelmbzKjypSBFeV2rK0SnYkA+KXSuCgpUWLm2ywPaCWKn1fTyaiHNsbpVe9qoTePM= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: ef75b43c-f816-43ed-530b-08dc7f71a937 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:32.7738 (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: h/IYjOisvwzLv5n2Vaf318afUUmSLza+JffSQv2LTCyC+tqzxQmff7mbPyI4Wtnl/37zSYmPez7qDtZHfm7PF9hCWIkIhKJckQyK2m8MCoZ6HBCeV+V/UMkpPNihWN2U X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB11224 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240528_165546_442043_D9D93A3A X-CRM114-Status: GOOD ( 13.03 ) 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 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 Tue May 28 23:55:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13677597 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 18429C25B78 for ; Tue, 28 May 2024 23:56:16 +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=0NbViTvyXUCe4cBj2FPfZUdrKbyA8AkNNmSq/jj9pJw=; b=QMgIokoXAlBitt8Gj4oLhljOpf pvIczEUCa1PTUmPxA/9nasiba8MWMjuQilUJ61s0RinPblLBgooWEbS3kV9cfAoe3SYH4FmOhlvYw lBZW99zoMC+pxxd8be5baPdPiWy+YogCGYH2URRdCf3IZFA+beHqfqSD3HDIuFH3wzvpL3f3YFWA+ ABzD94bnmgVl52N5cHFVwv8rhT/me3jyeklegnGZoh7cUs6z9wRY4k6n2+JDoNryGFFD1OUbPoqD4 MZWJcnRyX22RaPNjLIrSlBztg+yVfmNV01YHTzydYkZvyR4ozGMEHUsxZ94NNsDqDXaSdYXn2iARM FcELIBAw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sC6fk-00000002Ma1-2OFi; Tue, 28 May 2024 23:56:05 +0000 Received: from mail-tycjpn01on20601.outbound.protection.outlook.com ([2a01:111:f403:2019::601] helo=JPN01-TYC-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sC6fU-00000002MKy-0XrS for linux-arm-kernel@lists.infradead.org; Tue, 28 May 2024 23:55:50 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oGjtuQyYvEeZ+gFACLE7Zs7vGLvoVot3LxRppLVWfBVZKGppbjWPc/0C2FmqD7E/ukKzIfcOiaQZQg/BDS8HE86ZUzByO7hSSukBS01O8eKvdWUWjKWXYuaWnMlrzCHyFqpxupYJwW20W3eoHCPc5DfSIbaspK8MIje6c6acqnTf9POlmDaxZDUPwn+mMVGo7EmG07sxY6tECVILN9iZ9ADiHopcMTvAS69hfWIvWX2sFN1oakoHymm+ukstCL7yIsJI8MA1BOMfL4T2BNQM1T9S6Hu4ccYBPEoLea/DEfiIYJcou4CK7NKa454XKsptOSmnD7pSlX5fZHpN0IX+Lw== 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=AflE0wTd/gC2/pi90zV18jpYHBCnhEamyrjrM01l3rM=; b=dqajXulD+ZT58fHCT86Nu4PsVXpPTmRUroh6eWCELn+AO4JAL7JTXtqfGDPvKtDit2Uij17HqPrbvmqFaIGA3qCv6U/6TYvSEgYYG42XYpb+7Ug00XRa34oA+/y4ZSD/PswIJrTZZ4kP2RErhnrqEyCRcP9lJf42MDUsLU3qQ1BLMK4IEy3X1pt1nQ3t1b8hHEXjz08CwjefWgpPfYMvpkHiV+UBAmn7pO2mqgS6G0wfTQ87qhhKeoWsDHr7jsjl3PGmZCJYCqOPnWCIBU+0T/+IglSWq64jUIP3oFEzqsQ7WG0ekplhV+wYyfIDfq5X3o9F6/05aG7fTVSeG8bVRw== 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=AflE0wTd/gC2/pi90zV18jpYHBCnhEamyrjrM01l3rM=; b=Su3+w8JgoPEBO+fKdaASLlfhAW6lAYrK60tf1G0pI0pvtKvvwsYSQyW8NaobWyvnKGWgPjYS3kZ6W65gE3V0seP+7FwPc4kZ9qyiGpKjMVodUY73C0hU/YMdY2RJ+/VW7lI8Mt4dg/iaLFivAIG5UFP+l2Za7GvEHQrDNbeA8Lk= 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:37 +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:37 +0000 Message-ID: <87ed9l4hl2.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v2 resend 3/8] media: platform: microchip: 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:37 +0000 X-ClientProxiedBy: TYCP286CA0010.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:26c::18) 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: 06bb3969-0cab-4bca-fd82-08dc7f71ac1a 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: e3tIqq8WhRj1tob2yZZGUMU7O02hDB5uTabtBlKDn5PrL9fY1WnXmTAUomT8wlaLFMpKXOX+MHfBmOvKna91lzEI/jb7gnqbl3gpuptLhEhhtBvi/gOonu+WSfYXweXF+ZLklDCFmCXqPxjEUMtINsDZyioalQEHPUV97nG4S8p32yXKfY6EtuZvzaTAgtWXFomULl9CQ5x6l4JFPWeVDFH63IC/Ex0BJZDWUxucBVpOpTPr9nBFf84m98+hnHgP+jhPdtTaErr+REaKdPukfr77sUFTsvw9EzvZAEvQwXlQYaX4G8HdMnmCKD40mjAwmQ4AyVxvDM8S04ROSyWBI907CvcwPyE1QOKjZcqBcxRV4tqe4Xa+lHMzVWWgN+2wQAfn85Y1SzNvlVOgeAFFHC6DGYLWrY6UuYFoxJuBIf0YA9U7tpGQjCcb0GgsIuVvDksngpa6hXlzLqTUB1LiPwyP+mjn7AGHweaCtJ/uc7fS7fCyoFlWjkJYwJJ5VSVLkJUtx6zizVQOWq0hWiQQoM5YRpaXvuI54b/7Ysu/iycYJHRmDZNu6nHf1/rfBTPoOCneZhfa2wycf6DJCr1dZQ1U5Dyurr478U23Ej8ueT2junpuLyU9S+XMao0qSoyOGWoQrsYqdC9Ywk+aVi3HzqQ5t8qez49Hxv9Nrvwt9C5e0ATTCz0LX456wqbbtLXwZWqdebBstiO0F5n62Y3uT9H/CJpMkgRbZLYx3USPQ7BvlWlnTueLn18kIG111jL3hXZU/vJVCPrvuLUaW2AnnK94gqqXT8X+CKWDAre8UfE6l6cVGBfkho9e+QWQY/e4gf4EqK6J7V6hqP45YZnTqvLTGtXE6Lp8f/C2zlIwS/3LCT98qJwHth/2/9rDcx5nOlmKnlTLepbsvXVAPGKmSqXOn1234sjVaTukDptnVTke4SNApkm9X2GDzh3Q93qV1dDcbwNLiLkZ3OmZk653zuCu2DMZZfPEjb/K4DhGL0NUtCLjE+W3UZ9lnBTG4WpALqNKQUfzAMYKHBe4H3TqkRdQ7hZiZNk0t8tfk4ogLRGMYyXpqrj6ZcVeT8e2xO5x6mFtsqbFnV6/PuSVBc5hQ34upzbl4L08jOKGGWAo8xTa39hEKTspMcMgNMZEusPQmMRBoluCQ2iKnPocLbdDqAmlbyARqdn7/R23ml3eGbgq+bdi8Y5pPLp37Ck2zP/ca29wnKsGVczJRprdY2wsSpLCGpskXzlDDgBfuEWoZDj6OMK169cZzUhkjzcDVjH4Mee6JL17uRIfMkrbvt6MBfYUvybh/ehPQ20een7Ii+uLTVdBmyh5BpHpRhR10T9xNE8orH8QIRbcowhEUAxJYA== 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)(52116005)(1800799015)(7416005)(376005)(366007)(38350700005)(921011);DIR:OUT;SFP:1101; X-MS-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xrrblca11IIkP2WvYtXiq4bpUm6uwbYnZ2l9OgNrRlf3X4Br5hjnibHSpQhYvepmYlySZFfWryH8zzeGFu8YqcqvqIJJHNYE+MyMq2XZKPTIvxOebVSjGcidqr3jjv7wcI21uD7/FhgGIAkWKU6f4IUGAjK/9pur3Nnp+CNbDz9D97m5kVVXprb6wj3fByD9qQd4KJ6eq4gcf4Ug7lMszKaKFw02tZWm3cGuQbzoI7a6yDtZse3krEim6HGJujWlokxZoR+0E5xoOc4Zcz6xyIwYrZ1AZQOek9MM9llsNgG8haDsDjmkSKPqKR7QA7IAhmvO2FFO0Q6Vr/VV5FSgBQorjd9uayH1PY+7wCO471CjpsAzRKg3EJXyL49AaTqExDmErvLUdHQK3xqIcpFMXcYGQMGOGjXQyqlt9Cw6rZECUA7QwYt7v1c5C0+TEcO81Oqk+y4eCOQ31p2nbh/6m38PvJRA+i71VRGSw1uHzycJMovLmuhU/oabLy5bRfvgxqwlGoj4KkfaD7g1Ww8qyang5KJMGtTPDct+95gCI33Y9gN1sW7aYCQhImF3AErYZbSUiXXzL7Fz0sjMWe8jAsOy20AA3b3ZUjqhrvedeXnCLX0= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 06bb3969-0cab-4bca-fd82-08dc7f71ac1a 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:37.6473 (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: K3YK9mkXRyQPL2kurtKM5nVINNo9CEvzCMJ8x1Bk/0vgtqWEXtdlHTfkejw8+G1b8t/JtfaysUpV5y6fsgDzZwc38ammYtTrzrTCEEmSk+mrI7+Rkcnq8EvFY1Pv1qIZ X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB11224 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240528_165548_415976_B6A81F9C X-CRM114-Status: GOOD ( 12.49 ) 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 Reviewed-by: Laurent Pinchart --- .../microchip/microchip-sama5d2-isc.c | 19 +++++++------------ .../microchip/microchip-sama7g5-isc.c | 19 +++++++------------ 2 files changed, 14 insertions(+), 24 deletions(-) diff --git a/drivers/media/platform/microchip/microchip-sama5d2-isc.c b/drivers/media/platform/microchip/microchip-sama5d2-isc.c index 5ac149cf3647f..d9298771f5097 100644 --- a/drivers/media/platform/microchip/microchip-sama5d2-isc.c +++ b/drivers/media/platform/microchip/microchip-sama5d2-isc.c @@ -356,30 +356,26 @@ static int isc_parse_dt(struct device *dev, struct isc_device *isc) struct device_node *epn = NULL; 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..36204fee10aa2 100644 --- a/drivers/media/platform/microchip/microchip-sama7g5-isc.c +++ b/drivers/media/platform/microchip/microchip-sama7g5-isc.c @@ -339,33 +339,29 @@ static int xisc_parse_dt(struct device *dev, struct isc_device *isc) struct device_node *epn = NULL; 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 Tue May 28 23:55:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13677599 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 9168AC27C43 for ; Tue, 28 May 2024 23:56:20 +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=hADwjE2sywQeF72185GQLfIRYdQQ2EzJ/9jp886BP0w=; b=3BQV9Z1kLso+OsX7DVw89ah3Wr CnpwVpJqkhJaP3bd1b/LBcX6JXk+1yK0Fo4ufzav7DBsl7cFkqLq1WS5Fq0AUXdouTVES82b5AUP9 kZP3orqPwCdtlCCL71CC3LtPZmT1C3ha2LXa/sMlrGoQmCXG4mTp9m9vwi16kV9R/GYQu1PCu4a3y NZO1/eGtcbOgqPOzvfv6SHcbRf0ZaoxRBCXTSa4lycz/ZjlKk8mX8keINvtHNU0Y8Yob8PzMBCH4f 6T/r81qgnTOH/Am+Fp6/pj5Aw75XXqsjklSstiH63Co/Zrt4t+AsT9/prN80CYxTV50REZtP9lEbx ODRDmFmw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sC6fo-00000002Md8-0kSp; Tue, 28 May 2024 23:56:08 +0000 Received: from mail-tycjpn01on20601.outbound.protection.outlook.com ([2a01:111:f403:2019::601] helo=JPN01-TYC-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sC6fW-00000002MKy-4A7T for linux-arm-kernel@lists.infradead.org; Tue, 28 May 2024 23:55:52 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NRpnrPu4inCjci6T2Ogp3EwK66w1xlb7LA3ABT+5v4VfUQGYEAvPWANMISvHLafHupBBWE4pVkP4/OM9PyF91KiB6lGSWy0VdgqEWA3bHGCX0tTTZM3N4IaWfmQG1YkDJDyszR69rODybZn2xjXnsPNlxuQSgoWaKf7WPId9r2N3yrgnxiEWiz/CX9agZKJjhECiqbccXGd+Na0z9zJFf4EKRlzh+I2w2UxzXBG/hqsbUtpIw/2arF5bbjon9Br4dv7MU50llV0hAdbVOX9KOl/YIlIKlh//kf/t/flqxZN0xRsLonU04D30+yXIkJSgAylpB0sTEmistRaD4VWtOw== 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=aKyIcOtJvLvD7O2LiyJI/N2rAEc2ca7YgJ2t0jkn4VY=; b=eqWxQ3qZdSSTiHRdjZcToiBRC7L7ZhX28BISOMzcr1A+X+gTxSL3F2Uf/hcfkMHFvXmlIam/pU3xhTRq4Can4bEDnU9CStEYSlerssiDd3dWOkcPAnEheyMFvP3hmlx544c+E2OHia9wWJ1ZO8qhO8eLKVqo7L7A9dKbsV9+6WP9eQUQNn+yzvFx0tgRkOW1aBmRZQPBJOcyc14KAkAA+HpK3r+pNbQYkdc1bkoBwIavKDl3AoX9UW6oSLjn+FYPTB9Cj4hkpS50mxGlwSzMVAJb3XPVuHQdaTo4olm8hFJCTAw3AEj4CphY6ypwTDrHSo6faTACZIqsJCAiRezFuw== 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=aKyIcOtJvLvD7O2LiyJI/N2rAEc2ca7YgJ2t0jkn4VY=; b=FOyPAPAh9w5iXQZlm4bbePLonUTP5yMiqUQod4e4S613YT9kjpdPFuIJdCXf9dUbbiO9eT0j4NQ77P+HsVosiCcSZNpGgrZOLi6tcSncTN3HqHXTWhamLuenl6iEseD0zKGyrpByYhVVTCtvi/lXax2pRXUMTI9w8nLY3H/eMrY= 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:42 +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:42 +0000 Message-ID: <87cyp54hky.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v2 resend 4/8] media: platform: ti: 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:42 +0000 X-ClientProxiedBy: TYCP286CA0361.JPNP286.PROD.OUTLOOK.COM (2603:1096:405:79::17) 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: bcd31a92-56f4-456d-47d9-08dc7f71af0b 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: arCV/Sfamf0olJt7SjwaysRzKtPvX8vRoXP+uViIA4Yw78kCutq/BJ16NSXIz2XSpPeDsp8ZNiakqtpHelBcuvS8U8cWVVmmUHNx0tixDdBUNnndt13eJ/ZrjyET/zIcg6OFLJr1jHxEmw/ltB9R6ilAZoMhrY2azXzVYzsMStvDyTxSQb27Q7aa9m6OT8oEJGAXfqvqWPrcIzJfDzYEG3RPFtAPmnt8gc9z98u324irICYAaHvU5LbrW/JdrlqU4PRIv43Fg3f8oGnAClOeM3Zw1t6BijwQhjroXGdk6b7fgM3NK93zPSpZTf6ByFaA15nmqRmYHeXYFYh6dRDHJpWhlfyN8JZpP7RV8VNi04Xl5L6vFnoYX7W9VtqnA3VC3/+TFbzbbSKK7GwgauZpVENLj1vV2lmokQ0tGUKri+5tiYrtuksIsJO8k/bmp32TZJFGIyNd/qSnR3onQ8tK9vc1JO9E2XmlNRsfMsjxEENSKi25/UeDLBNTvGUsRcZg9PuyS/HeRxrDxonNFDaueAYsdD6znlyel2G8To0q817u1yzykCZ3aKSeI0VTPoD4kX2eVdY4n9NpvHM0YGMFfgqWLkc7B3bw1O7pPHij4SmrK+w0t5dMmAPK+l89uKfNlMhsMFHk1bE9Rgeu9hPE2dmoTzFSV1Ml0LXWEMY3Wfm5WQmgezJEWpcvmM+ROFrkSolMqfmSwTLQbS3K5zRZSKrctDakKTLGV56svI/5lnVdkcXheATn0jgMkVubxGXg83VLI6KPSwaYGfQHyPzqxCdoVTkltTBdPPHEDefeRQaItFQyxFMWTSP+vlHjKPlJaIbVaJQ65vqd0XmiBRKuXn/Rd50jTyRolTno+U2pADQHkCBUnglitVKrPnatd6SS0Mo/SfP4ioJrelyX0q9DQQHgGOqS3MA/UqrLCZ0R0u+rAfsgJGeryBrG4J1zPxXKNfTt9Anq8mTkAxds3ELaGpIOy8i5o/evXXLN6dWJnC46QUY2P9DG17fWn1DqinaNUQ03Z+T9LFOpRn/QY5DFrRkXIg5G+g56Dlj93MXXBNAivekv6Pfap4e4ushIOjSLo+Fa2dAgL7v31+yETb2gDgVkaRlGvsN6LYjRE/OlGKJWeVFtCzUKVGdqOve3ifHdXatkcTjisqs1A6Rfd9zEIuZjL6310IHkR+AiK2PzjmQZN9F8KmeIHy7xsquWUItKTDUhMmHLPhF2Tu97ngMWU+hmI9YbNto5TdEUOvn4xSYbvp9ZgjlyDoy3WUIDmdcMFYbIJEvgQ7nPGZMLRZen5M3/JOEvWDCLb4pvsh2wKkpS21ioi8ozUoEtNqU2jkxL46fzTuiwOkXLJ6Va57ykAreaeJqbf+jJv+eY3Ymd+w0= 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)(52116005)(1800799015)(7416005)(376005)(366007)(38350700005)(921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Q4gJUTOINYG2ildzm6ha5Gz4AE91Cm4TGl6O6S8GADTim+MnK+3F3vvBj+puSJ2vaxkfRVo9LkN0d0T3ZhGZo+v8Iw8rrzzXTcT7uQUgOvBpeBroU5OmISD6U3WULuR0KsPKmATrzYLXYBfLuSAMljZ2ufhHPcM3YrUDPSiSUW+n6mQocUyT7A0ZzbmupJkVVuMoDZUfePkZxZn1ORpNEeFCfPwgD5n1WmxfQhe55BMQ+ip7OSFqqQG507qYZgFYRkTG84MGnmCZKtD+3S6V+mAisLEB4u0AQFXJ2a4/zPSkwkBjRB4N0Ml81OK/jVFxH1PBnBADfclcQgK7UCEB51odHbCy+hdqw1ickCzdEdYOckPvJ+sjKHMw5YR5T5REDVwNsS+eHbkLaedLbAW2NrtHxjVB4VjE/mrDf9l4XV32geskXCQJ5BzjBwjQxFlKrsM6tmwjlCfvJJ2PS38IPCDXuwFUp0AH/BW0YpM33GrmFG06Ej0+XsQXw80BfAu/a2IuPxOcFC4GRj9GY2CPIgd3wR75mosb4A4jBYd1MjszvRtK9/6wC2I0eOL85j4CVIS3X+Evs6WdhklbPYejbcz7rtsEYD1KoNU4yzQ2yMdY5n/saS9g= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: bcd31a92-56f4-456d-47d9-08dc7f71af0b 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:42.5664 (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: +Z0CyN1IR5Xf0P1Glpea6BeJcvBQNOtzwMrnZ4ymb1AQWybI3qjsFIIrGuAsb7wvYaDWWBefb2bspWCetm/26va+yQ+TBxcEZNE6yrEqEm9YwbhDMSEWZmWjfNAFioAc X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB11224 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240528_165551_172961_EE36ECA3 X-CRM114-Status: GOOD ( 16.02 ) 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 Reviewed-by: Laurent Pinchart --- drivers/media/platform/ti/am437x/am437x-vpfe.c | 12 +++++------- drivers/media/platform/ti/davinci/vpif_capture.c | 12 ++++++------ 2 files changed, 11 insertions(+), 13 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..078ae11cd0787 100644 --- a/drivers/media/platform/ti/davinci/vpif_capture.c +++ b/drivers/media/platform/ti/davinci/vpif_capture.c @@ -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 Tue May 28 23:55:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13677598 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 6FF5EC27C44 for ; Tue, 28 May 2024 23:56:20 +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=02e3w+sFpctbg+hNYvZfy4ufFKenVYzaE+xNrLZWTxY=; b=wMSDbrus3XkQEzFEg0GOYSOawV 7YjkVpaHSHWo0l4EMGFibilyK/v+ZFX5BRUnu+ZV0rFXIetoQvTsMx+WTuCJcwg+8hOIbJ9TPSuZy j9iNGtdAaoU0m/4AX4fhWxvJ2EtL1wfdP0w+D+0AsDufyTEd+qcOkyQLhn5q/xQlh6qiSIHz0PJgS 93/wI3wn0TBrlG0vMVHA2e1RFWVMPXSXNB6sq0G3ELP+HFVJDsiWqp0o5Cd5N8XKE2KL+4ur/4Nfl OX8rBCWboH0LlOC0d9Mnj/tQTBFOxpRdKFmzw1SHsjtYh1Jk9UYf7ikJzI3V0T2LDiRCWGdTbppdP ayrsJP6w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sC6fq-00000002MeR-3K8e; Tue, 28 May 2024 23:56:10 +0000 Received: from mail-tycjpn01on20601.outbound.protection.outlook.com ([2a01:111:f403:2019::601] helo=JPN01-TYC-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sC6fZ-00000002MKy-2FDb for linux-arm-kernel@lists.infradead.org; Tue, 28 May 2024 23:55:57 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IV7Iq7ttIgrPmDYiyzgN8pW2Lh2A1R3tTmDhdny2oYDP2aZ2cdRi2iyGye2YaHLlLns+0wBvUVF8cHiOeAE/oJwh/B03GZ322p3KeLvnbrGSCyFvCUzm0+4Sl7zVAt2QEEyZAWduUPqNnE+n0MmQMr/bvoVfBgR5xY+VxFtbueyrl9XkNGzQ1JMVekfrVyCp4LuiUO5OPy/bv6TlfhjOxZmF7z1EIDbSftkH/uS9EDq9ttIHopQwKynpqhhiW7Q/JFgsh992w45AxNxO697CZvc5C1wvchwJxi7Js+L40Byp15JB4TChjdQwSp+1G6jIEf/iKgz008M8yK220PpxeQ== 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=lzjyWAJSzgkqfiftCMVNznL9IrKEexue80iK+S4V1n8=; b=WIBpUXq+4VEsAHqFZ4zlp8waNLqnT7PSaqQ7w5nogzhzPg51FXkLfn0NilI9yWMDAL0Kc+aQvc/ae4vk/1w8s7Xl+ul4wu6xrUEQryNVFww6TQECGprtECWyzqrvwb7QQv8xklUsX0dpbhvDsNDmvBQBPc8kWKX+iGtf82nnKT3SlpwiRJOFZIrkJA8zgbt0uy7h+3l80sA6CSi7bh/cN7P3zX1a85zHDn+eHNJMw2tLOYran8nCpxDCpLssMNpEZDLBUOpN/QHN8EHZKC9ZUFkM9OD1DfYA/rW4VEpptlXFwNK1bPoY01R6IkaKNsh4vW+JYT1qttay8ycK/I2uJQ== 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=lzjyWAJSzgkqfiftCMVNznL9IrKEexue80iK+S4V1n8=; b=WNLiEToaYBgVgKrf8Oi98f6duA9JEF7eeoh5k3GopGhkTWXIs/m+AmMu6WqfNjsK/v3z0AAIliHBCkW4W22+08cOAnSR7I0qphtoK10TjeTTndAzEgtJhkiwi3nrGqd5GIcmS6dG1PE2GTuqsPe6liT5fWBOFz8ubINqPrKlMNw= 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:47 +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:47 +0000 Message-ID: <87bk4p4hkt.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v2 resend 5/8] media: platform: xilinx: 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:46 +0000 X-ClientProxiedBy: TYCPR01CA0134.jpnprd01.prod.outlook.com (2603:1096:400:26d::13) 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: c81909aa-4e1c-4725-8c9d-08dc7f71b1a7 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: 5n0bnXX8/3ktsdKvB2uf5CM+QxNVFTLCNolzVxUGlNoSXZMzuOhrY3J0WXou3srAW6W6g+R8lSvGPkGoOBkfRLHGC5o3zKTJroXrs0snRczcc4at+QOdMAXCgvbkweU+YxigcPaO4T667hOuWMdp3Cd7mwoMFGvd25gaCmTq2ORhQLjrRKCSvDzB42U3YBnIRZQ/tuoxkqTqsNFALO656xmO4hnWPd3On9imnZqheEbFDihMIqPmMVHSfHIYMbJQJmqtmlXpkTCrSzzjhbVgtzKo5T/bMFXcvcD5NcM7BD94kxqW1PLv/J0T8ipl9GKQlUi80UNT2HBTTbzR/p56b0/voXX5E0iJbNfh5F/h7Ua96RAq/5gyUE+q/iXWFRqTlCwNC9PpDdfeCP2SSUUvRgRU/V1zvfDbEtfeLYjcosiiPsEcLJvpLphWtUp50BSWkqXPoWSNfZzRQAJHpLIZmYuUZpeogG24OYdg+mcC/LTeJxytpiOtPhlWqedB23WVg4c0GMQmMjErK8STNndO9V1//EksV5i6ydJ3wDNDGM60Xf90r7/kB05gVbogQflqaR1J+CRLI/51QNjy2OgzUswwmdXcuBXP4UBBa3IiI3DX4jTlRgs3RFKMEb0MgCBEE/UW2oywBHtN/VcMET4FfTbS3Ax808SyMle77AIS56smNdgQrsNeWCecXHRMmOAGK0KglsBIw4ClB9xgl+KotN9KOXfutYkKWFQyepXXf/3HMhuHa3hjbRUWx4MK6N59CTflMkAIt4Yifu/UUhi8IqeW0kxRqSlBNykIMC0Nk0u/9Fcc4NVjp1J7CdeQ1aMtnaiu8TGfrugKvO63sAukE6U+w0XPIFsQqAfqXGLvSaabgIyJDBKyOk6uZcbggamGb7jHQQfZ28sO44OAHSnPCpTCI+PO2QD4B4CVqLxzWIC7sTLmBMvigfdFD0M9T9rNMDbzUM14eVL4g9ORxkPaiJo7gS8nNsMduaxWR68JV8jRlvZNkBakUXcF+RY9N2PO6kxOpFxh/BkAY5SMelLAgz7dAKxvmtgqcMsBLfGeoEXhQ+UMy+vL3GFPT6BrDuOcDsDo7I0dyurQiiEfYgGPbELnfpm9+VD9oIM658V6RUhoubyWXdLLiR4uuwYv/HhiOqna/rAj//CigSQyQoJJOMeZWIqKNLbNklLFHVTzHrhifm5hl20ese2uar56+g7RFwt5obVsNFRomcrh8bWPKX3bkr+TqPyxcKigd3AUN/dvE3Z8FYeXzAdLalzud0NMILEZqd/3K8YaCdNfRF8FWXc5P0+EHtFAYL/fxfIehOVonKV5MCRxQjLsvinEH6/zG7CkbPO54RwawUdDl7mae9VrsgYGXPtLP7KYj9MtiME= 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)(52116005)(1800799015)(7416005)(376005)(366007)(38350700005)(921011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: AZEv+CanD469tSYJ03SPL9EAoY9eIZ9psDyA+kaundTjdaiScJY7BLGDC+qX8UxwQP0siF9jHkEPxVoPeloXc/s8xMSDLzjvN0JvPtzrOcJND3n0vDQfv4NZW4/hJeIsmium0sCvao9rQZyubmFLIqNq1Qx5ZvWrylD/u/FwHsB/FwVkuUEqMOwbS9S/1q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3w/3Zrn4B+pHBwOwQ8qCOfzW//V4yn21JRkBbDUK4GdOtxz/fWbLz2kt+oa9FfttD1dFy0GRYT4TeWVAMpsx/QrgePVvVvyIu+WmcTiM2kmUUZnnKbQA6/fpgZuBrWA4S1HDcZD+vSWzJ87OEje6HB6MUcDpGu3WeJiRkZT8QuslPqq0gEtTPAlkVdhLucbELjxrqF5P3NqGius3ccYuat1p2cgWLq+LN6XYDS5jFBPXkjikwF4UdB232zJPDind1GhXtKukbENZa0FRYtevOwizVRpyhIo+iZYiqcI3APirGfZQQ3KKHknOnPF4WMu9s6YvnbqDnahCnac2k2bhxnAfg/Jai+ZiC6qa+i58O/mVk= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: c81909aa-4e1c-4725-8c9d-08dc7f71b1a7 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:46.9473 (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: M6DHFTtlQbQ3dMQJwmp0l0Qjm7dy+RvsL4YedZOS4+9jFonjQhYUL9NiZ3SZG2j5gvx0EE1W63T6+iQ5dqsfmFKmcmG5k9UhWgR4Glzvtpv6WyeUZB13gTGYpbPaV7Dn X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB11224 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240528_165554_071986_47DE58E7 X-CRM114-Status: GOOD ( 10.36 ) 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 Reviewed-by: Laurent Pinchart --- drivers/media/platform/xilinx/xilinx-vipp.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/media/platform/xilinx/xilinx-vipp.c b/drivers/media/platform/xilinx/xilinx-vipp.c index 996684a730383..38818b82a575e 100644 --- a/drivers/media/platform/xilinx/xilinx-vipp.c +++ b/drivers/media/platform/xilinx/xilinx-vipp.c @@ -205,12 +205,7 @@ static int xvip_graph_build_dma(struct xvip_composite_device *xdev) 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 Tue May 28 23:55:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13677600 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 82C86C25B78 for ; Tue, 28 May 2024 23:56:25 +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=ikcp8tjOoE7XVnEbsIlXCzmUlOoZS2VtKr7S/ldsuCQ=; b=Pf8VKqXnqidZBCvjtJYybXXqTL T5QG+s+AALGbYGuIZaRDmG+kwY+i60Tm9rhLAo5r3B/5inwaXF1GKHIUbL2JdgxJNVj0QkJHznOQh bDiuYS+NVg3jg7ZSJm6bd2EPWMQ+F/FkucTPGl87Q05I4erLLAdBzVBnbUmXSTyPR+5K7VUifRIeX +abxssPlSlp4tHUTxbWE6yMzacmE7wTn/Fg6J5Yr8A8FPsqgiAI0KETds9cONGPAdN6/cucQUVEJL ALXlUw6cQgYk2bdIjithGXN3qfNEI0RVuR2Zyfrev4rYi8e/GnWT8MXhtqIMIJ7PNY3PaCNJ8tqhs 7OXMVAyw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sC6ft-00000002Mg8-0FBX; Tue, 28 May 2024 23:56:13 +0000 Received: from mail-tycjpn01on20601.outbound.protection.outlook.com ([2a01:111:f403:2019::601] helo=JPN01-TYC-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sC6fd-00000002MKy-2bGB for linux-arm-kernel@lists.infradead.org; Tue, 28 May 2024 23:55:59 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ckSDY0MHus1qchEwewoec2iYOHJTUjjTa0Z4tqU2ZOKxVvzVXMaE0B+ydraOLCRZi/6kART5TFoNNi0QKMHojv5WtEkJLJuFe4bzCDkr1yfhuwrIWLJq/Opffzn3Zx+oGoHWLWsgAFw1eShW684guCaVjhAPmHNwvq1ejz4PljzCZYhXv8WEdkE1+v+82s5Km/K2XEId+OgB2ijBHRctgr/igHvhp+w+In78Vm6FQYS1eSf8wD9ZKdgUNisG+rygdwvdeKoLZOpx2QYiYrZiB1DkqOtmNesn88Tn1vs60w0QAATIlFt6OfawRTg+irO0SjXKPn79k8AoYEbJgBjmzA== 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=Yvgb2K2aJh6oMMOHfMP0OgSzXQh6pmIyQrdwEaHeLSE=; b=bEu3YAIHYFWKzpWsKuXf+rT02+med5PLxEC2rUc4N9Tl+sQEkihDxCgzE693SOYhlEJhi51ESwGlwBK1Tk0Rq/FQFS7FTQd7Nmk2IyJwixDPPqlIk3cE40Z/UN/f4UlgI7gIcasK4Sa7dU8wpoKfb3uVGTfnvCB+c8M0qN1ZtowrG5RtYm0c9c65JW9HHfyZUZTuMQmnJnKqA9cL28GrzBvKO6qK40htp2aVph+alFFstb+ezgqKpXw1ZMcdaSV6p32KcXqBpn44e8VtB763txhbe9TjUZ346NbKgC0rOP2VXzcWIkaNPmgo1EeRxRHsmruL3NJHLCsDxI0FYDSQ0g== 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=Yvgb2K2aJh6oMMOHfMP0OgSzXQh6pmIyQrdwEaHeLSE=; b=RVbfdBDTN5WtOTNoDzDR4GF7w5dDNmGeJqfRNKnIFRQPbRa0jKnJDkATxc3XWIOsCO/Vzi0fnZQaU0nZYrJU6qG5cz+nnvj+WG9dv4ZZj1ExKEDV6klOS5aqw93OQiJ4KUcAl6eEqRy+EhQ3Zay4oVgYNNy7fAJrejajiN+uEaE= 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:51 +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:51 +0000 Message-ID: <87a5k94hkp.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v2 resend 6/8] staging: media: atmel: 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:51 +0000 X-ClientProxiedBy: TYBP286CA0020.JPNP286.PROD.OUTLOOK.COM (2603:1096:404:ce::32) 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: 778a39fa-0cf7-46fd-e1a3-08dc7f71b45c 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: ty1GV/TjqVOC1W9e760LB2DnFMbvVLf0fMvoANr/yCKMzx1x4Mw2fohUj6MVki04rJ2HyMqRYGjBC2LQR8kEtBo/j8Kgua4AEtIS5C7SLe26a5Y6viusOBzFXBaCLEENquSbJz0S9IcLIyeVNCFxowjwYEajrG2PRYpBvqhFlGsp4oB1X7kUU5l04R2TUcIJRjwt3rnQdyl40VVGqzDyQi05npO0zafYXHdKXrP55KenAAElqAAUIp9I2zL2bkqgK4YeBiS54J0OAs1eek5hO+8vPpdU263jPjOILaHYnqVbk0mBIt5u6qq4CSdx3HM97aNaVUFd7u0rx74QRpm2iW+HsZ7vjUtFvrHzPXOQOpT4+yHBgFbWhYmZe3m0a5mH0a1FkB+5lV1IHOFBmkRVkpDpvOaHYdDlYO8oQQxTXdSyg0ahPjTj5skRnaXxHCkErBhuhdFzfU5BIxH+5OPS/COHRnHZ9/wglcJMaJN2wgnLO5z5+yI8p8wfcmLh4EJ7KAmXtzx01qNF6JC8H+2vw9IKG9VNA3qndxkNNCotv/gecY/sxJK3I116Llo7ZFMIRj4TXILds1O1dPqpzGlgXeaR8h1cLg8V3IgIw/NoaO17JA1BSGE0oa8Xdg6qPglVeEQLU99CCdsElR7at/3C0NqbsXDdYqx28B37puZ+2HGaz0tiHdAYUR+g+QMjyTXgwQhljMr7ZiC8flrL1YYmDLS8CLKii6CsFO8Hl8Zc0uci+HH9paLZ9wAXj5wXSLCW9D3AQJ7Kk9EwAqXthooG0HwRzCZ89lYPSGxbGyDE0XQnFdc5SLYQjdK7idV2+3+/AJhKE7WL4OxJSRBnH3qYYXRELWPnA8JMcNDmB9+8lR/CTUkTPAvrAAcU/rZCmZvcjinXnencvrzHraTSIj1EhHVpUb7WPhYz3rh1WEVqLT2QidF/AldVqhFuUMej4bm3LyVx8wSCK/uEkKSuYa+dlemBLRpYJqLYwTjKGlNIM3dMPfR6VuG209KMqY23/TN4VRBz0Wg2NuknOuLhhkzQgEzUWgwdNn9FLbMzNzt9axC7+Ui2XSeyPHEf0D8jz42cW4cq5f5LYwvMEpq49pEHx8XIozfXOG5v79uQeYj6x6UEKcTpL9j1vCKeNGTJ8ESdWEmYB0WuDO5vFanmsIHxBNdqD/T7YM38PLWW+hw6EjIkISchRLuZv9DY//2Rlq3JiAivbn5dZx4RYRrx+YRd6jRnqbYl7vS/rarXWncW9xTF54ddz/M6QKd0UcccvtJLbfIGVXnp5TwhStjH4uWEg+0PBmV5HoX0BwbMp8YQuXKtr5o03AtImCp+fq9bruogSppQwp4tEWi0cLOKDe4YrUHqR8hFNANfVtnzPlDkAd4= 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)(52116005)(1800799015)(7416005)(376005)(366007)(38350700005)(921011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: zfpq65ldnKdXL7EwIV/Qh5AExoBY+jqB5YfZGuCBL+Oj7LYErYsSOSDFXM+n0hwl1MiFLdJIDFtQreKbsY+WuQgOAslp5aIe3d74mDJGxY8PRK5uA1ckXRmvLcUVjgxiIhs+BQLXCZWYgQ3IXCti29VL8MsOgGcBceH/Wq24WlDxohpWVNkSOnr+rUgZ3QWgAJIULiJlOizivM+oDhgh6bbrTEsR81+5nR67CSHWmcb/1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PSvjzOSomUP0s2JvjLsKyekE3CFofG1CwLQ7V25Fpy6BLBV8CXnI5hPXPMkkYN6w7ka6M+BSa3LvOtjYs+E3wyzgMnd30GX3qo9xc2xMuSjZnSogJ4s0/pl++RoXdZGwDNaBu30gS/j8MpXEyrOu2lqF41k4CLDejH8s2gBYj8kIxb1UpOwYS47oZdFkLud93q8Jpt4V+Icb7VSxqIlsCyyQ+IzgqQDJIzNZLJ++EtUfKJx2RcHVpFPG7VzrtBg30XPqZHSO/xBiZKYOH88ndaBL5U0DCs/Pvqk2U9q79l9L0AuS/APUYGEGf0yJU4OlS5f2FjZQ= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 778a39fa-0cf7-46fd-e1a3-08dc7f71b45c 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:51.4810 (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: nP5FWabUKayqWbUn86gpMBDepViQDA2xun88ElvDuqCD95gjPRD3izvJz/rLvgZErKZO8zKhmkEgcQRxDUMvFEGsqQMBw4VvBABPX6YZyyhVkXRum97+s3qhBeS46iWK X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB11224 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240528_165557_864850_6FF03B91 X-CRM114-Status: GOOD ( 10.93 ) 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 Reviewed-by: Laurent Pinchart --- drivers/staging/media/deprecated/atmel/atmel-sama5d2-isc.c | 6 +----- drivers/staging/media/deprecated/atmel/atmel-sama7g5-isc.c | 6 +----- 2 files changed, 2 insertions(+), 10 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..cbfbec0c6cb57 100644 --- a/drivers/staging/media/deprecated/atmel/atmel-sama5d2-isc.c +++ b/drivers/staging/media/deprecated/atmel/atmel-sama5d2-isc.c @@ -340,13 +340,9 @@ static int isc_parse_dt(struct device *dev, struct isc_device *isc) 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..7c477b1d3c484 100644 --- a/drivers/staging/media/deprecated/atmel/atmel-sama7g5-isc.c +++ b/drivers/staging/media/deprecated/atmel/atmel-sama7g5-isc.c @@ -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 Tue May 28 23:55:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13677602 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 F2519C27C44 for ; Tue, 28 May 2024 23:57:15 +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=5KayqAQU7M60fgG9mKDSW59VIOJK36kusFKkB7yzWpA=; b=CfKivctRRzhlBYnFd+qqOcWFks 5qUwl8ShJ/jMmMJRsWCCC20zOtfm/y4WnhsApUbujcgbF1POCi8V9nyu1k4WUR6Kbf5rVtXrBin/p TZ6Bk7cno5+3/gJilKySPRdQar+fcDq05YKv1j6B8PMfkKkJWtJqb+7mwS50XChUNECf3y0rERXfX z/5iIZQ/hNTG9lHqx+RGGiNUufWCOTVGdZX/KMZkhnqhV05+OplQXsoZNVtHoVJbXI3w4LdPEXEXe nM0h3wLz40G/D/V1Ri0AAlcKa1GRkNOQ/7JSEWqxXVX4+2Wgjz7cNi39Eyg4/nqseYLmw+0G5yA/H vk8YL69w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sC6gi-00000002N8A-38N2; Tue, 28 May 2024 23:57:04 +0000 Received: from mail-tycjpn01on20601.outbound.protection.outlook.com ([2a01:111:f403:2019::601] helo=JPN01-TYC-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sC6ff-00000002MKy-44VA for linux-arm-kernel@lists.infradead.org; Tue, 28 May 2024 23:56:01 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cNleaFAMnnJXzU8QGq27CSThZwc5x9apbiz3OnoPFQyTMg6Cl1saIg5+iF5kEv0yo85kCeOoqNLTkv6sZRjI7SGhobJL3HloEnwX7rNMD2UWC8BbC3sDq+FaHZtrhO58djHaSSbFHN4iy2a+ebWlWJdSwGnMg/FLi63vvF3oETInPEdfD0Z9TiJgy7k9/1gtHWCodSeq4ilSHQnf7Ory7FNr9tw4Lf6GIVnywPOP2/nVmsY6ptwVlImSU77UUp9vo134mAbrWIHUO57ax6emcvwYSJ3xsfenpznpMdwBAvYpKb45EUJjk/uRKvD7CfiQv68GUydI3M4mGMrtzy53hg== 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=0KmrqbIJDPS6nDHWqhAdPaZ8p5YlNa2toW2S6vqQ9os=; b=OEjte84m8D2Y311/Nh//t9T5jNKPL4B2i2YYiU5DscY2vKbMBGzcTY0b6XyosyIToyz2pQ43PMOGSxgdfB21iHk4z4kHVdwRUT/NapKFsyvEBR5TZ0YLMyLQEzoRuelgRVvauM0aajE0l0SoBOcTaG0I66HxBmLFiEZFa4E/2wn/sfbfU6pk6V98KO+znIurlIfNYPvKKiLu60s0/8E+Wc2kZkPE3fxPNvQQOa9By/xNNp92IAPVLkKW2u0f8JSQvp44ecybwbNlI/NE0gr66RPIl6EFveGv+aUuqMfGPZGFiDB6AO8HmDIZqj3ahYr2GITm547ljKBjnS3QL53oZQ== 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=0KmrqbIJDPS6nDHWqhAdPaZ8p5YlNa2toW2S6vqQ9os=; b=l/XPHuaSScph4ux9r/uMaxk7JOl9SHxgHK5EA3FuDn3Nuqc5UTTmHv+v54OkSky+xzhTiEzpCUBBACywZW0sQjfeCayoJrpMdt1xRZo2R9S1fn1KX1KRviUQqgNBn4U0s+FFFlMp6clv54AJf4G1+Di17AZp2tfjn1eVGjU390Y= 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:55 +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:55 +0000 Message-ID: <878qzt4hkk.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v2 resend 7/8] video: fbdev: 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:55 +0000 X-ClientProxiedBy: TYAPR01CA0027.jpnprd01.prod.outlook.com (2603:1096:404:28::15) 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: 277e3005-0713-4c3d-0e9c-08dc7f71b700 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: YkuhznUv43vddSGUBAR59A3h2M4vxQlI0nHOkCP02nvere0kPDBSp3rNSCqwDc3PQRlO9Qy3yHOAxjK8ouNHUQfYeptl9VAPoImnbU/Gq5eDjpDJalGAB+8chFzMaaP1ISD5jghTIlEaYBkBe+Ltgaz0auksGYgca2E0KffIObzNposOiODiGIQ9W8HicOv6SjSJkV/uxsLTwLTpfWbBMX5jnWuEAAjCMmBrIxO1N0t26E+gYo9MWo1b8IFPnYmHOSggGjucGY+TBxQmjBRgz/epBoZOMmApPiEnviRRYpTMD9o8ngVZkuTuxs6CqLWG5YveeP/oG19McA+sCZHJi5t7vwxHycvROxmtgcvQ7i81p1muvT/GrCqdjIc34U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MB10914.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: 8w2ql4p7BXF8acoL2nru5mIuPDRxfGqH+rQf7ahtbLaUBBck8KDoGyC7+geH8f9DfDcmMhzg3wwa5S6rsUCvInFBUmRj36cyl7u8I1ccQcFOdxaQ2Wzx2WIAUC6jHq6aHvUacz/9B+pFJP1G05pe4tcvtDfHLlud5vhS/VIqET4gl1tCh286dHbZp0pgOi9fkhuKUg5dre1gB/rXgtJX+EvJU9YDT4oKZfje1LqlWWWUm3k7SpZlU55M3E9by3RucXCq7/n5wpcTGV44Ug8xl+ZLmIfbggnpIArHSccVx4Eq4jAfRTz0gI9EQboatCj2e3CeWx+PL8G2atr59zEQGe2ADsk2GVlpa1vW5XJuUFq3usqItnoy3atHOEx0FozQV8czpQv5iTtYGiHjEFUSvdVAfKzq1ps2RvtJizSQysS8j8Q7Vx8w+4NdiHoW05mZfPuXRrzfYmM254Fosl7HHe2YvZpu2ykPoPgzBFj2Un10S2mc46HSCteRurQYJ8nSRxFWhlJdkb3t+U9apoMN8S8e8I/V1bUbEbQJ46qG3g2Gd0H4cN2MTR+3FQ9/3/QB3fbUVsZlNkyTtugBVHCSOA17st7Kh8xK5K7EF8ZHFFLOMIYZbO/6yq4hahWbHVNrFdJPX+RQTvxu+WYk87/GPwcxBEA8M/ms6a7BuA+fMte+UVV2nDCptv2dCW3e8RrDSPTRFpLZ/bEA0w+1xTpl/vWVqXI/bepzWjfphCickYZ1hO3DIl+hfpfgE5GRkXKBIzLehRTmmOCTSWGfOtUJTgyFk5oQQ1WgMVVWHv1jjXWbSqL8WO6JUZxqoUbHMQ+XfhKE7iGelxUWKrKLqKuQzw55USmCVzktp5j8D4u7p/tKYi7F2+cxPqB9eIWiEl+esum8cP/NqtX4sQKavlYvRKNLM6eGTomIsA2/LEZzcfeEZ0K9QbqstW3t3SX2WBgmfo5xDc4wETtkG9zuVvQ0rLC6k1pn1tzHxkNlC68X9vDEy2tnkpFB6GVVQory/trZ6gp0jKmrv+K/8aSE4vqj9710LMMxcyVH960fGhAERm5ieVIhn//ApfMyxZ1bm6iA/kWRI1jXnJgn0yyIUm/Vu6qQ13umM3XY5GXz4cT/1FaGPEhJwtev2CKDJF9S3hO/sefqb7rlqaWM+22EEl/6TD4AzIB4q1BvVgdI6qoRcurpZxQ7AOvqHdhPy1TYiBfcBkGcs2iP1wSZu8ph7nsw2anCGSJO/1IvcD81VDNA18y6hce3ehiog2bKAvE0WtHkBkMPDIKqk37QJ35bSWxefE/Su4Z2xpcaXKatq0sr+a8lqS7+zogbRtYsdTn/rx3omiPN3Bt08sLakxWvR9dUGfPfh81G9VMG0hXQySt1fqV/M5ZU8sTEYPxQ6aXyGQV5bR3ejpohIM+4KcP8rA/wNlEEPi7DvAh8pPDiq7PM4anHRjMCs0cz0ORnHaQ8i6esqLc61Y5EjqQekKY3JRYmx6RUXKdkZ5cn8CdJhHUbEwrGSzNnUco/xukZmpa7A0+73aahyRQLbG5WF10OY4BW8vqXDUWQGp3nP/bBpxX8qEvwTCOSHHBgdIoM1rrm3ZotsnfSd58uvIrMr53mgD42D5tWo7+hnVlEazRpKGRcHyk= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 277e3005-0713-4c3d-0e9c-08dc7f71b700 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:55.8886 (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: CQEIQjLk9jKNT87w6xzO3xrV3SNp8xo/d3GU7XZDNBFvRu1j5MfMLU6Vn/DLLI2JoJsB4ed8cuKTbj5ZLpcnKwxfq4s2mKqBC4DGA97jDmXSCgeIblG5OaXS6OT7BNHa X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB11224 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240528_165600_205653_846839DD X-CRM114-Status: GOOD ( 11.24 ) 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 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 Tue May 28 23:55:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13677601 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 4CEB0C25B78 for ; Tue, 28 May 2024 23:57:15 +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=uT3VtWGQt6H7DFRaZGsnT1SgMnSO/1NasBJKOAYX42A=; b=pb3gjfX0eOTyxGwmJUSl5m1ZbK gBR/rfJhZcosnaOBw8p9OpetYI9PqyYUYvLrMqMMK2GVhSAzQUAKjYSD5Th2AY7nRjSph5jb26CYO qNFFFdKe4vsKLO0CPn+D+DHz31irALKqnM8m+vbqHnEYSPslmaQRsrAVfoSX+0vRanMur7V/FCxpu WEvd4G33OOl/dCAPNdtJycbnWBxRbyvvhMCg+Tmbyi0Akul4tBii+JEoVn6++hgOufxjtIFd+WnA0 AOiaRHte1HzbrZUrpSOnVazS84lrvdHW6BEx/Bqgy1WPcTr1IPuhZOADuwb1O/FMEYgRUaW6xyzmQ SQGCewSg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sC6gl-00000002N9B-1Pl9; Tue, 28 May 2024 23:57:07 +0000 Received: from mail-tycjpn01on20601.outbound.protection.outlook.com ([2a01:111:f403:2019::601] helo=JPN01-TYC-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sC6fh-00000002MKy-3wkL for linux-arm-kernel@lists.infradead.org; Tue, 28 May 2024 23:56:05 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=H8gaf1zmgsbGcuWfRKmV5O7ZBhRdaC5HU+lFSwNzMJq9ZoVyUFe5lN1tIaRuMFlqqGAMN6WYuHrrg/pvn0s13BhDqeFfuBBaZlgXt9C4CT3obP23Ybmd6RyVmItrQdgZ2MB7hwwN7Xz8anwUchC1doggKdnjEGTyAaH8TOPUosIRO8UnH0CJEQP1fydfn73yvyZLbts3VlvNhP/6HHKzn3rIfaOpmxP7yNdxgX4tb4qsLaVV0UGJWb79+n9wjRlUXUpRRa0QPLYHu6rJFQfpfXceAMehzW/kXDORREjmW5aZmd9RX23yPxjUNqq0ZPlDdC/UUkP0pELR+3se00joeg== 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=N9l3BMOkzLVKH3aXnBvHDmIPilm2JHV1P4tJXZpRq9U=; b=X4VYZgzRIzCCkcWu3Da3GurPPRdNJOWID5BUlD8P5Kwv7Fn2ZmRihro1nKUcKDqjyQXXR5Gop8ofldm2qUDQwMtai93I326UtFaVgaerdeAUbBcXf/pGkg3193bDTk0yYoP4kOUZ01oOznajCOntpVuLzJh97Guj7p0DAGSQkjh+K+gwu2kJ4yMyYAkKTctf0ZTruDPgMPnKdrs9+483Uqdn4EsH2I68LRFYPB7u1CWRF80X9F82QwQYdTNNTPt8c3veTCEbzV71lTUohGyEBoH96zr5dJseB+IfbEullcHgBoc1aFgvZogLZlKNJJRCkO3CsbaP+n7em+1IBCD3ZQ== 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=N9l3BMOkzLVKH3aXnBvHDmIPilm2JHV1P4tJXZpRq9U=; b=IG7MjNCpMmQ7/WckjygWexydWNp7Koj1m/+1047bM1WT+VdJBlb82Kq9z+cOOqjx+giz947gMPqPTlkEIDZw0F2bNGAGgjkB0f037iatjWvAO35WFdbd+93/g7Nl4hRKU/pAAfHP/4iW1Q2FwL+pZiR/SAuVAUad5mLOw3C/Vsc= 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:56:00 +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:56:00 +0000 Message-ID: <877cfd4hkg.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v2 resend 8/8] fbdev: omapfb: use of_graph_get_remote_port() 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:59 +0000 X-ClientProxiedBy: TYXPR01CA0058.jpnprd01.prod.outlook.com (2603:1096:403:a::28) 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: aa8c8ded-e967-483f-10ce-08dc7f71b97c 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: GYPvpjoCk5H7NGAPAuqQdShNYtV4f6IJZ59tBSTG0BfNjq8WDnIcibcWUtDUZCEy0y6SwKVvLMn//equYm/hpCkT54vh+PcHAZx/UcwyiNnOdpur27M71l0dK9s2/oWrj+td73tW8j+S7Tp2Wi9q5w59bCPkpHBEqT3s0c8O7w6dF11DrAt4wZymBL50lyrSpN/qE8vAD7jQ2EpuhpmFhUIa5i40ECXgCNGiI55AuEyMcLbRgNET3qkAbzGKrU6jHqu7MK4tUAM3/1VHU9YR1DH5fZEDppr19i696nvBQR5Oco62vFdD9/URUILf33IOPBCfPrtJo4ZMmG6FvB+FJcekjfhO8R9QQZpVQat692sXonNoaXhhG5zU8f8xhhc0U3BY8V1IuflV2iy5bF5zKCyj7wAFMsAiYP+f1sUqkodJKBFYmXtuiQKCbW5T9XloCCfyFw19CyKOrrVzzU3E7xgwb8OMm48LfOnllSXqo211A3+XYl+tixUrWmIuIz5PVIHy0F3G4hSD28uhhfH7XIqK5zWR+T755hO5rfSoIF4ZvTTu4PVc5fbUcXAMX3ns4bcV97XaE0QEkLRkPOmlSXp0FHkVTInzbR0Ci7DXE6VjJ2X0owUBfk4Y+hkZFLh+Lzl1+wpmDvG+oB8WXOjbI8qDAE33tP3R00DxDMOHEfT81oC89BAu6LeSLoBD7fowwrG5TGmo9TgxviCmznJBWHnB+bH3zJ54mnGUthD7dxvzyeRenh8VDOKTeznQskULpuX0ap7Xf6Jn+ToAAnsFcBS/nBmnZac8nugU8Bj+M8GXpjfNjKQu85Tld6dNpkSO+Q62hRGic/OvaY1ZEehkBf2p4wzDlosPyvkjSgtsTFEznsjVwmJVDNYO+IzF5t3lCbtNvWvIV/809IRPq5TnLYs6zH6LkZFhgfrmJcz/7hnakUr6NOgyQNU0X9QzBmG1opZfWiE+rNB6rwCyoxhHVWWRZeJkVoQvsk3rMl93Bv1mNzX/BKYmLDQBfV3M2QLQLTYPwt8i+b8QuVSp8qc8vx7oUz13JxoEyBZJgyhmUpz0clJLR/15+3C8/W7cqwhf7zEI4z9EOe0gHHDChRL3ZFAwWZzfNYAG1hwG1au2tTrMNyIQgD/VcgQ3+1PjqwR8dt+oz5iAXpLBriask0PJUllO4o/5jV4myv0T8msENxGNy4VeK/aT5pUycNc5u010aJsMS2oEySgCi1XUSlD5iE9Ohn/GnFdKHBxIowjKTxBRQ6hy0/VzTJc5x1ASa4YQrSCL53QclRNVcxr53vSSwlvnmYP9DS/eQr12c5TXBqTjZJKDgANoGxolH8IHniP3PNMyCUY+l40D27XBMNzrNw== 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)(52116005)(1800799015)(7416005)(376005)(366007)(38350700005)(921011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount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xtHDdpbO1b2mS6vLRS2SJQhV052vIsmnOVh2L7N0UtKy4A/pJWM0xo5GkdGpBc/kDAUcFdG+OneaXZun6IRtk+6+9/lKCHpPALTpx9fF2YUCn6Jxvh1lJayWwwNncb9ZV9F75WVa0EHdCmuB4KmWtZ+DOrEJIoe/1Uear9WFWL8FQAT2xFKarE3ISavOhXlaTsdgsKEMEytmZ63ARy+1m9M1tMRY9XEfJwjAUlc9J8B/KdAx0lghLPmg2M9ThwLiPuHJtqxYkQfiiC+tRc72nllGTjtKdnmPqKkizymdjrbfgAClIu9T+eUPv/WwCKKL1p1JrX4UI6qRVOb6nd4oKslcpCr1SiZDBsMdl1cteNmAnb4vQufu+wpzFEvNfx0UgnTY7mBl5xdjzPBhVTv0p2Nxr7HsjwalKsxmtKFTdNvNw8jSwxw8dIud9NOoHxYJo+SjwnTozzWDLChn++iycz3hxXax+iU1f3w8CCo3LUEQGayQOyOs0VXPkXc+QXaX2C/cfvZRVywTFviKT3Gcgz0hqmQC7rIgQd1iZUVbzXKIv43TobBp+MoI37udfk7qf5yF3vtLWxcldFNBlGyDknA6PFwuWcWbJ8kB61c= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: aa8c8ded-e967-483f-10ce-08dc7f71b97c 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:56:00.0554 (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: K+oiRyB4aMi9pB6V1Gdj81IY04GmhQ5muy5IC+GkpONhd+GqiwC4N6ztGuCgQH2RY5ONVmUgRVFuIAYEsVgr7Ll/HrU6jbewFdHUb6KIfUJdV3Lu/rIHP/Z5/6Y9dLGi X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB11224 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240528_165602_245274_A4999B82 X-CRM114-Status: GOOD ( 10.80 ) 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 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);