From patchwork Thu May 30 02:06: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: 800393 Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on2044.outbound.protection.outlook.com [40.107.114.44]) (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 BB7341B966; Thu, 30 May 2024 02:06:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.114.44 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717034791; cv=fail; b=nSi4Z4CdgeampP+nXayP88VG7f0RX5VRdUwVz7TH6vNtAofjI60MVy8jQFfn+PArZMZhLq0MVCQt/0ojs59eYvjGX/6v7I6rKSODq7+gup+K8fTlT/woq+eG0A3bssNPOkPep2xC5pX4ifiRBG8XbybYymfjsFLu1rwZKfmB4iI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717034791; c=relaxed/simple; bh=KT94KJLdSm/7M1CkgfrnI8TeEN3vyznFYiK2Vh6qhoI=; h=Message-ID:From:Subject:To:In-Reply-To:References:Content-Type: Date:MIME-Version; b=hEUEec4hKBrDIiDnFiyAuVT7hrpoF8k4xBPMzItIXam9+dsdx++eKNyUEbWWexXvdzQo1lHcO3nUo7bMTBmBWSzdVrF4mJrc//tABXItqARZemtLAQaZ7zSO9hJH5S+mjBngmabmRuk0rdKXUkAx4K/4HK+WyMngXjPnQehAMo4= 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=CUGiCj8/; arc=fail smtp.client-ip=40.107.114.44 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="CUGiCj8/" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=m1PvaM+Xgx26d19bBhbON1ZGS6RTQBL1c3mmQ8T9KI/kIDJbSlSzWIr5Y/9eiHSkAKg3L95dhzhEpZ+OPi3ZwOv/4zc6U+XfcHKkNH3aH4LyP/ZB4gf8vQHetB26/Xuc/f6YK37ieVAouV7iO9UqiReIH9pzVL5A2umLhKbGM1xFF+JIkZQ8DY534XGkY5gal8ysOrOMC0VWPUYVV0gtjmE7PliR45VNAu6pt6pb1jjCGXwdKBDUxJaiOOsvWj5H0DqjCb7hKOkFlAPqTQnjwBs78ErEeI69V+FN4Sf9zgArjsWldTD/Msv6jeVnOZ0sRBVnH1MIMOWL7eGiAaaCQA== 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=VPQk4l/ikdY5wW3o50ehGChjz/YR8qfcuyNjmr2EUENL9mu6HEy0z8xjUHFvMtQzAZIN9/QESUeUtAPEdIJ+UAUOw+/5kTfzQ/Y0ISX4qlR6Omb0Fo1iBLj2nYHwUwmJhKnCDRQjrEU8xYITfIColvzbj5JdIs0p48I20np5lwj6Cu9dMwmu3AN/p5KftCHA1lbUXlY2D/bXnLtGWEU0D5WsRmajulpecu+eHX2UxlQSnTaY7FWGW6F+BiCl9IUEnSBWCYZIQmF8A8x93ddTOJ5UvK2zPPTDnceLz2aqYQrhOCG7k3HahMHg0gcbJIkrv7ffYDpuawVZ0mwUGwxnIg== 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=CUGiCj8/UBjJ1qYXkVQxoX90z62U3GP6rxxDkZGlY42XU/yaeZ26vFloeEMOeLPi4GXDLZFNKavOdwl4+YuRVqltdOp8IP7fgBpQx3zI6wCSD5m0h4iBxmQ29sWnGnBvvStS3iglW/IIyMqf73caVsa0myW22+jVCkMxH+QxUdE= 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 TYWPR01MB10240.jpnprd01.prod.outlook.com (2603:1096:400:1e5::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.21; Thu, 30 May 2024 02:06: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.018; Thu, 30 May 2024 02:06:27 +0000 Message-ID: <87a5k8oxy5.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v3 8/9] video: fbdev: use for_each_endpoint_of_node() User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 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: <87le3soy08.wl-kuninori.morimoto.gx@renesas.com> References: <87le3soy08.wl-kuninori.morimoto.gx@renesas.com> Date: Thu, 30 May 2024 02:06:27 +0000 X-ClientProxiedBy: TY2PR02CA0072.apcprd02.prod.outlook.com (2603:1096:404:e2::36) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYWPR01MB10240:EE_ X-MS-Office365-Filtering-Correlation-Id: b0723cda-523b-48a6-5822-08dc804d1d66 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|52116005|366007|921011|38350700005; X-Microsoft-Antispam-Message-Info: uZI0Epw3mfC++b/HtDTNP5nnswlO3wyEbKDuVN/IBtpQfF5BaXCIu7dH17c7hJcR+FlqN45hrmUh6wmVW+LguO4sDQgkZXTXZLpRgifQQf/8Ez8KQlVM+8hvxevs6m/m0+CM2KWs2bsqm70RZgCRPJz2t6kR8dM5bTLi6+MBAymyGfodgOc53jm2wM3DYd3JJr/jnt+/VOCtXQiNhic8OCydhOEeZiPDZ720iJiQJ9hOdrGFVkR2oI5/vgkz4PFcMETJO0hiGtJjfZc63A9h1NrK1sS0Z/hvSk12aZ1Fnz6lNqtDad7MlwnL6yzs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-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)(52116005)(366007)(921011)(38350700005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: FabE0vtv0Bcw8KkC7Yi7qiRdbLYeL9k+uzNKT+1CTvfvHIl8d8AqHOjoWkC7I2fROGsnu3rC2kD0GfhToMAWvt8vMn099SCpPSr0g4tzVaS3yCjJl82SpVXruYo3XNbV0jlWqzrCJ+n5aEv3flWkiVMOCVNGE9CyhU2gJCgqjvNV74e9dFzb8DARhMC66sBVhH7zlRPkuxpIVqrtnbX39oxCHqOEXa1UOustDZtRz21nJ63bpk9lfrokk4OIv5eJx3uANC5sBgzPcSQAlLessRQ2K2TcSy+c+fpkjwl0/A9GT1qbOrxNvB7KhTXIaKLAx6q41ZDYd6NNjGjjzg1HKs0BawRXpxSXP0fX3K+5neP51DPY8kRglvMoTf5qOncb1pu4jfwRXj3IH8Aj9fIQJrBY192sjPeFkLdCnqPjQIm91ZnvVksBGxHJINXSHYQJ6HdAoJlW2kgbAmZ+K6jwJBrqnScQSqL9UAs9kX5CAvKncYuQbunAoYwhIZGyWPF0M7sQf48FL4dnVxnmdZuiZN4ijOnZM2nGYE3o7eVS5kDjzWtgIk9IFQVJ7bfQchqAhO023NsrMWM2JY4cdSwoRz0GH5N6TQ6Aul1hX5pAx00CYp3dbmHcTdhdWF/D1KxXvpMgDDa/fGn3mHc1I+9KvbzKgW9vLnANuatb1OX24FcUdxKMInkF+7+d9jWy4f7KNFlG0511WdlyJXblhV8RL+UZDydoIxNIKEo9hcTPBeHsYu+bHyrizHxIzt8i5iLB3I+uyt9BtsNwU+q4yTJPPZ3bajLOwrpLNO76vKL7YtqloklQejt2F5inUBHlXVhzuP9yJHj2YMVhDtqqzsMn+lykVm81/0Fr7v49Z4jLeV/+o7h7fvYHgVIJ1ClZydeRmFb71g1tfXHgY9INd6POC3A2wSdOf2DyVN8chFirIxIbVeDKUXWI2kvyonHjRizaUJRRXHlGKDVJJPRgihOS7C8agiT4s2I8aXdrn5+nkkarQQtT6+qTY5wZeeZOYQorss9qxbiGL9T28DMrN4htTTFjsPL1EVoj0UKbe5juhB1ej6uO2xv6Gtlk7inl+MUOidP/RQK49eTESyOq6WC3Fdxys0tjcjPtaQ7nNkTM+7K3W9vlwDytmf06Sk1weWV9X7WOon/hApyDUmg5ibAiF94kOt5sYIBtAPe9rWCNsgeL9yf0NXrB9PR88oCszyMJimuTXEyaCDSBYi1R+XbUJU16DYi0lWOhOpSzPPP9d+feE63zD9r/U/xjF1+vs3rkL9qFDiNXwq8SQymS3xcfIQPtySyACU1D6GrKCz0UbEXxKUZPLYlsER8HI9jGhgZH3hapDIEXGeV1A2ckHqegfw3Fpe16Wvi+hiJIig4ohscALuoGTSZUPc0R+CN7EvIsjp5LtRoTQoIS//i7bwxkhX+CqZ+ftffTVwNLEjDwCrbl9DD+HHWrrI3EBT+EY4BdRwV5VAF5RsKxZxB+MrB5wwT2Vhr9EKkh7D0VMp172alG+vxpuoCqTTetBQF9aokD7hVrqGXDiAqDSH+UXyJ6l2pERrrruGVv9pcHLHudY2MkzMxWkcJtDwcVl3tUcgn8yKP/FhTLwf1aE/guAXGMu/qMTGQzAuNYcIOcNH/g5DQ= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: b0723cda-523b-48a6-5822-08dc804d1d66 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 May 2024 02:06:27.4796 (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: 4Y2/KYOigko6atj3R4GlKBqkZQub2ftVL4zFK032ybk5Tt32Q/HDZ9TEmP0erouyFVasOxAl1bjvwOotmwiMIpuIVu1tsk3mmOCsG+/75Vq2NUGh+UbSvSWOC8VUPE+O X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB10240 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);