From patchwork Mon Jun 17 00:59: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: 13699813 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 032E6C27C53 for ; Mon, 17 Jun 2024 01:00:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Date: Content-Type:References:In-Reply-To:To:Subject:From:Message-ID:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=KJeioO+EW3xq2nPVxpRr6/AxHxgv9TxbDqgwEZtHUFY=; b=nRnx3Mt5C12qf0STwJVZK62UtO pWSYcEoFhj8cXfL2NHKscFzDDgqEzfYvtdJLOXtD++sWgpI36gSdM5ZqoUQMFzktnJrwXmlQv23sO CKX+ocklcnSr6E2aq660IhPpGpVRfnKmpcKUb3RcNC4EIJ/y1NrxYB7F1ciK2UC0nZCopsJSvhJku L0za0d9SojQ6ZyxGcobi9gz6Dveaj4vmL2drxqNDYOx+Dfu9EiZxw8FS3QZKFwY9etquKY5AFiZO5 Qc7GKWZpX8Py1QAQynxNbfkVaNKV7PsevUKr7f3Mes1tSMb+41F0Lkpteyplna0w3fNBN9dSGMPet ZmYxAsgA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJ0it-00000008dbC-0eiy; Mon, 17 Jun 2024 00:59:51 +0000 Received: from mail-os0jpn01on20604.outbound.protection.outlook.com ([2a01:111:f403:201a::604] helo=outbound.mail.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJ0ik-00000008dTo-1Vxq for linux-arm-kernel@lists.infradead.org; Mon, 17 Jun 2024 00:59:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bHKtHRzTbq+VZtgeRRG8SG5165fgktfO8O9ubk6Yzhl/GyygnPCCmoqVcmFxRHdAytj1G07reCdhy4sJtMvvXgE8lT/OvOoQ7mReid/swFDZ6NUQbMhNShUbB40sFVg7lZ/Ic9CR/TeZGROt2VrK5wsOEzjYH83Wae6/dJYg/npawx4ROubnaxAoXXoJSAuggkgdPyVmZCQUgSn/wivHNz5gpMGnGYxVGhs63tvoEetuOUkcKfdVqQ65QYhSWWCRPL5mTlo1lt7V4IShrRG9CXtbYNUi12IOy9oVaMe3Kdx7nkp6Onr4pa44ZAXXpTTU8oXAHZQLgVUZt1pkZqflWw== 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=QH2ZJGwdY1NT4rz+SO4soeRmTHFn/34CGzP+UGo1u5VJToz7762GBMEk4hlF9z4lZz+2A8R/njD6y4LnBcrsPKY4+YY8ZfrmFBGf6QD2VU3CdjBactuQyPd3cvP8Li6HFn7BAO1a9x4IGksb24oD+ATs/WzBzh27GAHWyaLlVzATBXZpPaLBl3T48XX3FnJR5IbOJ1EZiMziClsKNI2l4ynIHTx6M2XO5UaTonzahMd8W18mWS4d3HLcY9pq3nh2ZNspmJg/KF9wXfmfImpcs4im5KCSmIXeSQ+bMZaa4ZaSWnSb8WAmfOlc6sfNog4wUgJFSTiYAzoiBIeEb3yPWw== 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=KXENqQoT8Q3jNiM90kvkE6GDl7UKQjvXqQmZYuz9GFV5i7WQfcl19ECZGNQuVlnI8I3PtvpUj0Fkh9OgVW2IwiDVzU6cEW6fUZIka8ZjFHcUoL8OVQSx2n9SXUwDh7qb5abQWub27AbNugp7uyAgsT5Tlcq6pQINNwvrCuDZgws= 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 TYCPR01MB5663.jpnprd01.prod.outlook.com (2603:1096:400:44::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.30; Mon, 17 Jun 2024 00:59:34 +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.7677.030; Mon, 17 Jun 2024 00:59:34 +0000 Message-ID: <87jzios7t6.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v4 resend 8/9] video: fbdev: use for_each_endpoint_of_node() 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, Sakari Ailus , Hans Verkuil In-Reply-To: <87v828s7v0.wl-kuninori.morimoto.gx@renesas.com> References: <87v828s7v0.wl-kuninori.morimoto.gx@renesas.com> Date: Mon, 17 Jun 2024 00:59:33 +0000 X-ClientProxiedBy: TYCP286CA0369.JPNP286.PROD.OUTLOOK.COM (2603:1096:405:79::13) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYCPR01MB5663:EE_ X-MS-Office365-Filtering-Correlation-Id: bfc63293-8305-4a1c-552e-08dc8e68c097 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:13230037|366013|7416011|376011|52116011|1800799021|921017|38350700011; X-Microsoft-Antispam-Message-Info: 3TVtvZM9elH4/pJIrl7xl8Eylyxq5cfrj0zQzMFa+0Ebb2C8cXlFqn1nBtuga6F1rlb3zVjdjjI9yvE8VfV153hLnfV2h3mVdUBOcVOaU1vgRSDdEm2+DoRIkO9IfboPlSV53x+9E2FjhiAUgqfjMDwnjTzqacLwr8OddCdYoIlYM+bnZxopeZNL+FYhg+CkD5j/8uye65OD/IayKkvEwLPdixpjbqID8ne3N+xK91w6VEzCIOzz/Nu7vHkbxsFvbK27DHEtgdLVUu8rVDjbkU9X3jppnbWFQNAZP4mP+9Z+PB3c+YqcezX9/EhT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Kz26tALHbhaJd4 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:(13230037)(366013)(7416011)(376011)(52116011)(1800799021)(921017)(38350700011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 2+7PQ2XouOsfIr3qKiO9BPWd27NWtRsUy+hbwSK+LIj9O72Sjkq5TXP8uk/a2zO7S8iPGy0VrXYUtcrDZv+TUsMAflOA3CYkeB3FYPgv54TbpQ1qb+LMBGXEKTkgW3BClCx7LOdROPJvQszWWo9nXkduYLiwbzSfDqLZuwbS/xQBlOO3t9wN8JyP3h9OtYGacaZz7tFqASIPJkvnncNTHjgzrYbVzZvP+bDmW13Bjn6LjzGRXqdNAiKPHo5stWgPBntv55tbifa+mtCVid2fBXtSLnc77zJn/aoHy4kzWGzphN3+CW6SEWleA0OS2FRLriZg577Y+n3qjnx7zdw0v+MOTFaA/b4hD/L6Df3fE4P3/xwY06oTA7JR1beDtuY2prHwkwZ9SxrtfShErmbVYv31xbkByV/1VezkWMdHWGgGLkyszbbaOoDWB+p47pbmoUCXAnCVqBhrBWeG4AnrTSYGSYak0RUs0Fc+wv8I/kaZShmQybb1DtmPIqfTLCQ1UcSFXVXP75D+hm0KLE9q3VDWoLfqjpGln2jFWXSgor78F6IHtgD8ALqtUCUR1T8n1hvgPBt3kfY9fc+0HkcBQyByOEwNBLVrZSn+X4DNuDDFdrXu8wsHBNt6mtkKi2qngJAk1jevIdKwxxbulqx0hYzqMBDuLW3CiR/NPCHr2AD7jCpOpjk33+KNbd4SSVrTaks5tP5/IZjklcLaA8g0AFfMsttF4Mp5LtoCy/8TOhWD4/5Dk3UQK64runH0x3x5B9Ur4rLtuNhWjR1zD4+zl+bJGyWEng4nDExFLwcdEzSMshEa2EfOr+68LORMqMNK2Fcgi0ok6MQJbTgg8namakoJKpcWZvwk/VVsi6Q+g9wSZrf0CPT7H/noEXGpumngLDww8EAieMknUZAx8gqRRQUieCd1l9EExqOa4ojQuibq5SBnNfifoPKzdRsF56uMeFvFBUNZeqJm+he1cMd4wcwpk3l0a8MwOj3NR2MIAH1zdfE53GGAE4guzxsFN1B/vaYTJGr07CmS1hh8NBJAFXitj0z0VLleHtHEMCunMcJvlYKYI2DEfzbH5WCpIf96sNG5kBSIcCzaJjTcXYXPSDRrxyMeVUSftnLXt6I7Bi2vqY/ABk1AEiH7S+NkU/nVRmB7fjgtq524GmV2pobaKLmTdFIioRwTGJeg7iAnUrR0JgnBCHZ6WXZ1za/joHmig1CDHv91pSUvMclBkhFnSJMJ5UgwFaNXOtt1shynrqx2QZXbkvnkXKQCmD+2+qNWToG2IG0wVBB8uTZcJNTX2JRiZ4QmqKfxcGr76dht1C3EUla2Cma+VjaKZwGNhUhSxQoifYmx36Yf7cxIHb0YCJdvH+e9h824yV539cPT4s9Huux12XN/FDsg+tevayBtClcUQuSKfD5sI68Cx5vgnB4wRu1N/cqqpETC9ruo5J2R82rFoj71izwQkHRapo1LvoSQeIjzUBjKmL/9UPePVYNIOYIew2xzHH+VtbxXeB3Go5L7FlztGgbE/1amFlkHLTcgHhOlWBnh+6HJIom1+40fb+xTw6bz4YScexSnGGFTJNLt4+8nILL9smxCsvNfrC+qiDRgLPgtDTT3cPXMxj6Ycd3cl4q4UCFTb1YMkGw= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: bfc63293-8305-4a1c-552e-08dc8e68c097 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2024 00:59:33.9459 (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: aDSs/Ig8grjQxUn0DcaEZd6+yIv8jZTXpdO6ucSfq0xZpQlCWwCduRU/OuSmYFhTH6z8iQjWf1rFfZmB2c7S9IQQ1gXBIMjsG0/+KfQgjiSJc80pcn/WAYFpDB2uEKa1 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB5663 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240616_175942_477259_2D996DF1 X-CRM114-Status: GOOD ( 10.26 ) 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);