From patchwork Mon Jun 17 00:58: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: 13699787 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 7EBEEC27C77 for ; Mon, 17 Jun 2024 00:59:01 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C30A710E0DC; Mon, 17 Jun 2024 00:59:00 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=renesas.com header.i=@renesas.com header.b="TfZoGzqn"; dkim-atps=neutral Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2080.outbound.protection.outlook.com [40.107.113.80]) by gabe.freedesktop.org (Postfix) with ESMTPS id 65FFA10E0CD for ; Mon, 17 Jun 2024 00:58:59 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=j7SOa4H2TMtvYcU6NY/i8vSNlhHdvF7KHFT6DsKwGITew+kf7mnsF+v/USrynLhcNf8l1DNuA9ScCPj1h8JIn1hSpEnoa/BSCajsA6x35Is7t/IetA9DRbdiRiAreogiL94KET8EUjluXBTk160Lt+PBTsLApwUj526k3CZf0BQ7JsYcTbqm+ylaDxlBcPUNYWDz6uErEh7cSybKJIExZ0aJvKkVLlxVF4rcQ9FObsNgOyUkaUwIyQ2vv00HUCGsF0pzWqC/UboGLjWJgt4EFZGO3+Wv/dtFfdIbdNic5q/fNMoMJMl8eh1I5+0U31zxCEgizqlBlxwF4tNk9c5uMw== 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=FfV4CCvBozANc6QgbSeYcLFCyvScLJaDUbtVTvHy4zpht8kIvvC/pAoUCRXByTramtI30APZSF10wEVnsj634pcfnVUXwNmwDvBnhSZNNElNPY57/uzocTqUHwNuSYZK8FdGhbn/hbFmhz16A5sXLNsXsbK75Kf3QR1g08M6v6by8TzlGWGPvn355ik6WDAiwVXDEwOnpMQLiS81weooRo8QibIyHxBeplEKrbyMDvApBBpKoLQGix7qHNmIMBYuIvR6r2o0wgqEH7Oo7Nf44mGYiagqI/VKEhTh3y6+odby06SRVAVuoC5c4icd9KSlEUa7MljT8PK5696JQUylTg== 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=TfZoGzqnf+hOfiDE65p9ySrzzFergUbD1tbXuN2NOiBf4/WEDhsKNilBHBFH0cr6wYmiEOIzT6lAGTu2TkxUAX/wQh8uhx9SwobS433TRHcdX11ojJzjE/FK1tDxTX2y1NysdjU06VNuNO9uMLGIdoXOK5xFNOujc4+xu4mdTKg= 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 TYWPR01MB8560.jpnprd01.prod.outlook.com (2603:1096:400:13f::12) 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:58:56 +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:58:56 +0000 Message-ID: <87sexcs7u8.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v4 resend 2/9] gpu: drm: 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:58:55 +0000 X-ClientProxiedBy: TYAPR01CA0026.jpnprd01.prod.outlook.com (2603:1096:404:28::14) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYWPR01MB8560:EE_ X-MS-Office365-Filtering-Correlation-Id: 15a8a0b7-148e-4db0-cc5c-08dc8e68aa35 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|52116011|7416011|376011|1800799021|38350700011|921017; X-Microsoft-Antispam-Message-Info: rlBaNAuHjDmc0S/6uZE8pB76olTB0wQehDhVQUYEGgysFrr5m9jhvZuXBVQpdvHKoyotOdtkdM/AP19iy7ENtHlAuWhrlSUwshDn3P0lhRLGvv5DWwMOS1eoNr/0oWcNUSN9yC2E1+v2BeITM8ATM2vikNIoY8DxHm8ITuzjeU87pLsPf7cpv2r1iIn+VyCjSdT4fWIElzX+cCQSmkXKGrxi4JNs/aBsMe2UXwoQ8vLoBKqWA+jmaQZbmgVwTFZfFud5h8U2qDR4vXIqwg8pavVf9CLbsu+0pOqlrIlxqo1jaiFM4bXfZjbkTer9p5n66NxgDBTUNvzBjnufqgmKxyW8A/ssX23BJvMeC/pXAJJOLzNUW5xTjQ6L4YCMQ1OOSnHk5Ht/Rq+zFmaQuyan3eAKsw1T6+VTONsRvVZ2ExqSG1Fz7lfVO8cvGLEYoYyN/f7wY8vITeTUq1iT8u+67aHkiBp9Wz8mhFZVsXzmc01VO4EAA/iPgGGk0ks2ZHHESbkYi0CX92Az4VIIbZj9SEdBZeMN6/KAshyGRyTVGjWtGnr7fmAXEMxL/R3pA7j5AiQeTAw18Qp5d/xap20uiShF8H14S0ZFDKFUQJ2oBc4YofBzyhRB/H2YvyNzvXE3+qXzG8fS/Jw/DWwCOHpJd2tURKcIg/gMT8U2G/uN7uhISrE8db+4RtNtRBr2d/YfjBYyihlJmKFUaONNXlrc5gigW/5iYxyQ2t60EEqlIRt+wrJrh6SzBycNOe4Xz4je3WgXjsN8AQjmHmx1sQYBb6AI0Vq1KgpUduvJtAHyeJwxrHoiLbN/3cTBenVsWt2okdm0zxdvQosXPtPscJxbTKs2CspABoMW/5MFOXNfxccWwIfHPeM2xFGFSbl0Y+T/mhBJKjGrb8zwhSHz9LoBPX5uY/LBzuZIKVuXxN1PkZCeZVpamKK9lfGvoVVvQC6i1VGwiEpjeMci7jJA4B25RiR+9lduIaFhiUGmBdAZBgxEGdVn1XNEbmoLmdg1M/fGsdpLDAXsKpZhN9l2PFZ6Bz1lT1T8B6chaB9qewLiqcNs7fMlfPFjUPPZDGfrgu7Axkhp3FED6jHxeeBzNhbYZKt+Czf7uOwT2wETQw056OAyu0QZPtHwY6FkdNi6+NGZoMqOdX5W0VxKRqgevHs/EzsapLrV2TP6c6NuAuVH/QLITb9kFa5K4jDsjq2MRM/4zgKYcP3YoCXRM1QLODPihpXd/oSVPDlXEav8o/6DOSbll3dgKK0VwVZsjbNw+G9D3NOOtg1ZKkyQuXJTZlUGlYfrzmtBOYmMAt3v8CY4Lf+nKj4RyWDO1ig3U5WL4l4JhGv6xpFTfqXgHT2vdz1G1pbh9cv2y7AJpa4M5qvv8JBIRMNStaE+jrpSSnfKxiIe 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)(52116011)(7416011)(376011)(1800799021)(38350700011)(921017); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Dlx2UWD/BoKjSODiUcQ8sPmb9hTs4UVm3BJwh8/qxvOU7MbUwSXs7EOGnlqdIxguSZvaADd7a89EBkQvxFLnbgfvI+8UN49WBwgOorgeciclnNZ/uxYTV5SXhsy1YZv6EPQK13GHxCjDtuAp7A+m9eMrt4tPB44U74U3W1+6vsbgtn/e00Tqaitr+BQY91hGPPhDG32kvuMnVy9M0FUBMapYxY/fSGDhQK66iIq8IMY+y/XbQqRBRccEh7SS35IfTyW83zAiQ2Motr0zIkyiSFnD7SWsgGLcIznlhzYBXTKXbftOO9bAohGcvEPvN8Uf9ixEyQOEG0XGdz0oqW9EVMN7hjI+TQtGaZ/2cuRQhAE3ePSZJ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3MqI1WP7i+dH0bv4XpxR2Mp3nSDdiv1+Qr357Gfuk1MFyuaoHoMpmkXuxaJ4S0X4Fqy3jn4BayNm1TsORWV6Y4sKmQrehtdpdHRUDHsD2AdPPkmzRQci5D/1FmL/R8ItnDR/qX4e3iyz7WHk4tDyT3bFm+0uMYuQdK8PbET34IvqoLytM8/AvI+OxHlIaK7BbOrSEfs= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 15a8a0b7-148e-4db0-cc5c-08dc8e68aa35 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:58:56.4611 (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: DsoME9YoQXlrGFVxQnl7gwJ6P1rZCOg00rowTkU1BMOG0Zlsq4mJp5XLbYOB5hP1cRn7nDGPPk/qQ221G1OULIjilPgBCqAwhvrJPpU4+RiAQYp056Gz71n5fwp4Sy3f X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB8560 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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)