From patchwork Tue May 28 23:55:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13677602 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F2519C27C44 for ; Tue, 28 May 2024 23:57:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Date:References: In-Reply-To:To:Subject:From:Message-ID:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=5KayqAQU7M60fgG9mKDSW59VIOJK36kusFKkB7yzWpA=; b=CfKivctRRzhlBYnFd+qqOcWFks 5qUwl8ShJ/jMmMJRsWCCC20zOtfm/y4WnhsApUbujcgbF1POCi8V9nyu1k4WUR6Kbf5rVtXrBin/p TZ6Bk7cno5+3/gJilKySPRdQar+fcDq05YKv1j6B8PMfkKkJWtJqb+7mwS50XChUNECf3y0rERXfX z/5iIZQ/hNTG9lHqx+RGGiNUufWCOTVGdZX/KMZkhnqhV05+OplQXsoZNVtHoVJbXI3w4LdPEXEXe nM0h3wLz40G/D/V1Ri0AAlcKa1GRkNOQ/7JSEWqxXVX4+2Wgjz7cNi39Eyg4/nqseYLmw+0G5yA/H vk8YL69w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sC6gi-00000002N8A-38N2; Tue, 28 May 2024 23:57:04 +0000 Received: from mail-tycjpn01on20601.outbound.protection.outlook.com ([2a01:111:f403:2019::601] helo=JPN01-TYC-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sC6ff-00000002MKy-44VA for linux-arm-kernel@lists.infradead.org; Tue, 28 May 2024 23:56:01 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cNleaFAMnnJXzU8QGq27CSThZwc5x9apbiz3OnoPFQyTMg6Cl1saIg5+iF5kEv0yo85kCeOoqNLTkv6sZRjI7SGhobJL3HloEnwX7rNMD2UWC8BbC3sDq+FaHZtrhO58djHaSSbFHN4iy2a+ebWlWJdSwGnMg/FLi63vvF3oETInPEdfD0Z9TiJgy7k9/1gtHWCodSeq4ilSHQnf7Ory7FNr9tw4Lf6GIVnywPOP2/nVmsY6ptwVlImSU77UUp9vo134mAbrWIHUO57ax6emcvwYSJ3xsfenpznpMdwBAvYpKb45EUJjk/uRKvD7CfiQv68GUydI3M4mGMrtzy53hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=0KmrqbIJDPS6nDHWqhAdPaZ8p5YlNa2toW2S6vqQ9os=; b=OEjte84m8D2Y311/Nh//t9T5jNKPL4B2i2YYiU5DscY2vKbMBGzcTY0b6XyosyIToyz2pQ43PMOGSxgdfB21iHk4z4kHVdwRUT/NapKFsyvEBR5TZ0YLMyLQEzoRuelgRVvauM0aajE0l0SoBOcTaG0I66HxBmLFiEZFa4E/2wn/sfbfU6pk6V98KO+znIurlIfNYPvKKiLu60s0/8E+Wc2kZkPE3fxPNvQQOa9By/xNNp92IAPVLkKW2u0f8JSQvp44ecybwbNlI/NE0gr66RPIl6EFveGv+aUuqMfGPZGFiDB6AO8HmDIZqj3ahYr2GITm547ljKBjnS3QL53oZQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=renesas.com; dmarc=pass action=none header.from=renesas.com; dkim=pass header.d=renesas.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0KmrqbIJDPS6nDHWqhAdPaZ8p5YlNa2toW2S6vqQ9os=; b=l/XPHuaSScph4ux9r/uMaxk7JOl9SHxgHK5EA3FuDn3Nuqc5UTTmHv+v54OkSky+xzhTiEzpCUBBACywZW0sQjfeCayoJrpMdt1xRZo2R9S1fn1KX1KRviUQqgNBn4U0s+FFFlMp6clv54AJf4G1+Di17AZp2tfjn1eVGjU390Y= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) by TYCPR01MB11224.jpnprd01.prod.outlook.com (2603:1096:400:3bf::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.17; Tue, 28 May 2024 23:55:55 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%4]) with mapi id 15.20.7611.030; Tue, 28 May 2024 23:55:55 +0000 Message-ID: <878qzt4hkk.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v2 resend 7/8] video: fbdev: use for_each_endpoint_of_node() User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: , Krzysztof Kozlowski , Alexander Shishkin , Alexandre Belloni , Claudiu Beznea , Daniel Vetter , David Airlie , Eugen Hristev , Greg Kroah-Hartman , Helge Deller , Laurent Pinchart , Maarten Lankhorst , Mauro Carvalho Chehab , Maxime Ripard , Michal Simek , Nicolas Ferre , Rob Herring , Suzuki K Poulose , Thomas Zimmermann , Tomi Valkeinen , coresight@lists.linaro.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-fbdev@vger.kernel.org, linux-media@vger.kernel.org, linux-staging@lists.linux.dev In-Reply-To: <87ikyx4hm1.wl-kuninori.morimoto.gx@renesas.com> References: <87ikyx4hm1.wl-kuninori.morimoto.gx@renesas.com> Date: Tue, 28 May 2024 23:55:55 +0000 X-ClientProxiedBy: TYAPR01CA0027.jpnprd01.prod.outlook.com (2603:1096:404:28::15) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYCPR01MB11224:EE_ X-MS-Office365-Filtering-Correlation-Id: 277e3005-0713-4c3d-0e9c-08dc7f71b700 X-LD-Processed: 53d82571-da19-47e4-9cb4-625a166a4a2a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|52116005|1800799015|7416005|376005|366007|38350700005|921011; X-Microsoft-Antispam-Message-Info: YkuhznUv43vddSGUBAR59A3h2M4vxQlI0nHOkCP02nvere0kPDBSp3rNSCqwDc3PQRlO9Qy3yHOAxjK8ouNHUQfYeptl9VAPoImnbU/Gq5eDjpDJalGAB+8chFzMaaP1ISD5jghTIlEaYBkBe+Ltgaz0auksGYgca2E0KffIObzNposOiODiGIQ9W8HicOv6SjSJkV/uxsLTwLTpfWbBMX5jnWuEAAjCMmBrIxO1N0t26E+gYo9MWo1b8IFPnYmHOSggGjucGY+TBxQmjBRgz/epBoZOMmApPiEnviRRYpTMD9o8ngVZkuTuxs6CqLWG5YveeP/oG19McA+sCZHJi5t7v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: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: 8w2ql4p7BXF8acoL2nru5mIuPDRxfGqH+rQf7ahtbLaUBBck8KDoGyC7+geH8f9DfDcmMhzg3wwa5S6rsUCvInFBUmRj36cyl7u8I1ccQcFOdxaQ2Wzx2WIAUC6jHq6aHvUacz/9B+pFJP1G05pe4tcvtDfHLlud5vhS/VIqET4gl1tCh286dHbZp0pgOi9fkhuKUg5dre1gB/rXgtJX+EvJU9YDT4oKZfje1LqlWWWUm3k7SpZlU55M3E9by3RucXCq7/n5wpcTGV44Ug8xl+ZLmIfbggnpIArHSccVx4Eq4jAfRTz0gI9EQboatCj2e3CeWx+PL8G2atr59zEQGe2ADsk2GVlpa1vW5XJuUFq3usqItnoy3atHOEx0FozQV8czpQv5iTtYGiHjEFUSvdVAfKzq1ps2RvtJizSQysS8j8Q7Vx8w+4NdiHoW05mZfPuXRrzfYmM254Fosl7HHe2YvZpu2ykPoPgzBFj2Un10S2mc46HSCteRurQYJ8nSRxFWhlJdkb3t+U9apoMN8S8e8I/V1bUbEbQJ46qG3g2Gd0H4cN2MTR+3FQ9/3/QB3fbUVsZlNkyTtugBVHCSOA17st7Kh8xK5K7EF8ZHFFLOMIYZbO/6yq4hahWbHVNrFdJPX+RQTvxu+WYk87/GPwcxBEA8M/ms6a7BuA+fMte+UVV2nDCptv2dCW3e8RrDSPTRFpLZ/bEA0w+1xTpl/vWVqXI/bepzWjfphCickYZ1hO3DIl+hfpfgE5GRkXKBIzLehRTmmOCTSWGfOtUJTgyFk5oQQ1WgMVVWHv1jjXWbSqL8WO6JUZxqoUbHMQ+XfhKE7iGelxUWKrKLqKuQzw55USmCVzktp5j8D4u7p/tKYi7F2+cxPqB9eIWiEl+esum8cP/NqtX4sQKavlYvRKNLM6eGTomIsA2/LEZzcfeEZ0K9QbqstW3t3SX2WBgmfo5xDc4wETtkG9zuVvQ0rLC6k1pn1tzHxkNlC68X9vDEy2tnkpFB6GVVQory/trZ6gp0jKmrv+K/8aSE4vqj9710LMMxcyVH960fGhAERm5ieVIhn//ApfMyxZ1bm6iA/kWRI1jXnJgn0yyIUm/Vu6qQ13umM3XY5GXz4cT/1FaGPEhJwtev2CKDJF9S3hO/sefqb7rlqaWM+22EEl/6TD4AzIB4q1BvVgdI6qoRcurpZxQ7AOvqHdhPy1TYiBfcBkGcs2iP1wSZu8ph7nsw2anCGSJO/1IvcD81VDNA18y6hce3ehiog2bKAvE0WtHkBkMPDIKqk37QJ35bSWxefE/Su4Z2xpcaXKatq0sr+a8lqS7+zogbRtYsdTn/rx3omiPN3Bt08sLakxWvR9dUGfPfh81G9VMG0hXQySt1fqV/M5ZU8sTEYPxQ6aXyGQV5bR3ejpohIM+4KcP8rA/wNlEEPi7DvAh8pPDiq7PM4anHRjMCs0cz0ORnHaQ8i6esqLc61Y5EjqQekKY3JRYmx6RUXKdkZ5cn8CdJhHUbEwrGSzNnUco/xukZmpa7A0+73aahyRQLbG5WF10OY4BW8vqXDUWQGp3nP/bBpxX8qEvwTCOSHHBgdIoM1rrm3ZotsnfSd58uvIrMr53mgD42D5tWo7+hnVlEazRpKGRcHyk= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 277e3005-0713-4c3d-0e9c-08dc7f71b700 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 May 2024 23:55:55.8886 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: CQEIQjLk9jKNT87w6xzO3xrV3SNp8xo/d3GU7XZDNBFvRu1j5MfMLU6Vn/DLLI2JoJsB4ed8cuKTbj5ZLpcnKwxfq4s2mKqBC4DGA97jDmXSCgeIblG5OaXS6OT7BNHa X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB11224 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240528_165600_205653_846839DD X-CRM114-Status: GOOD ( 11.24 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org We already have for_each_endpoint_of_node(), don't use of_graph_get_next_endpoint() directly. Replace it. Signed-off-by: Kuninori Morimoto Reviewed-by: Laurent Pinchart --- drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c b/drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c index 09f719af0d0c9..d80720c843235 100644 --- a/drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c +++ b/drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c @@ -149,8 +149,7 @@ static void __init omapdss_walk_device(struct device_node *node, bool root) of_node_put(n); - n = NULL; - while ((n = of_graph_get_next_endpoint(node, n)) != NULL) { + for_each_endpoint_of_node(node, n) { struct device_node *pn; pn = of_graph_get_remote_port_parent(n);