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) 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: 799698 Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on2053.outbound.protection.outlook.com [40.107.114.53]) (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 1D24213E8BE; Tue, 28 May 2024 23:55:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.114.53 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716940542; cv=fail; b=kJm8PiMUIy2vaj2RDHKIDl7dG8fPIe+m4Ar0Xz93dII1oyveQQ0G9Thxud8g/OXX793SWx5MXQbqxSBRJuzEeeF8uveCEOoJoXN+H8yZBQDQyARD9oZ1P5fDN8XiQcSJYMzYYTyms1rrpvdMjkfME2zeWhV/R8pDkYw/0iNAy24= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716940542; c=relaxed/simple; bh=agzUnacBIJTHPp1hasMuBc5/81NtDGkAmh5A33+QhP4=; h=Message-ID:From:Subject:To:In-Reply-To:References:Content-Type: Date:MIME-Version; b=Su1JcJHEsHFxoiVNtP3AoWuO19eCa1C/I6+mLQ8yZmh1mL517yLAGkW6FsUOOCTG6NPYh0h7PJxaEfbbjJd5Pb74vKo0d4esgB3BtEFnxq5qQURUssNmTJToB2nCAbtfbEgrwp1xS3EUi8D7WH3nig9DtaRisFlZSjbNKBWlhTg= 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=Su3+w8Jg; arc=fail smtp.client-ip=40.107.114.53 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="Su3+w8Jg" 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) 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: 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-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 1RTikJBgPoxztzZRz5aDYhY/c6oz7j6avPuUVT1+h6E2xGkb9UsxPCJU3IvyaGOkZ98NBEPlkuTdsHVsq+1lfsLM0erZHNJQeq0mVuatGG8nCHRDFXpJ8WTBYGwAfJhvomXiaWetkvKwoMrDV5o6M2SLXPNPQ8GpSEoLw1agDTWZSZ/SVj3n5IY+x5GF6m8R3GEfuqIxU4DZhDM0bWwW6aP8wX3LZ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AZQOek9MM9llsNgG8haDsDjmkSKPqKR7QA7IAhmvO2FFO0Q6Vr/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 We already have for_each_endpoint_of_node(), don't use of_graph_get_next_endpoint() directly. Replace it. Signed-off-by: Kuninori Morimoto --- .../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: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: 799697 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 956DA14036B; Tue, 28 May 2024 23:55:49 +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=1716940551; cv=fail; b=tqbr7W8C9jm8yMHSvwqzHmMIoQSeLsibdjN0ebcU8y/bj+QSPIY55brBfSU1Qs6Zm2BQ26lnUi0vWHwoK4SfwKh2/Bq8fP0PeQ0W8bQbsAV6OhluXLDWaHkIgC6gmLnRDqDbku7gK3hcfnk5SoGkIewxYQgTJvIV1DwYmu9NBWE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716940551; c=relaxed/simple; bh=yGo+BsQGRKnwEm9qiTZtNNtiUEVl++DslquQ1Sv3lWM=; h=Message-ID:From:Subject:To:In-Reply-To:References:Content-Type: Date:MIME-Version; b=WyfQUdjPA55NE4Jw9042MoI17qx1tpEuU39towo/DU1YqS9sSh3qi5jb59wh4+iFxl3q2q8ANBVU0XKxEx511LJn+gwSf/PZAgqsA09FUXXSlXdyndQggehj7wzi02aOE5TKZRxzigt50hDYJ+uXLXS7tg7jHYxHqMMY/SfDay0= 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=WNLiEToa; 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="WNLiEToa" 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) 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: 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|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fGeoEXhQ+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/1qz5hkbmwHJoVaFdrEgJgCvAe6ahnE0fHvhB3zHZuCjPEkz/0niuLGHz4uvqk68p40UV2CcihOE5+MD/ZnAr+SG2PbhaO95snnZSa9m15VBcZa6qILK0TIbm6FipUyTW5udS+8xBmzMpi2Xff1Z4ApnrY60H5hYlDNBjz016+GVCuwrh5x2abG3fp7rFqbrg+wbMopv+k3Ydyz8fPWrPqnYknwLllkAXeDrZXgyPWiQq1A7Ep3g8vETLSQ/v3S/4TVDLhwiPFxUkdPFLXQ7iGmAEJPDS8MCqsaPln4Tk9eDeWz0cglzzA7g75cW+Y+cfF1EeislxIJ3JUZV08/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fg/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 We already have for_each_endpoint_of_node(), don't use of_graph_get_next_endpoint() directly. Replace it. Signed-off-by: Kuninori Morimoto --- 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: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: 799696 Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on2057.outbound.protection.outlook.com [40.107.114.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C1C9C13E881; Tue, 28 May 2024 23:55:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.114.57 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716940560; cv=fail; b=K6Dz0XmxoogvY5X/Hy/V3nN76tDIfrbGcbtS4x2BxqbODUFG4QYNtm+tmBaswmTVo6tkRWgeXf1SRMaBtW0dJAOACH3cW/9eMG24t4LDbGJNxPvoXIeyHn2+L99IBrSHXtqzJoPGIPt8FWZj2U9J+FJEZsW7GcoIlgtLHuPB6aE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716940560; c=relaxed/simple; bh=2jbWbFK558U3fFqKdsV7gYuvJJdQ4I3rEawu0Fx2hy4=; h=Message-ID:From:Subject:To:In-Reply-To:References:Content-Type: Date:MIME-Version; b=Fd7SmRy3DYw0HWQBSpKMfpBKKckE9rBXprv8YSK5qGWpziztEhwMPpoQ1/knPV7n8tcbplnh3kJgSyUhYqoGQw1cooDMYWMxag0NR74Z+4dj2LNEuyuQfWP9KTFDOTCb7ce4C0lxokFO0485SCv/sQg+Szed7+HryQc6yX1n0HA= 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=l/XPHuaS; arc=fail smtp.client-ip=40.107.114.57 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=renesas.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b="l/XPHuaS" 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) 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: 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/GrCqdjIc34Uw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B10914.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 We already have for_each_endpoint_of_node(), don't use of_graph_get_next_endpoint() directly. Replace it. Signed-off-by: Kuninori Morimoto --- 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);