From patchwork Mon Jun 3 01:18:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 801468 Received: from OS0P286CU011.outbound.protection.outlook.com (mail-japanwestazon11011008.outbound.protection.outlook.com [52.101.228.8]) (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 7C3EF620; Mon, 3 Jun 2024 01:18:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.228.8 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717377490; cv=fail; b=X/pAngy0n1KxN6BdejdFq5hK8Af+dRmdRvhle6qHHmPOXmmuDxoHOqFMQQO1dvG0QVOsj26vdFZG2cAD0n2ZRViNASLcaQZPb3+UZIfQesfpTw8xKIuWdSa0wV04dtnQmOnAouBBD1EUX+IzVwW+OPNhlpFnX32jTzK2IK0yNJs= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717377490; c=relaxed/simple; bh=APMP0vYrATNc/AwnIWuAiFEij8eWJy8DkbOGc5xhMSc=; h=Message-ID:To:In-Reply-To:References:From:Subject:Content-Type: Date:MIME-Version; b=lfyp/SvZGFiuF4C5iks/nbbPeuHyTkkLPsFNwkuk/yxJhyhpg4TP2wxkcbICXhpl0OFRjyhQAjb4iDcGe6eisqrtgPIwQjEib2PsANnPkVIvIeCrYfziG92Qyxs0BU0m1LQBDLMxcbO6px0qvWzPJ+eWDemeO8aESoSOOZCcpME= 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=HsLlZ/7J; arc=fail smtp.client-ip=52.101.228.8 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="HsLlZ/7J" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=l6zLaNaYHLjBMoI0Tg/WRzGzPiWoPnDTaC39q0yvHEH+nNuP403qKg0suKTKsSsi1nd0c7BmGXsD7nFruuYKMsYPCmPEE7twfdj4KSlNkiAfYiM0dRmdgkBsLWC1Jr49VJTAKqNeXyJZdcgH7AXL87LV88HhTIA595d3jaZQBgPBwiwpIggOEYfEvKhJNtQR7WgeSPZx9cwU19oHA8NpdU5Y6NuAsGGrgOJWgn5yWGivgES8VJY8SKCOUw7y0TMEW5NRAwVc4gg4AK1xsh0HNjZkGcDXOd7bEwt2Jbz/LCcQu5iyxypu418tS4pILYF4i5N68DVkBq7Vp93deIfZng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=q/hA+X/NDL2DHVcXTjFOx498moK6jPHb9pGdUrBCLk4=; b=b1E/qm1WRTbDaS+inqb86fgsnEUqPdmCzNVl6e/ar06fgi2INewFxavPKdArzqJcJ0S1Lac4cz4v5RuPhIdnwvonZS7AxnvbLM4gkSQpRZAgLJn3PfEVoe81mIkW9ZQgNfxtkFlixp4jrMNLAvI0Ht53Nv4n9QqscAfVukePd6bqAreT76wgzV6jVLLT1aqJDI81ySiFyrwizkp8669qZtr5a9gXOMZinHmslrFgIBpfN/FaqLSQkBNy/YCmrEOCS0hp6o/aE0hZzEtlNDfe1E7HVUCAQwvfhADi8m+PxYobElmBXTlNMrsLZvL4sBhxsSnmank/MtzFZwn6mgNCWQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=renesas.com; dmarc=pass action=none header.from=renesas.com; dkim=pass header.d=renesas.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=q/hA+X/NDL2DHVcXTjFOx498moK6jPHb9pGdUrBCLk4=; b=HsLlZ/7JnGWbEnv2rmDmJtPWTuZ2hvRofSJFQVBAOrIx3pKdj9kdjFDwWwjj51K/ckOXG0etAwrf+1/E7U3SJYStdr8sWZgjDSRFUpwzJT/b5vXVqoSwXLL0n/+MXTtzBRz6eD7gKKArdqxQhXJ8QmDE/bMd5ssyr7O1F/wBl4s= 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 TYWPR01MB9479.jpnprd01.prod.outlook.com (2603:1096:400:1a6::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.23; Mon, 3 Jun 2024 01:18:04 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%4]) with mapi id 15.20.7633.021; Mon, 3 Jun 2024 01:18:04 +0000 Message-ID: <87sexu4yes.wl-kuninori.morimoto.gx@renesas.com> To: "Lad Prabhakar" , Alexander Shishkin , Alexandre Belloni , Claudiu Beznea , Daniel Vetter , David Airlie , Eugen Hristev , Greg Kroah-Hartman , Helge Deller , Laurent Pinchart , Maarten Lankhorst , Mauro Carvalho Chehab , Maxime Ripard , Michal Simek , Nicolas Ferre , Rob Herring , Suzuki K Poulose , Thomas Zimmermann , Tomi Valkeinen , coresight@lists.linaro.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-fbdev@vger.kernel.org, linux-media@vger.kernel.org, linux-omap@vger.kernel.org, linux-staging@lists.linux.dev In-Reply-To: <87v82q4yg0.wl-kuninori.morimoto.gx@renesas.com> References: <87v82q4yg0.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v4 2/9] gpu: drm: use for_each_endpoint_of_node() Date: Mon, 3 Jun 2024 01:18:04 +0000 X-ClientProxiedBy: TYAPR01CA0056.jpnprd01.prod.outlook.com (2603:1096:404:2b::20) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYWPR01MB9479:EE_ X-MS-Office365-Filtering-Correlation-Id: f36f55ec-4dc8-4427-867b-08dc836b04f4 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|376005|7416005|1800799015|366007|52116005|921011|38350700005; X-Microsoft-Antispam-Message-Info: XoFUqiePWocVQ+g4nkODSbme7dzYN8q01x6oPOjj+fH+hHvp0g5julR/FJTKa77dcGABqP+KuRlotT2yRPaEIh9mIwB4jRvckWrTV4EjHqraB/BY2QZTzCamIJZTpCsslSauuXYXjZi853XUD7jPm6QEutYD1o5lQrf+BqGbn1LWXKjPdlgNbw7kkixLjWW0b8DN++m3DS1Bcjn5FIOlEPah6nHNE5KYNw+TV1TJHa5l6gBupogLjcAQHgKAwNNsKrPGIWuQs166j5O+511JPzVYz3YOizdI2l+lUu9awCHA/oLZpJ09vcttjVunSXVz3BXpfphRxtpakG4oTX0mmJIfTMvCRpvYuv57a3S3W+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:; IPV:NLI; SFV:NSPM; H:TYCPR01MB10914.jpnprd01.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376005)(7416005)(1800799015)(366007)(52116005)(921011)(38350700005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: m/6/DTqcUK83xj4CrA0UV1RvwSfA/gf5lelauUpoWQhECcZ2cr1JsSU/GlV8NWbVq0bt/euw11pNWuoBC+s9ifp4kJXj2AI2TZkGJTsj85FbXrfZzDoLpUiz/bAPGqomc2kK3gO0XC7MTiSKNQB904eanW3JOPA9Yn+HNcRMyigM3Bvf7uY1YzU3ZcLevL8IPDauCHLri7uXCooJxYdqwkWbHZXnypINbXNKVHqnwCT+DMxa+rnAZiVR3aQYQ7UZhRDqAFR3648BOH4dCKWfbNSr1iJl70LJnP3n33vnWjMIWWCfQTtcBSLLtAoKqNsCMbG3Zqjm9AzhXTrQOBSoQgoBWGsFgVIjaJwNJlPkeQrz0R2TBECuPG7VQk8I8AsxoR6HiIJpXXphm8LMxzRQjylEXpdrZHMMzm+UGVc0u9N+uVOTTjbrc7+ieNXjO5Sup2Z6RaLEja/Jb+8SKPj30GMrdK+5vVotiIlpb3efq3+1hAnrDF0S7JpPIl9h+vHmPmZL45mnRwsruPfLR777ylGC3oWvYCnxXmYxLOTTgB7kcdVlomZTdaUs4gpZw4eLmdbeiur9r3v9OeDPboLj4Own4JmacoDF8uuJxa2NapgmenEDXifGCA5srlENuQTFI/UI2vdyH+aWKHmSRukaYzZWXyqHoSCn7tvmrxyDZWFHmsrq1QIH+iOZ/MFwufjtERnSrzs6gtDIBjFLqTtSztS6GKdimNpetMlA+ZJGR4Px2VBHUEt2Dm4s3o54BBS0qD6hMgE/9U2g4RaLm5apY/r6IwomgtdJHZZ7jahSXWIdPEAXn6l9YWT4NGyUjdVh+BcmaL7BXviX+UqDhW5k7mhDMKxCfinc/s+JWvLSZk2Uqpr7ikE1lY4j5/Fk7DtjAYp3QIDIEAA7SQL8sTT5Gdg4Mi8V4jPb7yc/Hk31C7MczUut70+nKsrqY2iXTORmoQO2P3EZdH2w1sPmJI/s7c1nJLQuJ0LeSMyrETK20x1mdx8ULsJ9eLzmqpeAxeTlfpzEJ4RtFuFpb8SJX78wajzWDs1WmNvKee9Bioc5e9zcJMNa7ck4ugorviBkq4BQu7OKTSkMIMlfPR6xUCsyIEHzVA1CwZfhODqFF1bAeNAeHl+2xQOjcD0whdliHfiRmAdrlC7PXlDTetvvGAhKPCZQ/OG/HVfG9g2gthzt3Rewlsa1RrolN/GXjG4mF2+Z2iAYocrjMznSX4W4u8r4bWWkUfb6KXEdbKrgRYSsxdwxky9vKvoP3KfsRlvMN1Y+d9spCMu6YFwsI11SAcElsVp9FGFWXYymiUz0yNSKz8iHxWFmhTKo1XFsZ9eJSSozK1XprnmvGPVwgHv4GfmzprEuQy1LVhcYjPYolFl/B1CNhLiIV61QW4oFppPDgjbpteIs8RBa4Q4VBXmYWCpnPI9/Ac/h2Jjmt8+rDtN3rknKWn6EK5qbXCr8K2dQtkTwULRnAF9gEUAmHSel1/k6lREf566YZbb5KS7FvU8XEo8dkLaa1YWSXSYdthXRCnOYah75pihOFScjCUZJF+J0q1M3rlN8sNviOe/k2cGEWAvtNnwpBKE7Vcj6ix2KlCNMvyOg1sLDOqh7kFn43GsLsNFfyi5GwVfYXm/1G4B2kAY= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: f36f55ec-4dc8-4427-867b-08dc836b04f4 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jun 2024 01:18:04.8788 (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: ppBV6Z/Suq7JS7PeXrwRQIE+KEPImUKz2dg7JjXskc2JCJLEC2uOzvuIFYnZb8fCGMz5G9nLA0Q5LF4OPRRSNFqH4z+EZ9HVO7RhkGyjGfkgV40Uj51C6EuBIj/ZC74V X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB9479 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 Mon Jun 3 01:18:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 801312 Received: from OS0P286CU011.outbound.protection.outlook.com (mail-japanwestazon11011009.outbound.protection.outlook.com [52.101.228.9]) (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 7AF9A5250; Mon, 3 Jun 2024 01:18:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.228.9 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717377499; cv=fail; b=WH53Xu5cGBwCbL95jNWhHn3VKU7vf5JaxrnGW9RaTK6niPukUi6+qQ/Vrmnn2dY3WdTSEW939QhCvW3rahooRKudyRVhefFQ9HApU85TWPLJ8nKFyfnNdbSYgSEmtkMP5wZNjENXBRC52uXHd9WI/Ccgkd5akZetDv6mOW5gut8= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717377499; c=relaxed/simple; bh=jMWV2tOCFT+tH5YSEcEM1qE+Db6K54NPiGd0CJ3jOh8=; h=Message-ID:To:In-Reply-To:References:From:Subject:Content-Type: Date:MIME-Version; b=ss9rGIG0k7+r8DQY8tY2ZDxy9LBy/Hcln0FC2rEn0aemImJQwLIsZX4yTuUlF33KFIajkEA7OdaxckgT4tK8ei05JkAcgB3wkZt81jVloXX/8Vyqn9y72aw+M98kqvuMCBFFrBz7Ezg8bZpoWZQnHTTOa9uVmSugiTMbjNY0L78= 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=FjrEG/uL; arc=fail smtp.client-ip=52.101.228.9 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="FjrEG/uL" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J+nY7WJmg+HQT5cgpM/nb67Zj7IVdqlvk7G8Vh8WXtJ1PjH8u5lM5GTAf1Kmdps9b5wss61OZpSkZaBXIIsR/uwmh+5CTP8NXTSgJrzEu2TCHJVy2KYkDVpTHosdHMjXVqU6aEXYRrv9/osaSfe00jLsSkLb4KJDjLT8nzz1ZIYUaSPPMpCfzhcnrHsPUrhXkz+g1MPi1i3RqGAVX8MI9eQFaEO5Sn2Zi/NUCf1Chwo6UjZtqEgGYHy/Y1z9oZ+nnYuTqD5s9Iq/n0foqC9OOegKstS4de7NuRagGmEch+2BX+j7GEsGEA5JqXP2ZtoXlI+SNRPNP0lJPOuJBwqSQg== 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=REllXbKiXbTph1LoY5sZTemVlDAhDPlDjVQgZtSkG30=; b=dsEYSD7Dd27JRMwnAGY8OHrEyJa60001Vrm6I50mZv+Q7DuK8Nmd3FEZRoOVJrTdULwshB++i0ctcdf3t+pqQHI3I9sbd643XdBYgfRfEvIPFe7+fy6r/fo08ykOItKWw7RoUnGA+84X2FRLqfAEwFL/BuoWft3oodbvEBgnFOFAUTOVw8C8A+4WCJoE8aNP9ukbXXqwC9S6aEcJqjij0q3A/6h9uslwPZ7jZERrF/RLptTM2WE/QnutXWh7DKzU5vZVL8Kfn+NxblCdnyOoEXW7B+862O/OM/TEvnu8stLwbLFX1D8K3Hh4Xe3MnUl61cEQ3AhjrAJpzkNrIga+Gg== 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=REllXbKiXbTph1LoY5sZTemVlDAhDPlDjVQgZtSkG30=; b=FjrEG/uLwrQ5KsivEjwp8wXjiO/Qb8Pkmi+nvYLqBxfJWE2wyd9kM7uvFyQBhQi0QRdynXSK8pf1iAYRFDHvjs4h8VNxXzg+o9ssOj1ALY2+1e2Q2eiL48wSUh9bfUjyJ73HEkNiGX1n0ERDer+AjB77iIBEMAMfm+cM7WHHWt0= 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 TYWPR01MB9479.jpnprd01.prod.outlook.com (2603:1096:400:1a6::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.23; Mon, 3 Jun 2024 01:18:15 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%4]) with mapi id 15.20.7633.021; Mon, 3 Jun 2024 01:18:15 +0000 Message-ID: <87r0de4yeh.wl-kuninori.morimoto.gx@renesas.com> To: "Lad Prabhakar" , Alexander Shishkin , Alexandre Belloni , Claudiu Beznea , Daniel Vetter , David Airlie , Eugen Hristev , Greg Kroah-Hartman , Helge Deller , Laurent Pinchart , Maarten Lankhorst , Mauro Carvalho Chehab , Maxime Ripard , Michal Simek , Nicolas Ferre , Rob Herring , Suzuki K Poulose , Thomas Zimmermann , Tomi Valkeinen , coresight@lists.linaro.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-fbdev@vger.kernel.org, linux-media@vger.kernel.org, linux-omap@vger.kernel.org, linux-staging@lists.linux.dev In-Reply-To: <87v82q4yg0.wl-kuninori.morimoto.gx@renesas.com> References: <87v82q4yg0.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v4 3/9] hwtracing: use for_each_endpoint_of_node() Date: Mon, 3 Jun 2024 01:18:15 +0000 X-ClientProxiedBy: TYAPR01CA0053.jpnprd01.prod.outlook.com (2603:1096:404:2b::17) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYWPR01MB9479:EE_ X-MS-Office365-Filtering-Correlation-Id: 33e6b40a-8e8f-4fff-6d59-08dc836b0b33 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|376005|7416005|1800799015|366007|52116005|921011|38350700005; X-Microsoft-Antispam-Message-Info: bYMWnG+v/jlR7xJwqBuPp/DHmbFsqtin+uVdL15/JKucXSceR5pPICNY04R/Jjv1wq4yynLXh0C4PC381ImDWT8AmKA3TdUEmUYE3D9KSdVElxKDdoNOCs5GTKx4IHtpjdhIJM0hi8HqJz9p3SfbNtGtt5QQcj3g8fVG8onNqFC++gt2mNrWMls30GyeFKX6HaiRC6GeZhJpjLM4J26fo2r6sRWM3gjZirrV3h6E24lTEvWsS2iZe82k3zCPNzqQIaToSVOmavguNdNEudWgFlQzeFUIyajGe4GDpOi60auYhEVz1bsEgg1kJ+9B0x+ce6KXTVkWVj38e9Iv79ZterxHKKsWzDeNhfgvnaMTAenJ5yVYwkwlOGcwMRCMGYYyX/4zvyzTtGA7aqepN78pQJCOVB/wCoU3BJq1zkeWX9SzZUX+/FdsPcC8UjNt3M9Z9KbN5izNh3RrcXILgnNxLzWoLAN5vFXI0NWQxI6mCbM0Uv9S5rjox+xGEUIj8/SGwa89NHHOFONFeEgbwBJ+l7w25Q2teEfzx3gNn+5dd946eYHE7+uK6G9t7VsfZMRB9KtuTJSyjU5+vK/XIC346k3pnV+jVF85oa+VqSmEBAORwGuhTCQLipo9vLJs3PWDG+6lPG68CSMylsyH92WpYzZjKo/y40eiribesTOo9f+LKJcU+WozuaRaacFCuZ7kfdW9gw4GUVBVIMR13v85LeAByINmobnxnzRoEuH1trTXJjdQZBcGGxu0ZDJVyTy0WCNPwGqpT7BRnxHTw/6HXNLRvafEeIrEs9idlXJnoyRteSWZZIPa5tVILZTJS2S+p1Cq4OqW/iDwm0/jEmwur4OR7Mouc9kOVFgzQRYXyufngZRz3aP/ycpQn6opCojsAEwNp1IpQIymVmgD7bRNVHjuQAXJmVcBLeBmqXDOgdc1+HfLczUfmwXYu3kppnG5wU+JUlqhADTIMAIu77CknBOnUCqAuCYzVxKLAVQRKmzgid+Sjkdsi1KNgnQYyIbeDOR5NkeBEUkpBSvie9LfhFxafRhabdKZWtnq8DunqBAd79N9EnOTcGMfdfdRKXWsaBMgKpbPxy4P8lpMN5k8q0dAAu70Tey99ixtEifd3YFIjCYdEPk9/47cWawikxwHE8HtAh0nnGwcA7Yy4LItyIPCe/tNtM1EnTpJYaOC8jRcKMlxFnsQI6DMeAPtsPjSg6YRJIaWDrETUviUfVbegS3iN23Nhxm5UaL7+ji60PlxawvVFhldi9Wg+CetL5uW+Y0vb1O+vdV84Kzf5IkD4iY068UMexj5UNgYAN+OrVLWwgjLha7ULqYgMZ78pdbQG5lXncOverF+Rld/ensEEn409J9TWfFvlFCluEOaC5c= 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)(376005)(7416005)(1800799015)(366007)(52116005)(921011)(38350700005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: VNzVercjvde8aSXTF8K7yqIcAagzJ5hp76o2IytoDwmBgZVZEt+ANK86OGJeSwkToUHaZmHLVS0QIVvS3hHd/bgRm2r2nsX0TyhxYqvJ2L7nHDlKoUmGGpB1bZkmGz1k+wa86Az5Y61UrIFT9mhaExHzxvbCKsA87xCHHZ2b537f74+5A584jsJ/GMcXrhGYcfD78Cz/NVyin3P0arC53Yf1hPOFsj5ZL7sai9Vv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nJbyGb9L8LMYFgmjatvSiSMyDjp0P6azbEY+p1YoVDXDxluYSNwM33L2yvWSCOUewrsb14iKGzKgriL2F4QvTS48mV0407se2LjVioUzTbzo+T9i9NBRSapV1iNFSQG0cCTDZPoOxBXQJTbwAkPtRAzfyBDyjhiCMF9iwMaNfx+KjTMyJ9CgI5pYYMmp/Khw4LnknolmQCHh7c2g5mJbUDvvrzm+2V4sJV+tdYn/EhHr5EZTj6HTxqWdXQkn1b+vnyLySANdqINUbTjZDoeOCNCTqb9y73akr1Yv2jodB3QFhtbRbGuH81ZXDXOykXQ4Pp1oOzrTSA= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 33e6b40a-8e8f-4fff-6d59-08dc836b0b33 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jun 2024 01:18:15.3517 (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: DyFMt5AirVVY39Jd6xIgIB6aTxIk1OmFXGYsIgTtu7wK9pj3Z4Y+WX1nCILiucLRKhuM3VfUJsqGQ50QAwkZCrwB0DbYgmpA/boVKWwevQZLFOm7SDJMkPhQ33TH0mmY X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB9479 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 Mon Jun 3 01:18:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 801467 Received: from TY3P286CU002.outbound.protection.outlook.com (mail-japaneastazon11011009.outbound.protection.outlook.com [52.101.229.9]) (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 E35BB4436; Mon, 3 Jun 2024 01:18:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.229.9 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717377507; cv=fail; b=Vo1yLJyzC/z/kDs5R4+vFWIpE+3Fmltj/sqF38MiajvA0fQrt6TAO50LNFsx8NS0YdndGQe6FHsvKCquAluxJi0D9Tg3cS5zEbI+J/Jdllp3Hm/bOf4ZhO3IPkyQQ+xqru9xK90KRUhcXEFIJcsUwLq41LGyZmrOLvYVW5mFlvo= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717377507; c=relaxed/simple; bh=wKjEPyL1kLmEa1RWUv0Xk7JzIG9DlELiQlr9OfVxw3c=; h=Message-ID:To:In-Reply-To:References:From:Subject:Content-Type: Date:MIME-Version; b=mlJAn0A3I0DdlE7DJbe4umM51Oo/LvGIgFfRj1zmeOUBcuCs2BZ9dGvcyAUX16j7lOWqditRuwsNXYej7RHRzFIovCvFVQtHjRj0eF6eCXodpq2GMCFA6ZFTVdelP1FAKX/1JKMaR88dvtBnJUsVV9Khta88k18ogxxtmbFtSeA= 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=X8p4hsj8; arc=fail smtp.client-ip=52.101.229.9 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="X8p4hsj8" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nIdmzN/fim6RUMCSd/VCUAjb0XdyG5+rQCeP363XAxsmLDX/cxu4KKojL7PMMujHsZPY8mqFisBrNTF/HYmXWCCyvO3ax5qRHS67qak99ukAVnYcrveoJMPPEdnUHG3tX3rx/TQGQXDVSh66IEZYB7oRcFxLVtkwlYxV+V1vQzm9obxsvDK4JTI8CgbJ3Tyc/SoafNps6XIiCvPST2xU9UgPYKyiaamG+8wq4iHOWXGQLtGvPPHcYx5uur8lIjzBbtmmfhLQQ/Bh1RfJXixZECxYRpwIdlEVXDRBrdTS/14dmdnANSV1bHSk5uYPoppsxSnwlMqfBBPz5RA+aJ5fGQ== 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=9rI+ZNkzrLrVhQsiJK5pQe/ZrYozduef8K4ZYQXjwTg=; b=ZV0nPY/HPn6s3uBcmIcugoKfE/FUxlp68mo15SO3hk3nOl+qaRXO9EsGRyGKS+WvsDe0ZGuV1fngwahJw4t5IspNpkS3DdNh+4YlEsAOqH+iu6ulBa7Kht2EfUFaQf3Accype1SasTMdlDZ3+bYW96EMNvnGAkzT6KYu52dmD8LvApAxmb+k4y2NxfmtEDSR+n7A1moh4LOh2yvRrNkq4ADOcHyC91+2PUcVt7F006tOEGspsw7zVXcvbgLoqkz8Vs2NeguncgCjaISGR2g5K7DHuF3JpGS26CiBbF9exgSnmIEue137RLh5nP0mKjfAVSkCBJ+FHC7KfGSk6OJ/9g== 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=9rI+ZNkzrLrVhQsiJK5pQe/ZrYozduef8K4ZYQXjwTg=; b=X8p4hsj8wUtuyl0JWwZoJGCwx5qtBHO4JMHYNK2GldN3JEgyveSX7pPsChS6NHCCQ84fb3bic/jL78o6qKBt6ZrtZqexB3rOA76J2KcxpEPhBP7yPhp7OyxjOOEhzE9aA8pkzCqWB+PsVq/F8DvA5Rbxxn03DcK8r66f1NSJGdc= 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 TYCPR01MB11318.jpnprd01.prod.outlook.com (2603:1096:400:3c4::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.26; Mon, 3 Jun 2024 01:18:22 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%4]) with mapi id 15.20.7633.021; Mon, 3 Jun 2024 01:18:22 +0000 Message-ID: <87plsy4yea.wl-kuninori.morimoto.gx@renesas.com> To: "Lad Prabhakar" , Alexander Shishkin , Alexandre Belloni , Claudiu Beznea , Daniel Vetter , David Airlie , Eugen Hristev , Greg Kroah-Hartman , Helge Deller , Laurent Pinchart , Maarten Lankhorst , Mauro Carvalho Chehab , Maxime Ripard , Michal Simek , Nicolas Ferre , Rob Herring , Suzuki K Poulose , Thomas Zimmermann , Tomi Valkeinen , coresight@lists.linaro.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-fbdev@vger.kernel.org, linux-media@vger.kernel.org, linux-omap@vger.kernel.org, linux-staging@lists.linux.dev In-Reply-To: <87v82q4yg0.wl-kuninori.morimoto.gx@renesas.com> References: <87v82q4yg0.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v4 4/9] media: platform: microchip: use for_each_endpoint_of_node() Date: Mon, 3 Jun 2024 01:18:22 +0000 X-ClientProxiedBy: TYAPR01CA0058.jpnprd01.prod.outlook.com (2603:1096:404:2b::22) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYCPR01MB11318:EE_ X-MS-Office365-Filtering-Correlation-Id: 5ae0706b-ce0f-4e61-845a-08dc836b0f5f X-LD-Processed: 53d82571-da19-47e4-9cb4-625a166a4a2a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230031|7416005|1800799015|376005|52116005|366007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9v67dLj8BMXsQnu5vfn/L3t9JftIJnA5y4+Rbih9SJuRcs9u1on7jniBqfTcaB1d63UZ/rFQUWfK3PcWZIsymHa0ZfSDDSDMSZ9pXck5abcGfwRAOTVaCEr++h4xwSya4Ct6VN+1M37ZCTkKzWwgSjAAo0+mOLPdu3KaORZc0sOxjD5PiEmLSvG2S9QcRviSwGwMTdyBz80K3zceUxmeFKrVKTrLeOWAwxVtaNVjEenp//H0AkKcjZar8DL9h7KR9GyS+f4aIs11HPn1qw/v/D7Ri4kQKNHQ7xsApNF46AA== 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)(7416005)(1800799015)(376005)(52116005)(366007)(38350700005)(921011); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: JVbNc0Mf5sfLSqN107dQUQST5m0ARZonI7j0Vjr1g1AI8vVByaKlGa9LmQd0k0tB7Cyzmk5ki0iJXOCfiuqsYkGlcb6zNqMfZ9eNpAZMM5WhlL5m3pUGeMzeNa4vnr8SmvoO+bRCr3Th+KEcQe5EWNl+aX5BhP9fS8N38d2Zfat1wgFwiR36QP7CZG2hLD64EYHnfUbD1lDK/fzocLkAGMBnyqDm4ux1keM+4W5N7Utj1p6AckgxFjaRpKlOYlEWKjv1EU3mSKCkKgXzdKalKGCPmOnGSx1VQKAwMSIHJ1Wf6h+evYkD/TW/t1nci+VJgDU2Sy6VPriY4SnggLbhu+FD2EUcsDIPzxU5FPfd1eKmJ6Im8wAK1jCxVxpUYi9Ypq7cZFUWbCSJyGE8yntCeV0W4O60AbnATqo4HPvPSeB4syLRwJpJExjpG6tbiEkDufdAx0L1lcKF/LKVP8gVhZy1j9Gi+lpnpLueXwxiDsWTbx5Bzo9lM+KJdMWBMsoeSbKTvsD3njQjNTsy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hKfa+ToEMsXwdVQICVzFKKM= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5ae0706b-ce0f-4e61-845a-08dc836b0f5f X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jun 2024 01:18:22.3306 (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: 9qtbydkpDRF+swxn6pQgKJRDSb87Db3FYimr+62zZh3FeJ/QFNQtgQQ5Id63uzihIrcIFtQ2qyMzbDmnmfjKewK7MhaActWlrlPs4mTLxjbtaMuUp1VTiZVrW31iEb2C X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB11318 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 | 21 +++++++------------ .../microchip/microchip-sama7g5-isc.c | 21 +++++++------------ 2 files changed, 16 insertions(+), 26 deletions(-) diff --git a/drivers/media/platform/microchip/microchip-sama5d2-isc.c b/drivers/media/platform/microchip/microchip-sama5d2-isc.c index 5ac149cf3647f..60b6d922d764e 100644 --- a/drivers/media/platform/microchip/microchip-sama5d2-isc.c +++ b/drivers/media/platform/microchip/microchip-sama5d2-isc.c @@ -353,33 +353,29 @@ static const u32 isc_sama5d2_gamma_table[][GAMMA_ENTRIES] = { static int isc_parse_dt(struct device *dev, struct isc_device *isc) { struct device_node *np = dev->of_node; - struct device_node *epn = NULL; + struct device_node *epn; 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..e97abe3e35af0 100644 --- a/drivers/media/platform/microchip/microchip-sama7g5-isc.c +++ b/drivers/media/platform/microchip/microchip-sama7g5-isc.c @@ -336,36 +336,32 @@ static const u32 isc_sama7g5_gamma_table[][GAMMA_ENTRIES] = { static int xisc_parse_dt(struct device *dev, struct isc_device *isc) { struct device_node *np = dev->of_node; - struct device_node *epn = NULL; + struct device_node *epn; 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 Mon Jun 3 01:18:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 801311 Received: from OS0P286CU011.outbound.protection.outlook.com (mail-japanwestazon11011009.outbound.protection.outlook.com [52.101.228.9]) (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 2D1504A12; Mon, 3 Jun 2024 01:18:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.228.9 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717377512; cv=fail; b=GcgalhUZb57Ke42AXX4iNTnhKSffBiUWzFR6zVVDJHTg6ub8C1eL8kqnKvAXKS2PuXkrSIO7UGGQqudDxYJBfBavHd4/BydLFASwhEerxTYPx2gQXmfrL+jFRZDCfQyj9e/GPOpoeYfpC8MyHxR2YgcO+24IQLYvO8hQ/NIGNrE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717377512; c=relaxed/simple; bh=8ZuGsgrdGcfp+QgOSFkBt0AMtXm/THslfJQyRrMCYYg=; h=Message-ID:To:In-Reply-To:References:From:Subject:Content-Type: Date:MIME-Version; b=WT9mBx1Yum+UE69vZCUtoRRvqcCelwi7pCX9PoxRZ8Ow+JhCZYH3jvfU3+aDs7wIUiRqdVKAhEZHUJ/TSCz7lMkIPTTOMuGkrlX+8zD2jjTcKsKq31bo8oJs2wmjmR2F45YApwaCqPLe2Bfn8Z9Tshb2j5UPJyU1va+TluaY8cI= 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=bIGdRHVy; arc=fail smtp.client-ip=52.101.228.9 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="bIGdRHVy" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KlWgR2KoIHNAUEPBx8KlFry5ocP85uKofhazMNZOJzTYTu1HE+/Dt570hGrK7ZBWDzCOuxFh6s/jK9cOqioT0iwkTPe0nOBJSgUbyhy8CsS6vkBE8nWFakYi2sMSqzzae4/bafzAg9+jAN1XuayJ+hBAxdLqeLjWWp64545xe4NFTfzrvycvJ9x2yjHr0/ufh9cr30jVtnuU7xz3LwaKaaUYoM4t0hwusTpn2Yx90EbO+p/gaMu9IyIIxOk8vBRbew47BC1uEi6z8Q53WzZP08ec2loX53g+JTW1smB34mUmC/H4HdWaROxFTNyVW6m3Z6aCGNfX8JVoz0TcSYHNLg== 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=gjGsaR1b+XxwTO9Q3/woPdYTEnq443MXMgIOL4ktaTs=; b=d1XAq08ISdOW38VfG2QJBU68y6+TAYl2GWWASEHRMS/BwfFRj2sskYXHejlDpUwgtJIU1nJZm4MYIptvWiOWq+fja0bzBCwKnn5fJ50ZnAnwpaaP3qh+4gjP5xQm+IXlK8O+pt7Bza2cvnfuGdQDf0w9tX0h3el9aGxWXVPjpHm0GwjZcapY89dFs5sd65Jas/BqaKJA5mrHzg3VY8jvEFzeORtQfUPYI1qbj0NPRJR7RcFnDdoWqE5KZTDiLPN/r8+mPTUSNrRKujGLM5cr+krnrFeOFNBJF0UIFr8Apv3p4r1zsRdatln5trxzKPbxA7wxFnc/f1OAuN1typmD/w== 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=gjGsaR1b+XxwTO9Q3/woPdYTEnq443MXMgIOL4ktaTs=; b=bIGdRHVy0VP17I5SmRn71A31lHTLvNU20TNFkVKDxLsIsvVeP7ZC5GsqaM9T5SST3tW4qEFMpAfmpsKTxK/q3ESqjTWHJZ2R+EZ1vWqkdNEl/QW91VJdP2j7GdG+DW6VaI4k73/g0ZWve13TZtbOyYr63QerICcGQsDNwAzsiKA= 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 TYCPR01MB11318.jpnprd01.prod.outlook.com (2603:1096:400:3c4::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.26; Mon, 3 Jun 2024 01:18: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.7633.021; Mon, 3 Jun 2024 01:18:27 +0000 Message-ID: <87o78i4ye4.wl-kuninori.morimoto.gx@renesas.com> To: "Lad Prabhakar" , Alexander Shishkin , Alexandre Belloni , Claudiu Beznea , Daniel Vetter , David Airlie , Eugen Hristev , Greg Kroah-Hartman , Helge Deller , Laurent Pinchart , Maarten Lankhorst , Mauro Carvalho Chehab , Maxime Ripard , Michal Simek , Nicolas Ferre , Rob Herring , Suzuki K Poulose , Thomas Zimmermann , Tomi Valkeinen , coresight@lists.linaro.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-fbdev@vger.kernel.org, linux-media@vger.kernel.org, linux-omap@vger.kernel.org, linux-staging@lists.linux.dev In-Reply-To: <87v82q4yg0.wl-kuninori.morimoto.gx@renesas.com> References: <87v82q4yg0.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v4 5/9] media: platform: ti: use for_each_endpoint_of_node() Date: Mon, 3 Jun 2024 01:18:27 +0000 X-ClientProxiedBy: TYBP286CA0031.JPNP286.PROD.OUTLOOK.COM (2603:1096:404:10a::19) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYCPR01MB11318:EE_ X-MS-Office365-Filtering-Correlation-Id: 6f848c52-896c-44bf-3d05-08dc836b1284 X-LD-Processed: 53d82571-da19-47e4-9cb4-625a166a4a2a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230031|7416005|1800799015|376005|52116005|366007|38350700005|921011; X-Microsoft-Antispam-Message-Info: qkLEfFSY+xY2W2+Kjn9NnAlnAGaap1fK5IiRENou7SA77SK1i+TnkFzsDOdTrGIe16+42RtDl42iAz+Rw4iGkyYu49Ys8yl2kL6tvC0R6/wAE/jzcnPYMvFWkWG4tzQCNouPQ/MwZlnozloGaPr0U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QspZfVqxY5wNELFsO6pSesH9nbntJA5wfgRcPMVxB+ueypfu2r+KM6jbIKCS2ZcHN4DAQMmMRBEzEt47/hhT9HRJUewkTKwTcsRbwSkQnfeXPczZjk1v4MRkN4ZY4cQz1BOkVP1dH1mzSPyamhCYY= 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)(7416005)(1800799015)(376005)(52116005)(366007)(38350700005)(921011); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: +XVNs5R3wU9g3O6YUafrqLl+MBYUKjJbQBgLn1lLLd9QwucLOMV9rcb+cwrAld2Ikd4ZqQWJjx22wmhbMZqWmX6T1B0+LmW8BH6kXboNV125hL+jdEqJkr8jHf3ne3f4JCBl0j2P6H9QlNd761gfi19Zfa5rTii5W7tGrba1x61mjNqacrCGv7n0uXpB6elZ3dHYHnvUz+CdXBnB/iakHtJBqDe/cetxKJxwV8QvCH60q6wyC0IvNTMNigb6YFwzWTmDUDF7bWlekfiPWlkUsWIz/H8GHqB4F+QlRi+IPoiL42Y1OoX3WSM1+rJzQv2m8s+8Y5uXwCY7Ii4d6ToalO2tmJdDW4AzrnbaLu8Ob/1BClNXuScrOc6uN9v27K8mqf7Wb8YWAvNBk1jiNQWsGli91rXWnXkzipcItvrjgUJJXfitPPGmGJMFdihC2eXlpAUWY5bBh/Im9YU95YqTvhI0ZrrrErmCxPwsIISjKAL4sbBFiW72wR6twopMDyxiUbZjYRKUk2lzlGbWCxIHWaow0gAXlkP+uwLyy5tPyoeH2N+LiVZiWUO4+tM55UqrK1kptWt5Id4NP95U9Ag+psfbBkP8q/9XhwWTzmjwzqSaulPXGHPi4bD9p83isGFnlcqUBSLyjoUMuCee5rYKAX9/ZSFhzCezoPcoEvDHg6+ACIDKvk6FWambXWR1X+/3TvWJag6hiukmXtjaIa5biYPQSTxSr01xku7xAGCP/U8pqKyKzE94OBO5VF8Rll5rM7Ts696kInNpOzXQfWglxtFUUIAg9cEL1Q4/S61AtTcBomH1Axu/iqSiVA5eY1FyQSZcmnPYW5dj3PCYD0wTEhYrWT5jhTwieBkVAB/WRD/ky5vVwZnc1YjmH/WkFu8cOvmStdlu5Es2KgHLDOKbjqnF31hPat8IqKxA8Pw4zUw0GTNo5y3/tpxyVwfHfilHSXreZfsPdXIuFhxDUQtTk8VSM02wJXaLWqUiYMFR3Zwej890ZORDacSvkrXQmElDdnMJvqGP9sqZe6xsSqFuVvAejMAukhn9ZGJb9JDCGB+Yv5RV0pRUvrgjyzPsyqDUjG7h64JTMRuHj65s//lMljRqyasb7+GB1N08V8+PglS5I+a7X+ABI4IT5OA96mUknJP2L1XZgNr8+udGYRVUf8Er9pHk6tpUR+Pr7nrHCKVW2HhJpWoEg6Y3Wkwdpv7NigXHMpjb0Yk1eWwCyHqHAiUkjDM9gQ6nNipte1rh5nNx81GCaoHPLbVTD1mhxrDpjpK5e59knpG2B1B3BI2ZuLu9ty28vtrWbpN4hdbl+YhFaQe24CiBKVAxDb7W5mYTxaFpGay06UnzDAlUqE9TjzFxtU1I42BZL2t5JjF0Ajnnb5ut8O7rTeGQOg0Si/d4Sou6Xju+CFT/r9VLTO2QOaPB7Gj5CHIm2OGpDWY8o1BUsmICRZG+9VWkl18gw4eH0MmCycxGcciKt260qSbZl+nhmRpKKeY3ivslx0SBSxVgrbeUSNqHUddBfyu53g/2ZF5BE+JtaOIRyUe7ggvwBdgdYbIhCjBQp7JyPI5jUGID1y4NUA7mMOiFPLKtkcND3p8D/0r8ycMaCbDhJ8y8nydZm7fe/3opBIvNuT6zwpI= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6f848c52-896c-44bf-3d05-08dc836b1284 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jun 2024 01:18:27.6193 (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: tRSE8ajIxWeaFK4YAjAk/MwA/iOttnom8hwdBE0Fh4ZHrR8IsHNHKKt8MkDGmKFweBt0tLfkDMUk/epDLHr7runwPFLFQWQaL9a/6nmVnxG5wupe8YZJG9AIz2p1HlsF X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB11318 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 | 14 +++++++------- 2 files changed, 12 insertions(+), 14 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..16326437767f8 100644 --- a/drivers/media/platform/ti/davinci/vpif_capture.c +++ b/drivers/media/platform/ti/davinci/vpif_capture.c @@ -1487,7 +1487,7 @@ static struct vpif_capture_config * vpif_capture_get_pdata(struct platform_device *pdev, struct v4l2_device *v4l2_dev) { - struct device_node *endpoint = NULL; + struct device_node *endpoint; struct device_node *rem = NULL; struct vpif_capture_config *pdata; struct vpif_subdev_info *sdinfo; @@ -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 Mon Jun 3 01:18:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 801466 Received: from OS0P286CU011.outbound.protection.outlook.com (mail-japanwestazon11011009.outbound.protection.outlook.com [52.101.228.9]) (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 B54EA17C9; Mon, 3 Jun 2024 01:18:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.228.9 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717377517; cv=fail; b=Qn94aL0uoOKC7CwLW/VHc1YvItOOgDMdJmBM1pBzQN7lpBckvTMI5yPKA0QDBgF+i0TiqLnlcW+6O2rjPu6cP+HBdoXGvAD97iBCZfXPaBIiRmYNUaa6i34Dt4B/CBDxTto/MNCaRC8ypYmRxluMr5Byt+/+5bP1oytnK3RsdXI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717377517; c=relaxed/simple; bh=uceUvCGwLuoMrbqNp+yNdos4nDNpPBVY4SNxjeyFpOQ=; h=Message-ID:To:In-Reply-To:References:From:Subject:Content-Type: Date:MIME-Version; b=UKT76rXAvNVLqte1jSUk4akhDTmExd0pkCPzmVUdMxYHUgIewevqVlF/sXEC9E5vedj1sxa+gnTzbppCamr4XLWqNXvFPZ6yBA/jPqwLjf+3MlhulwBrVAHaDgkvnpDY1NSF1ku6AYPhsjIpXtLfRx0S1HdDTY4KMCVi3XBdsBo= 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=PwxNyStK; arc=fail smtp.client-ip=52.101.228.9 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="PwxNyStK" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YlAyfg+dNISPkSr4Tb1jIXXCeRTxi4Ez8qZUq/JrJ/qFk/xjkydXQLXQJpmKUMHzFK1dV/SuQ+DDyw4Y84FLHxd5wpaU66PEh9UtiLpYgT8e7/eQomZifxDZmPNSuN4eOUe81o0jMR5SYeelK9iY1469rVRTx/ifUsMpWcN5IKywuYdZEv7YM4F5iJ0h+T8G27wkDzLkQyheJKxP1AbPfAO5uMPtOZ2DqArCIz3q0ps9UdLTSl5OvtFxImZff7LFLOJh1Zs+PwguKTOpt2JH8zHF5o2kPyQhMOPf1hbfBfgcn8NQ5iNeAZ2bYjFz9jzPrD3NFFhbtpocmSLbElhQkw== 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=TzMCVV5NPWYM3brKH+nwYP+wX2ZizcEpv6rpzs6d6YE=; b=TiOzDqoS6xKeWAUgSLojQuQtM/4+dj2/oeOIs6uK0w2VXyFu6oUx7f1IPnu3Ix1V4bC4hmRhuMdsIWtP/8kx5w1QUFnQVq/qarm0SedpqEWsLgtMnp8eF+W+1lcQzZ12C5CjG0wPSmOcCY6/d6oB8wy1SUiS+wHivCYIfybq44MRlV6Q2OWqj9KEhTBb7Dm/VmnpnR8Uq3B+2xzhvpocIu/BnG3ormfHFRUTzNChUSOTNWPZdksbRgdX3EUZiWZWXiqpt8T8JN91Jw0+XMLJ9A3IG41Pkw15GWkGvZyguccawVWQSDnXttyA5A+cWhrrRNlNITCPnIYLcW92Va14yg== 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=TzMCVV5NPWYM3brKH+nwYP+wX2ZizcEpv6rpzs6d6YE=; b=PwxNyStKhJyKCTqkIGcGUAxuu/1QSiRP4ANawQhRtnfjJipV7rWsNMSWAOcu1pjaC52I/ID17jW09bbkNY/VuPEUIXOGOtHKV4dYSvRQh9FG3PpP6LA1SWdSAz2jwQ87Jj/YEBWewuiFd0Jsl2exdCIeVYPJdVxnSFWxrrs8D1A= 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 TYCPR01MB11318.jpnprd01.prod.outlook.com (2603:1096:400:3c4::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.26; Mon, 3 Jun 2024 01:18:33 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%4]) with mapi id 15.20.7633.021; Mon, 3 Jun 2024 01:18:33 +0000 Message-ID: <87mso24ydy.wl-kuninori.morimoto.gx@renesas.com> To: "Lad Prabhakar" , Alexander Shishkin , Alexandre Belloni , Claudiu Beznea , Daniel Vetter , David Airlie , Eugen Hristev , Greg Kroah-Hartman , Helge Deller , Laurent Pinchart , Maarten Lankhorst , Mauro Carvalho Chehab , Maxime Ripard , Michal Simek , Nicolas Ferre , Rob Herring , Suzuki K Poulose , Thomas Zimmermann , Tomi Valkeinen , coresight@lists.linaro.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-fbdev@vger.kernel.org, linux-media@vger.kernel.org, linux-omap@vger.kernel.org, linux-staging@lists.linux.dev In-Reply-To: <87v82q4yg0.wl-kuninori.morimoto.gx@renesas.com> References: <87v82q4yg0.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v4 6/9] media: platform: xilinx: use for_each_endpoint_of_node() Date: Mon, 3 Jun 2024 01:18:33 +0000 X-ClientProxiedBy: TYCP286CA0099.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:2b4::17) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYCPR01MB11318:EE_ X-MS-Office365-Filtering-Correlation-Id: c8d84380-15f5-480f-1037-08dc836b160c X-LD-Processed: 53d82571-da19-47e4-9cb4-625a166a4a2a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230031|7416005|1800799015|376005|52116005|366007|38350700005|921011; X-Microsoft-Antispam-Message-Info: 9mFvZoBcltZGuzjnRd/agLOsyrABtWRltVxn8aW9Vvl9mviwU3WWfh70nNVTi5XRd8RFbj4BMCBoxwu0iEuKXCYo4CHc/I0advJXDsDOgPNNkb10DmyneAAxAaNPVfYIHRh8f9mKprZW0/y4IoT4nwr8TkDnKds/LPWuEVyitO1+wthoyDq5FAxlIY4B7UYD0GWhrpu5S/1dRd+4v4QjxIfA1uPdNHb153v5x5mAIgJP3vBACxaX0lgGBcOf3G6tjakCqT3KCEKhGnnR91nn/rdNWXDzdztknbHUP1f3U4NXpGm3bkHjrHCZyPaTi13tNNIv/aTtHW8Mv/Og/NqnsDDsbQt9OV0TB7QVh7WzA1m/IVzzdN/GaqoNZsKh/BNYiw05xU7yaMb0eZM1M9GVc3xhAlcKVkyDC6bWgzcdSvgZcGq8b7Ghgk2+2pTZXrGvVXKD/wdem8+pofR8Za5TEPabqSPKyJSZjIOf0lM8zDkxuCa8HIdhPcaR0BFOhWCIUwy5JucNdq3DBupqiu3N8Td4KRS9/twjBFYqxSpmJXQkYZNU6jMWgvvFY8Ad9jqMCd3VZU4C+0D89QVlqPv1D3/opPTrNgV7QZWoVbqkuRYhKg+I1EyjL1ZjdxfOVU+oUsJI/serccq8mF64gDdlcAICx4xNINVou13EEsJXeVvwLZ3kpt/ZzGwRzdYXgPbTUaZxsAx+YKU630uoojv6eELAi0DRaO/L70/+ca2TeL7O6w4JOdioND8XmOnwoT22GEFz1neIUvP03DwaZpd901BQLnv0+r/BpWG32w8ZUQJgL0Kfxe2G9aKWg0/LGop0G5tLbX/dDntk2aHtkpw6+8CbnJDhyPxbyUWyBoUnNx8fskScxL7SDbn/OQT5lY5H/x296qoSwby/Zk24wjkWirxv+aYjTLmtBVSxHfDM9zzbN5MoD4SMsyN4AbQwaaSr4bjphJeeTpnUXW61C0AaLx1o7cXRxtL02rYbvm0fXNozQ2AmrpYAraqIbopAaSmbCY8S0I34rl4ftklDb+He25w2JlexPQcmY6bID40JixJUMeS4de0WKEjlLQy73Y+N5opziRS2XN0qzGFTYvzKQl6tfTbWtt47Tx6/KGf/MxQvLz3Scxlo0GqoGgLrUIyy6MKdgIDIzZzfj/wmk3xkdj1YkwBSpQP2YGl3SJWiJlRQyjMBVMTzhoI/TNctSYsS0aTV9IXIAJBDn6F6qSy89l8W+QpWUD0WwtJuUk66eRZdze+FQ+/Z+IVs7ZwQh8fvAsqUEZWTXFGjgpDswIb97gJAhJsCN3LJqUjo5R+FUlTZvC8BYwQlRXHGVlAPz3AS2ie4uXncdZsMir4r60wFOkM1VYsoRS1pG+gMbnyEkGs= 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)(7416005)(1800799015)(376005)(52116005)(366007)(38350700005)(921011); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData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/495+Kd6tKTJqErRIa/m/Z21zhmDwZ2LDZx1D0WvW0l7YK3wH3Bhu+a0IzKfKKgFa3XHN7210Z9UrlVkc8dsytFCk5YYNgRLGEZdTwzocGp5vHMP9cwT18RopOhrFYJa97t7M2wRXUtF1tccZqRR35Jtz3BOcahDFVD6KJajPRly2Bs/SgI366I348G8Aiqt2RnsoQ4ZB4Ql5SPPWbWWOXRvXcNQVtRj5JHQeha6txyDcrV2bzgwwRbLvX+k7Dk42raThkl+I12e+adRm65RlAB7hec9bvfhL9yvCB935VIVqw0uD91GydP7g2zRhwsq4kNBpwvY2p/M1w6dVBNZVsQU8EVMrPXEZHddbdwnlFkox0mFerX10wMfUgTyV6nftCTOP6tLZvZAay5RlRXv/7FaM1JqUWGJ1pktmkrtyuQmRj7pIowbWKcOafMtLSDOBTL8epJl+oAELXtZ4HQ8IV38RzkQ3+0fMlYsovCSoOJmVwI/HVKmb9WJks2TauB0y5+yR1juGsew5eiOYE2ojp0MlGFZTbub7QXrPuK0Y9tuWsDw= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: c8d84380-15f5-480f-1037-08dc836b160c X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jun 2024 01:18:33.5339 (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: 8Mz4xL87rw3/XBEX5mpsKSXtEWDqnZyH4laQLiffbpK67ifJfwbc4kqKIWVdZlVS7UNVrkflkCi20yneCC4CE2lvMaL161WtSGONwSdCA366k7zbnrG36QSwC1fuGBE8 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB11318 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 | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/media/platform/xilinx/xilinx-vipp.c b/drivers/media/platform/xilinx/xilinx-vipp.c index 996684a730383..bfe48cc0ab525 100644 --- a/drivers/media/platform/xilinx/xilinx-vipp.c +++ b/drivers/media/platform/xilinx/xilinx-vipp.c @@ -199,18 +199,13 @@ static int xvip_graph_build_dma(struct xvip_composite_device *xdev) struct media_pad *sink_pad; struct xvip_graph_entity *ent; struct v4l2_fwnode_link link; - struct device_node *ep = NULL; + struct device_node *ep; struct xvip_dma *dma; int ret = 0; 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 Mon Jun 3 01:18:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 801310 Received: from OS0P286CU011.outbound.protection.outlook.com (mail-japanwestazon11011009.outbound.protection.outlook.com [52.101.228.9]) (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 397184C90; Mon, 3 Jun 2024 01:18:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.228.9 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717377523; cv=fail; b=PVmnhfNHxB0IE5vKB63kcxiUWvaM7dmk2lpr11WYO+DVNDejvwzGfCMnEutzoSCDQWYM0Byy254qNZpSnmI4sOh0rTtUg1dRuowDee5fiuVw1PC1q4RGCRst6XzF7rTY9raujUnT7YNjxEF+kYLUIJikafKYOitn0BX5Fp07wUQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717377523; c=relaxed/simple; bh=Gj7gZCmCXBxP7NSFq5kl6WHPm2h/Iad/8G3zfc+eHok=; h=Message-ID:To:In-Reply-To:References:From:Subject:Content-Type: Date:MIME-Version; b=VCPfRsaLGRRUaMn6RHewwWXv+GsJc2mh65kX93GyZFPMM2wkDvnTf9wtoNP9e8CZbzherD1cyim4SyoJVD3oyaOKiIbzEKhpcNnTZy3GedgPqPiil/NjyZTOJLeyH8Hao05hCOKWxrWmfaJry0gRpCXedkbU5278fr3NzM02sOk= 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=RXMU90wH; arc=fail smtp.client-ip=52.101.228.9 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="RXMU90wH" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XTspZxeOuGPsUsSuL9F/Hms/niyX+LpVz57mtKuvWSl84fzMRNRZsoLEa9xPBAXBZ8cfx9oUXpBfBp0NCoS5KITxF1qQSPVRCnJIJnqQ7a0Mo/lga4xGMhNiuonvfdwIyo1o2Gqp/c1HsSxvbLiwqf4T2CwMzUmeJ81nvhlmHN9L6Swd9XsKy1asmzXnHOSd0mRlm+Jm4eE76IC2maR+Rcv8doGK4bwbqPFrT7sKAikeYlKyK0LZGm+/PFc4ATknRzyQLYV0NQGiNs/gd5zJo+u7uDvtnQBLW9i4v8EYAhgxnuG6YoLu45G8l65T8hvsy/TSTLpFrB8gjsUHOXC4fA== 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=UyTYNVFuiPWsFlVH9oyG1GODHOUjUOsgwsvvhJOqvV0=; b=F8EI1Kb4imfyi1uiBazQzxiEjwp7VAok+eb1j23nIETVjr797ZaY2WIseoBi0uhc5wNUO4UBbKH6j1jgxwXNZ8qYeqnTPa1BKZLIL/nx3rqUE7a0mQkrw5qbpupehUeoIoi85pY4uJsDKXv0TQHBtVOunqSJGXuwQUo27pfHlNzN15uuY8Di35+IBLjDzGFKnFzhM+6rQ6SNAoZ2KC657I1ehitNP3iZKm7r/XrfvO6op+1GVm2h5GhtIn8jwTJWzXUWZsEQEzKDScvM9Z1MQJa1mZfHWZSR7AP8vpYWJfyt6tOrFOL81ywtfaayieCwwHHDLY99faeQnRYLmv0ziw== 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=UyTYNVFuiPWsFlVH9oyG1GODHOUjUOsgwsvvhJOqvV0=; b=RXMU90wHOjJvsdLzMdBhq58Z+wk3b1Z68XvJ/o7K/jdo0+vrlCvh7ZL4cNOgrdj+1ZZ1InAjxGQ+XbwQORM1kfbjukh3cghU1GVfgWMtLdVwJgWmL+GT3iy8N+AqBaBxeU80eCwbt5Mvxg1poC9YpRNzPUW+vVxdWIZEA0HTibg= 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 TYCPR01MB11318.jpnprd01.prod.outlook.com (2603:1096:400:3c4::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.26; Mon, 3 Jun 2024 01:18:38 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%4]) with mapi id 15.20.7633.021; Mon, 3 Jun 2024 01:18:38 +0000 Message-ID: <87le3m4ydt.wl-kuninori.morimoto.gx@renesas.com> To: "Lad Prabhakar" , Alexander Shishkin , Alexandre Belloni , Claudiu Beznea , Daniel Vetter , David Airlie , Eugen Hristev , Greg Kroah-Hartman , Helge Deller , Laurent Pinchart , Maarten Lankhorst , Mauro Carvalho Chehab , Maxime Ripard , Michal Simek , Nicolas Ferre , Rob Herring , Suzuki K Poulose , Thomas Zimmermann , Tomi Valkeinen , coresight@lists.linaro.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-fbdev@vger.kernel.org, linux-media@vger.kernel.org, linux-omap@vger.kernel.org, linux-staging@lists.linux.dev In-Reply-To: <87v82q4yg0.wl-kuninori.morimoto.gx@renesas.com> References: <87v82q4yg0.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v4 7/9] staging: media: atmel: use for_each_endpoint_of_node() Date: Mon, 3 Jun 2024 01:18:38 +0000 X-ClientProxiedBy: TYCPR01CA0015.jpnprd01.prod.outlook.com (2603:1096:405::27) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYCPR01MB11318:EE_ X-MS-Office365-Filtering-Correlation-Id: b029d902-a901-4b89-8911-08dc836b1938 X-LD-Processed: 53d82571-da19-47e4-9cb4-625a166a4a2a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230031|7416005|1800799015|376005|52116005|366007|38350700005|921011; X-Microsoft-Antispam-Message-Info: QMqdnuVxXD4iLc7USteKpSCGXtf/53XDgLt8urBIZ2ED93faWIDeXhQwVXxSM9sgoT0TrtPiChPlbKaom6v2Cj7J4d4cmZjO5a9/dNvcFDk4sOS4tCvkVolHnrkaRwaLpb35GoZMTdUYRMmWM5X5eXcNnr89Tq3vdqOabnh4SiKrd7WamGmYRvtBRmObc1ptom2AxtPwJnqXtQghbySI2YB0RITLn93TLVveNJH0AWRH9WmfOj4G2C7outIe8vVhgr1BpKrG+7D+2ewiG2qyTKg0QDFnWlj6+ExU57VvZiufaoS4pYClV6RQOjki9rmw52uXD2voii8qvYohbdW4raZ/tcmhYowohlhUO96oNLRw6nNjnVTCCz7Prn2VK1MdEvLuE4pVZlgd/Nee5Q1bGDReNVl4hD245j0HeYUumkDISkef0CAHWD7Z52g/8HaY96GotdG+yKwFdeCbCRciwh70XRd0w0HCZtrRuQz3ZEjJoAAfhfzyZQiFizAEXEqdFhCrGFuzJzYcY9NK3dUcmmZldda1yTo+O0nzSsm/rSrZN8Lk7tsrcEXr06hHWGvpm258P16GNOE8JExd4ePCYgTupl54oY0M+LW5B01V4B8txXhydesT2q0lujw8MCq3jF1CELandqWqhD7Wi+6iEqxgB9yAGfRMgzmITv3Ggu52zUa+DNpqgtd0+oMNiSbo90xo9tDHEne6h0ari0RsszBJ2f2aiEwAB/f8P3WrTWCpbZP79tQqAjFh6To7ztFJLqr58Sv/iIRVcW0fD9QqFpqgH06UA2DHYG+IClYggsakh76ArygfJbgEb03OYtTeX7vnTqTOaYcNJwTeMyJHIKBle3UUewQg/QfPvdt+KT4hQAdME3Cxf+g1cOWxm4QuxNFB/BYUxn8H+Y10O87T1pLog5ayvWW4BdrBC9q2E7WOtwfFCDRdpAAlkObYzabzH4XOS3/OvX7Uc4elAoAEG6z21s3spkjpWEJtFqtb+ldOWdZxsI8Amq9yPSOFTx211WZ/H8aL3ROl0Lc9MNv6vFvhlxsBiHErdebFzar3tbK8vgHgRb6qXGINhtjPKd0hIksR122y/qdlnnrV+yNixqg+la0gq6Zrua9h1wNdMVbGalyhH3FOQk+BPNy5utmW838a5oD3VpKfXN26YuUpJfT6msRaZA4rHbH6Esdm26kP6VWDWnE7wjeadqHTIZ2RlW0DSwrnkN18jvi5i77HGoYuddUBwL7aNUyGwnU2vK/4LpWEdkYVAe/QpQrCYq4HlmJ1TX1Yf+QF4EmSv4BYa4pSNQMY2BBpoSCaR76Z0hulWcQS6aj1JSa8uzTl4anCVuKuWrggeuqtAMAz9uGxX2kjsVwz1QXkYz8APwzDBks= 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)(7416005)(1800799015)(376005)(52116005)(366007)(38350700005)(921011); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: tKR6/Di2NXSr6ajpIVNyM34t36jmBDWFLZj6fE6JE1PntfLUBXBaWctCAJTd5/gkTIiEz2mfM7nBP/rfOXGvm6kbop68r184yOdJCnMwvj7fqLRg5xPRQKx45U1QKqheeRLObGCh/HCAkpIkACfCD+/Ya7YUy9XensjmlS+oVnSCOIxcohOaiJ8l+Ikdpe+K+Ef90oFCXW+ERxYpaId/m+CqN/srcIkpHo7+NO29q/pY5HXFYG/jNkkLE02mS+rKglBJXNkPeCRynFxlD97S0pHoSeDEOtFYJhgXD1/JzXl7EpoMQLxbiCiMQ70u9HYVF/4c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w4amljTYolek6Nb+t2xxHp+LZHzaW+hTVcBenm4Ameh3C8SeTfuEeIRnhFR/e09dYN5k98MnNhiAJS4BtivZ/UZqHbAUEfFzpie9EYVfBkuoBxkY7WzIMs9u3XHhgSPTCUZ7+XexrNZBwMSc8tnrK7ze6LPtpAlLVGmtiIObydVQ3PT+8AnakGqExLldZuWAFow5Ynpb/oTx4YyejoRoTN1n6dqtvJ7yklET8= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: b029d902-a901-4b89-8911-08dc836b1938 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jun 2024 01:18:38.8614 (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: 752jIk1TKBJKz0trrD/cayY4J6mYzG0Sy1vd4RaN40zT3HUIV33sSoMK3T5c2cbpJXO8m2ip4uvBpB/Ba4plQWdBQhmDHX1lUf9d/D1/m+Fd3wxkI5K1uSHMGj/ybPBx X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB11318 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 --- .../staging/media/deprecated/atmel/atmel-sama5d2-isc.c | 10 +++------- .../staging/media/deprecated/atmel/atmel-sama7g5-isc.c | 10 +++------- 2 files changed, 6 insertions(+), 14 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..712f916f0935f 100644 --- a/drivers/staging/media/deprecated/atmel/atmel-sama5d2-isc.c +++ b/drivers/staging/media/deprecated/atmel/atmel-sama5d2-isc.c @@ -333,20 +333,16 @@ static const u32 isc_sama5d2_gamma_table[][GAMMA_ENTRIES] = { static int isc_parse_dt(struct device *dev, struct isc_device *isc) { struct device_node *np = dev->of_node; - struct device_node *epn = NULL; + struct device_node *epn; struct isc_subdev_entity *subdev_entity; unsigned int flags; - int ret; + int ret = -EINVAL; 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..9485167d5b7d7 100644 --- a/drivers/staging/media/deprecated/atmel/atmel-sama7g5-isc.c +++ b/drivers/staging/media/deprecated/atmel/atmel-sama7g5-isc.c @@ -316,23 +316,19 @@ static const u32 isc_sama7g5_gamma_table[][GAMMA_ENTRIES] = { static int xisc_parse_dt(struct device *dev, struct isc_device *isc) { struct device_node *np = dev->of_node; - struct device_node *epn = NULL; + struct device_node *epn; struct isc_subdev_entity *subdev_entity; unsigned int flags; - int ret; + int ret = -EINVAL; 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; - ret = v4l2_fwnode_endpoint_parse(of_fwnode_handle(epn), &v4l2_epn); if (ret) { From patchwork Mon Jun 3 01:18:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 801465 Received: from OS0P286CU011.outbound.protection.outlook.com (mail-japanwestazon11011009.outbound.protection.outlook.com [52.101.228.9]) (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 3DA234436; Mon, 3 Jun 2024 01:18:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.228.9 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717377527; cv=fail; b=jDqsWGwPyUKoiYSX1PXfyFtsWEVl4tmLIt47BRtPBiuUPIrB/pvxNJvduwdN/2Hn7xPFm8eLBdd9owwIL1vVP3rbbavJZJrnEKEo3f8uqD3l4LADmZdYQkRzNoaMv0IWJdiCmqFLh7ctdsxZXs1q+y0na0egYItcgwfXe0tbWWk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717377527; c=relaxed/simple; bh=KT94KJLdSm/7M1CkgfrnI8TeEN3vyznFYiK2Vh6qhoI=; h=Message-ID:To:In-Reply-To:References:From:Subject:Content-Type: Date:MIME-Version; b=j05G7L6sAIzeWtS+nuT2a81yD7MBb03hZjzFRH741o5YAQY8xl0lO/nrSUS16c8xKph1QEm73yCsvbvFbgbsouhmBWCKrJltlcfHA5ZbnEJke6tM2pJVxGCi0uxAWOr9Q2HS+YbCZHGbY0gmVw+zggz5f9xJoTEiiUNEYikOr5c= 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=k3Uo79iX; arc=fail smtp.client-ip=52.101.228.9 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="k3Uo79iX" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZgbnN3mfoq8rCy4vib15qO1qualkCKtDO+K149kiXo/SEqLrhAp+jylFvMgaOFbqjz0PcpUb8ynxfSRktYz9ewE3u0bDEHiaFm03DOyAjeU6I7q6oE8GUcTabxFlZ90NW1JnDxF4UpLnqHCkzcNp//HRKsMssCvRRkSEvIt1/MkjUZjVsV1N3a40Ez9O/ABGYrIhJzPdu/ZMA91D6h9QgkBx8P1CP9iIqPGWbqdA/hb243I37Wi1XtbkKiIypCV4tN/SBIJL9Nm1pKlMXd2W7S/miR2ObmVOa82qyVdGMqkn5aHFvutcvfwOAZiOZuRHZMkA40UDEuh67HKNoDk67g== 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=KJeioO+EW3xq2nPVxpRr6/AxHxgv9TxbDqgwEZtHUFY=; b=K9SJ7BzvYL+WBhSqXhWOK3y0C/yyMgCjUyWKH6pqVssdFu7p3w7igOF7gDrvkNup4+3MeAdSFdy/0UfFUDHEpTA7J5COmJS19QKN9AY/dzlHWFWu8rNK/8EzeiV/9lFfHBZcoK3llyPvBb5vmWzpGdOL2nrHy6f0GH60inB5PzFgKez9vyE9oMYycXTFiP2w3IbdLfxQ0xeYjUAG41cxgdpKLI1L9bJtUjkGlwcKNRciNSd4y/VmD80c0PUnJYoTjnVtYm2m5icU917K84b06+QIIyvJy/M3zJJdggb1UnaT8aHSxA+A4fZVzCKlPuLqqpSLBClfAjPeF/roUhovmA== 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=KJeioO+EW3xq2nPVxpRr6/AxHxgv9TxbDqgwEZtHUFY=; b=k3Uo79iXm7zt/RZP2Rt1JXkndCt8FyrCzRns8HPPiJaZGcRcUdLegRG/RkMT1Jg79aF7qo03lNqrUhNaTlAKAEAATMTxaTkB6o5aRXkkic86A9Jvgzyl5Yibyzr5sZCoO5wjEshANWYUVus+pbm8JowdbfTvetQExlY1kfPWI1A= 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 TYCPR01MB11318.jpnprd01.prod.outlook.com (2603:1096:400:3c4::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.26; Mon, 3 Jun 2024 01:18:43 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%4]) with mapi id 15.20.7633.021; Mon, 3 Jun 2024 01:18:43 +0000 Message-ID: <87jzj64ydo.wl-kuninori.morimoto.gx@renesas.com> To: "Lad Prabhakar" , Alexander Shishkin , Alexandre Belloni , Claudiu Beznea , Daniel Vetter , David Airlie , Eugen Hristev , Greg Kroah-Hartman , Helge Deller , Laurent Pinchart , Maarten Lankhorst , Mauro Carvalho Chehab , Maxime Ripard , Michal Simek , Nicolas Ferre , Rob Herring , Suzuki K Poulose , Thomas Zimmermann , Tomi Valkeinen , coresight@lists.linaro.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-fbdev@vger.kernel.org, linux-media@vger.kernel.org, linux-omap@vger.kernel.org, linux-staging@lists.linux.dev In-Reply-To: <87v82q4yg0.wl-kuninori.morimoto.gx@renesas.com> References: <87v82q4yg0.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v4 8/9] video: fbdev: use for_each_endpoint_of_node() Date: Mon, 3 Jun 2024 01:18:43 +0000 X-ClientProxiedBy: TYCPR01CA0142.jpnprd01.prod.outlook.com (2603:1096:400:2b7::11) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYCPR01MB11318:EE_ X-MS-Office365-Filtering-Correlation-Id: d075dc8b-e22e-4abe-ce14-08dc836b1c3b X-LD-Processed: 53d82571-da19-47e4-9cb4-625a166a4a2a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230031|7416005|1800799015|376005|52116005|366007|38350700005|921011; X-Microsoft-Antispam-Message-Info: EJLnPNGki7MWEi6Skh4daeB5kky+AbsFPq0X3PReTw+x0jimxnSGJorL1QtsDwkr6D2D+6f790PNeM6hX0JQRclp0P7XW85KwrdYLxtvv28pMrtzsnRjYtI0qoZ3UM9eOJKVERFviJzGtneqgTSFm1Z6cvivNSA9qk5IPGFKBPuhFpK8eGYIHSW2d32+3MrtwJJaJPS4MTeNjC30Z02OAP7R/O0EE+fSsESXzlnt0jbHUjsm43c5XSfXTbxWe85vsFLoiEQ0GKIs7rnsNgT4CxtHBo6w+c6XAwBTRzy+Cqee8dfyhhYJw7JRZ9U4++Yf35Qngy8WD3nFCdx0yvjBZckr5UWImWag9j/RmgL90UFBXxaxVg4n9FEQZstw1OuMRcR976Qrd1nKP6CFfhwIw0HKp6agzIZXmXtpWtVza57IBnGQcCKN85gw5rmUybOyhB82PsTOmGtaab8Q4oWNj9URqXcrJ4CQ+3/8A+yTODuSOa/Qh+uVip5sLL4cGsXPeU6ruOpWjzBHM7HS/0EIAP5PeCiTKOw40OsYFIEUIGc/uamJviJBrNVGjWsvLEEwfQF5eZ4l2Vu5gydFiBkarTRgUNlJ9xp3A58IYUk0aT++QpVIpx+VNw1G8RhzLdv1BqN3zrCnS+UGFNW4dqwV/tmww2UTRvMMm1hnPU+qDYLfKd8bgdR2K58sjcTigwSqGOpcr4H2TXXjyFNCnEyXEKy8jQaIk6RfRWUWEAYRoQ5v+8RzHR8G4KecrDP1aHwWh6NvY3+2NZa+onqIZya+qj/C75DExjIUXYhdXlZm9MR9xTbitNQjz/wOs1+5huTis/COv6XWLOgisoaYoVydL2Ol7JwvUfOlUNTqK+8HTvwYKpH0cF/QrWVLEKEmZr9dNNAxYsJzlxqXVx0Xadq+iCj5vMu1qQhvUkwQ/zjaLsXQ6i5QiQWe48gK+yYTzPtXy8gsTkm2IM6o3KpzZt3qAwiaiuZCiaDq6cCiRAiNXPDuWa8vAKgrgALywOMvtfUXftfMO57jn/cWaxGqQ7e07bG0DA70kIsfz6pO4aJM7Hq/jniViu478JmwKlA0Kr9Zq+zwwKL6opMA67vfTBrVAjjkAGkGo4j9zhSqjIbAESKFOsRw2yL28tuiWydiwpThDZK+d8iao4fTCAGv+zsJ2e9XFRPLO5TSRcNp3l71iInPKiGBswxgHIUBtM+9+l7rqAc6O22kJNZiIP+iGbnNoxaDIZ4s5Q53LeN5pswxx8QXkFfeUATebtL/vB4c3mCFYoZY5ezcTr8CKNpQ60HDfYYhHBRL/90omNFX4y9Z06OidYpQly1Jl7s4vn36BH8CwsKi5yoZPBFXN0noRJwrVs8IJeKcWr5bHiB5eTX9ZDE= 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)(7416005)(1800799015)(376005)(52116005)(366007)(38350700005)(921011); DI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xh55abOTxhCfAfCE4Y+9i0PixUPpvarQgjPA2FUUOnknMadEhQFuUrOgen5m0sJqn1FhBuxbnb7tH/fsKkVyaJWPHVdTnL1eO8y/Kpb36pMBK0KPnwad6m4h7pTSL1FBD8xi6uRrAOVARpSGSCMu8AwjbJRenICVorNoZPknUNlgcEcFQtcOqzQV1rsHum+RD+3PA9nPinMle69SDQJ79pOWgyOCVOOLZVHx7wdYpMwqPoTXZ4TNZZBmhe6WD9UFW59aJ105d0JS63Mt4yeYxPGRH6k0iPJy+2PcJWSkZQ/it5Y7yw+aCn72enuwvvQ520Fa0ZVCVDcVRQhpqdcKxEMsecofldkxGqH1dH9DL0baF6JiO3cCVAVu5mbTkT9EL1lPeAh4k1YhlJBTutQdhA6Vwt8a8pQdsugqUkwm0duLQeP9xVTCuiOoy4oHFyCtdNDEQbRUEoEyligSY4we+Dow+oLysnNeaA4JuxD4Yy/MJAf2r4tA2/BsGnF/T1pBOvXgqNOaPqXoKSMt2eDUa3ztJS43sowycwKoNMvT+0GRFHUCZFF4MnasUQZi5TLjjjONc4mwAybKmM/mgihNQGDvwxg1JL/9RAqciwjqYPuUC23H8mltOzmw2cxjI= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: d075dc8b-e22e-4abe-ce14-08dc836b1c3b X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jun 2024 01:18:43.9242 (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: h5h36jsnuDdtjhx5RzWnwlQpbwClWxi1pPR/6KeEXZdWIlkVynMpIVKIHdBKGSo4kEPiuxOw372sov6WMaPovgvGUFs+qJ8f4EpDYZMJutPjIOn6/HyQqLxBBztLjkM1 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB11318 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 Mon Jun 3 01:18:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 801309 Received: from OS0P286CU011.outbound.protection.outlook.com (mail-japanwestazon11011009.outbound.protection.outlook.com [52.101.228.9]) (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 ED8375CB0; Mon, 3 Jun 2024 01:18:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.228.9 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717377533; cv=fail; b=E5ghABnPSpFc1c77+891taRoWHJYYRCRxqBIdamMyROvuQNjrHjguxBK9x3GDnCfty+m7t2r+MjmEfHi0fkqoc9v7qEy9HCJV5arA3mi1J8a8EgoPfPTXnRIRQPif9sABMUZ1eTJ1xfZC64bxM4pKfjgPmOM1ZNDZwtmN4YBElQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717377533; c=relaxed/simple; bh=RLm+i9/ScJYDLOHo+cV95VhB7eobV/GEZD0X1cPqbWM=; h=Message-ID:To:In-Reply-To:References:From:Subject:Content-Type: Date:MIME-Version; b=Y4Cpn7CoINUbLIM4LP0bgXFGdgqnmmfDMmNGBv64xxAVtPaWHMn3q4KmLZUX0GjZDS6CNJ6kLVqUcLBORZiX6nRlElBpR4upeVahv0s/pab7Fb96QJgg1bY/VSH8D8xKB4s3NkPBIMjRWNuEBSN8GrbuiNdQ1+3X0oUet4dnHN8= 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=oKODHjl2; arc=fail smtp.client-ip=52.101.228.9 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="oKODHjl2" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lmASQVD9cIpGDOQIE6oeoxtjO6mvODif/ZS9BJUC5X5NDqx6czfI0f5z3P0V1Mg+Ryn5DBaa6CnjSDjXMpcvyhlJgKT68pkYDZ8KT932pjHvxLCFFlk41QWTVzgkB98W9X6bYJLmHy1/HJ4ucubq5zkTLzVILy/UEzKlXqBzLH4SZlAvTvtWhjqMZfWBIWN2T08bCWtIMF/1iLZ0M9gkdBOc43+xXb9ynyUvOW7MQ3uEFlFpt8aSGF5dqPllnTwVtxAG7aOFBV2tWRlBQvac4I3npVt24oiLw5aZc08mKpHgWw72qtxF/+c0axsjzd7PDcLkbqS5lJ24aJqr1fsKjw== 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=MsagpA/5pNrylws56rjc/fEA7kqQPMX4DxQt4ow3FTA=; b=Aom1X2XkQ7okN9g9j/a5GzUBMJPwq7XkX9Zrege5BJb9qV7ocu+/C4BxC84Om1gGE+vYwHtHL16fTsMlBXMSszCfZsNNqkjROlbPvNv4i1RTQXyKrfWCg2y+3fvFuI1Zr5o/Cc7qNBXJnp8vw93UftY02D0UzEOFYevzXEq8Ji+BfGRNLREydj9XjaljSflu83IgJ+DLVI5mdLLppTMsexRG0klV8S+KUxBs5L/Xf91cqXIcpfmU6lMv3pASRL0rS7naYx1zodRn8WwFm5y/T11Vqeep7+G37VAeRYRhYUYQyg3mGFNViosaPspbYRlOVS9JjcFQ85w3/tAiUumc0g== 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=MsagpA/5pNrylws56rjc/fEA7kqQPMX4DxQt4ow3FTA=; b=oKODHjl27rAPIloMNy16VOcRfRVslvPpCxYhaEZdC11gpuL0L+j2lnxr5HgP5imOgbrthtII1CjrIWs31nX2tARpxmAdYXyaCFtpsvE8RHC6tz+kF2S8fB3usx+R1No5xe+X21GWWjWytX8N8cFyZPafI+IB13OclYR8VWJrVwo= 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 TYCPR01MB11318.jpnprd01.prod.outlook.com (2603:1096:400:3c4::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.26; Mon, 3 Jun 2024 01:18:49 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%4]) with mapi id 15.20.7633.021; Mon, 3 Jun 2024 01:18:49 +0000 Message-ID: <87ikyq4ydi.wl-kuninori.morimoto.gx@renesas.com> To: "Lad Prabhakar" , Alexander Shishkin , Alexandre Belloni , Claudiu Beznea , Daniel Vetter , David Airlie , Eugen Hristev , Greg Kroah-Hartman , Helge Deller , Laurent Pinchart , Maarten Lankhorst , Mauro Carvalho Chehab , Maxime Ripard , Michal Simek , Nicolas Ferre , Rob Herring , Suzuki K Poulose , Thomas Zimmermann , Tomi Valkeinen , coresight@lists.linaro.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-fbdev@vger.kernel.org, linux-media@vger.kernel.org, linux-omap@vger.kernel.org, linux-staging@lists.linux.dev In-Reply-To: <87v82q4yg0.wl-kuninori.morimoto.gx@renesas.com> References: <87v82q4yg0.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v4 9/9] fbdev: omapfb: use of_graph_get_remote_port() Date: Mon, 3 Jun 2024 01:18:49 +0000 X-ClientProxiedBy: TYCP286CA0153.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:383::15) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYCPR01MB11318:EE_ X-MS-Office365-Filtering-Correlation-Id: 62924168-736e-4b1f-cfd2-08dc836b1f8c X-LD-Processed: 53d82571-da19-47e4-9cb4-625a166a4a2a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230031|7416005|1800799015|376005|52116005|366007|38350700005|921011; X-Microsoft-Antispam-Message-Info: E3G/vmxvgfVfr+S9rd62Gpi2/YNUVsqF0fVlihXtjrUPDKk83vUrqISIr48qwGgO4LPGuVP33SJU7WvcX+AcWtQS9/ITZ825/cOwmfhcBxIoK/zujmltKopFBynDOQBDgtUhNzE17+ucoEhWweQlyJGNT9QTjacFnRtNFzXZraxyibqArvBqg1kj6gWZ/+afITvvyzuos+nYxx6glSBCUOaeboF+vWtXy1P4F19tEZGLsJfFu0Li+zQie5bS4H+x7x8yowd5qspAAFZ+swmxe0/b/66a3NmkjB1aNWkrzlapeCyR9iDROCsoSkC4uqgxRm4JdXZIoe6/0SPLSUTtdgKmLuk89NjUPIOuU2cnUFwdlcLsky8OKhvnq441fFcBvzwNWgUGtstXHzAOHLD4jfs9PbJF5jvHIaPXqaaSsuaKud79xHsL3bdqnoANod22KFegjTgCx+Q5bGVo4lB1FqLrlnz6eDFr0U7v3OpoBjk9lHrhdZ5xXh+mNtg+po4KaI0ux+a+mq8wujlagSYKJqlXaYf6vuXqO6lbiVwF4yOjVVoVlznj2YCVF2Xhsv+fNTcqWrGMRBIioJHtc+3HJGr8GconaWPmdayn1XnpAEgpuImNtLTKj7Vm7dkUQfPW0uNPpVAn7XJ2CWXNHkaLklvg3KCzSs3wBgN99jpNOyASfxFVtlDNtMQ6xWwIv3rda/eY7EyY5OWMQci4ZOAz+hzXfCgnpCpdNhlqMgfPg5bUAsDnPCIbcCS/mjNmvW+YaUwsnuQr3FZN/iybXXIErM7Ff4Lf/DEf09cBpoVXrQJr2imt5Hl+s2JQc6mIsSvO+ccPlpN+FhK+JueY5PHjkYV6IblXOQkPmALGgsjqyY8oqtMIlBs8/C/Sr90P7gbap5ba3SHfJIlV45nJq3Gausg+Ly5SgS8m6T0zsogpb50rd8o769nURViUd7H/eARiz1clIeBGV3cB/6omNAZC99kyMLi1lpXaRghSWYtWdGO3xmKEMFRA5bZkFNvNww4gDMoZmG7WffK5mRMLq2QIRhQv8krVl2T8D8ZVEuJvBUPPEJu597XoCZzEFwYn1+efrUolAzPlIIm19oZyeKbvVBByJI8lMS9mwQA0j+JQivVXF0aBxI3FuAAmRnSs9RsZaKP6FNaSXz23LapeaGBb9qYQ6wr2sN34tXRGd5GK2VdlnXuogmWv8Wqu411oY0AzBhEBSw7oScRPvoQT8+Wx31GzRL35m+zV7JNymX1bW/eo5Pkwb00bnCjFXUsKUca16g+biVe5XX6OxOL8sUSRICKTL4MnnYhjxN2OFwtITgYCaMWPirSxhwB/j6/aWhw9ocfw9mqcCyl0cEJEpDIqgA== 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)(7416005)(1800799015)(376005)(52116005)(366007)(38350700005)(921011); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: qfliaFvMAsMmtxRa4cTHiUE7D+9dSV8l2oJSrtlTt4zuED4/sCfWS7FliuT4lrQKmI8wZRYhQP0p4/Y7BYA0/HTMbRjjhSnibBC0IurIGR/YP4klt5u+by/NMlLHDhz9Ra/3fB6526UmWlgH1841qI5U78Evg1vhhVrmA4Sfr7r/3yAcHH+bYUZ1h/I1pLT745u+QMIFIxDmj687wQphPNKs077EPolaT7iZl2RNvYDDDJgdTveYD5Ks/OFeMJh++Rz+V5zQ/cDMe8mvC0w/0dt0CGklPKRDiJqDE2SRE0oJ3mYMApzwjCNSiOke7kuXQY3CwVxc4sFyn9ZeVo/DP+eFVQh8y+CPhdZGsdoX5ugrJ2VkcRR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qr7oDZWdg21BBEnOTbscoCGHgURzQB5tGdpbGvqEBl+BV4Xf2Rpq/lcLgCu8V9Bav2TC4PJAVvnLyZ2J80nZatIJVID2DUiIVNYBWEp6yD11wW5rdCn44gi+fnphCkcCVpgkQfgBizVIPWZ7AeQkyDSC8xwueXascG3xkjL5P3WY2Qo62I6WDHjYsFcWV8STuGus= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 62924168-736e-4b1f-cfd2-08dc836b1f8c X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jun 2024 01:18:49.4787 (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: D9nB7U3KeVExeSkrXZCtvJOlsy4tiA9IZHAN1YTPjIpTahJ3Stbu8LCdx9E70RpxWmmj3uppAivOaG1N5Ty5ogknE3LFGVt/8NIwCZ0Kc2tBTqU66cnVcllzeNP7K8qy X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB11318 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);