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: 805433 Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2073.outbound.protection.outlook.com [40.107.113.73]) (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 0796DBA47; Mon, 17 Jun 2024 00:58:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.113.73 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718585940; cv=fail; b=DGi84xgo8os20nRwUrLP6PLgeXhitDD2jAvIk96qFg+kqg3Bl4Q705AOP3pe/gH93wT1zZiG3NlVt1HE/q9YTaJT+4mIP16VClU4aQiiplmWRN6NjKGxCnKXZR2zscoM16/nP8dpLtyfg8zt7LC69fxvuGZTPkPKxg7u+YoD02A= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718585940; c=relaxed/simple; bh=APMP0vYrATNc/AwnIWuAiFEij8eWJy8DkbOGc5xhMSc=; h=Message-ID:From:Subject:To:In-Reply-To:References:Content-Type: Date:MIME-Version; b=Lxcby8nq2Pi+K9zyzobBzaLsvkCeAtvxUi5owEpyNGH3PtKZxvdWCEuLO5M+KIOHOhOE8v0Vfi8YLhQrc/wFV1KM2GOUTzhPwr9jvLqWX1COYP1W395KT/msLjBl3ZhSy0HMFhZN+LeavdGPs2T0MlAGiTAfUWJqcj0X1HR6Cwo= 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=TfZoGzqn; arc=fail smtp.client-ip=40.107.113.73 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="TfZoGzqn" 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) 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_|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+0pOqlrIlxqo1jaiFM4bXfZjbkTer9p5n66NxgDBTUNvzBjnufqgmKxyW8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pSSnfKxiIe 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/2cuRQhAE3ePSZJ3HQyPgF0MhTBFWRB/TIv+EKe4zTDSB5hcTPyVVqtkmjnwxc2Z6Pl/ELaTNdgWku/aNu6l68PKwPWWPmJpLW967bgwCFkrZnwpg0m4r5M/dln6Wnh/9AvwfYG2gHibWdwyFSUoWCJz8Rs35n+0sulan3XUTAN5mE5+b2obr9FfywdIDKuwU7dRucldk0fDvfGYPFwZ3ixPlmho4QnpQitm6Kvy05Vt7LFtV5C2ojKgM6KVT/BICn0cg0C/bgfpETLpchrz0hQhpqaaC264tfM5BP9oHMWi7iEaMOQRGo74V13jCauTIBIcXJuGLSrWrRDhYRSMlBWeHdZc3PsaW8xoohmTr6mhVsx8cOc6Si5iwL+3rpp+DY3hKoVTVBsfds4DOvfiQ20kDqmIIaqYjGJK0O7UXzp8tzHlLmPjBmhfyHRu79YhWutu/QZw6wIzgD4lEAnuHfo7H9hCpuHogbaqoZKaTFdck0Lrf5+DhqOZdh5bidb5MSSrc8vmfxYJsk8ohzOhqutMH1zhUWcMct9H3wfy4GqhGnw0pw6py2QAif4JA7d81i2cM2KpVR037iHlRrfAoRWtGFGzBhnvrjC8uIofLnlifAHlwEGVHVkAz9yNjGB0cWtrE1nzeIcdTBnVcqO+vjp+bZNWW5C67sKbtEO5zm080pxhaeDndXnyFMuRTKfChEyiqOj7/PB7gLV6OEvXVAMp9rAs6rvKdz4ZkbOpkvcaQuGvs7BKPf2vTCx1lSfCSufORFQ1akVZ1A07OLcisE3955QZvI6Xh0nRMc7HF5WMz+hfFT56+36STbRPJD3DoVOHeNN5VhwUkiJ61Pc/Nfu92iznWgsQ5cwJ1giUCYGdYrHK2Olp5qn085wmODuXqR2bFJA2oRQk4SwesqHc1w31UvkMd6VLgQ5d7UXlkzaeMUcbqvSzUmAdJ+g9LJ6zdFwlm9MkuXzhOVyRAAYFzENgiluKI9xChMya05m1Yo8Lsh/TiNGXhq2p3YZgCtl5O0VDJa7k8N963d3Tu4cH/QYYQ3+lvTZSNzYGjfENISZ/quCx+rcupXIFso4k3KsNqd3MqI1WP7i+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 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 17 00:59:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 805011 Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2052.outbound.protection.outlook.com [40.107.113.52]) (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 188094C6F; Mon, 17 Jun 2024 00:59:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.113.52 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718585948; cv=fail; b=hU0ohcZJ9oT+1IL2GT4tGK9uo1+1jWoLqZQTwde1UAIq4RBlvzhnRttdF0Xz5uuhKOr1RcxNvOsyzaX4qIKCrbZo/l5RASaw+ieaplFvn/ljhmphd5oQwyk6ACPTFqC3nlIkQMSlrDcWMsFwPgJ7oMyTgOWHNiAXHfX20CZtCSU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718585948; c=relaxed/simple; bh=jMWV2tOCFT+tH5YSEcEM1qE+Db6K54NPiGd0CJ3jOh8=; h=Message-ID:From:Subject:To:In-Reply-To:References:Content-Type: Date:MIME-Version; b=dSaq+aH05WjA9Bh3O6O9wEznKsnrUNI5Wpidjrl9dFwtbuujSV3ZySuZrblP/qaS04ftyy5s4F5o0PqdS5+p2I7Dgykh7Ej3Vj4j0VQEDz48Q/qPtXr57jGfKKgC2U0+XSUnk4gWMrxWTo9fwbHvvYDnez/xFRIEBrjMrH0qa4I= 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=R8NAThNn; arc=fail smtp.client-ip=40.107.113.52 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="R8NAThNn" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IfxWBW+476M+uE3O3efU5T9PYgS0sd3cxhM1KXD87CJMTFLeK2rcxSMOTIqZpy5NI0vbMKC7yeoHQqOt5N28ji5pnKUU6seoKAPrDDIkBZWRFzMaH+wzwh9+116nD5MMdreIzHwOP0gmB8C1iEg8ETixYY2HFW2zC1J+ultq6rEfUz4/C1BVdG1MAZrOsymTHW4r0Gj5kRKYUKk3YRGcj0I1UoONHvwPCau5tkQrO97Wjsn/G1TQcMbce7RrDNBfy/i7hQS96hww5IdpAgsaLb9zsh0OGgiopEt5gErEil7XN8C6C+6XkBP6om8rG9Pozfl/MWRhLdfhoiA0ChxDCQ== 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=Chp5H2oOwHM7etQkKQX/x+ddY28KCkkoT8vbVwOOFYwI55p2snhZCVUyoU1w49Gd0tPyocC5piUVfGYl4vhs8d5IYt7i8NGqgvgKF4A3Xp3KUy3jO+KSPYNjfAvAB08c8mLPKTu9Akfys8fUASbWg5aqOSNjEEymHUIFfckwiAwnv/drkS2Qgofso2RKPhabHWjSLaRZVH2JNM6iWSHdlAGKqi4hB2ZsGqFOLefqf3fFQoKCVZKLEpBfeyxx3KRPYudP9BGPCMicDX3UZqgrIioWBlEOaTEtV4u8T7+vXjZ5yJydFoW6jwpYIIHcF73PMfNQOaaDVP70Ptnlb2jO9A== 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=R8NAThNnItzALlE7V4pMkbkF5WVZY3Zw4wSelVNC1pSM+/ZeHG7KFqd4SsWKhZpzI36TgP2ad1a81521fHh95Pk+gkYuVn4TY13ZioavuzmaCbQPExDvJBkPSeM3QcQlXXANBCSSUI0yrbxfczcvLXW0iRMZG+b9mwgNgEYyzBc= 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:59:03 +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:03 +0000 Message-ID: <87r0cws7u2.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v4 resend 3/9] hwtracing: 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:02 +0000 X-ClientProxiedBy: TY2PR02CA0057.apcprd02.prod.outlook.com (2603:1096:404:e2::21) 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_|TYWPR01MB8560:EE_ X-MS-Office365-Filtering-Correlation-Id: 2c37d009-aee9-4f98-4923-08dc8e68adf9 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: v6NQ1HJZCrKnpOA5gYAiCxaCUCDgcyqwF8yKhINsby6TIkTtc8SArUHS6FzC6jgR8eCe4QgWgC6yUFG3/hg1pet3w6BXK8D5tNegRiuD7zlzSOdNRzFvcj2zq1UI6yXDmYhQBEcj6p8mZiXLrmx/HcZfLPXQziQ8gJn7tOfQipBE1DPuyfMz8WIBQTUI+cBmhXm7zdnuXcmxcOo7xbxbbD6YiVFdbHX3cz1g1eCrnAifAizCyjp8ytI7gA0B9hTCoEN4uJkWYyGJ2ANA33zlKQNdJ6iYfr3PwpCa/ZnbBZ3PtKSoGugqye9330Eus4B8zBBChlSmne/pCOS0W0KSlvyPdlOmMPTeaIMGxzQ7+Nsd9JZFJt6RKjmr8uBXHFe4/+ptJjoGSY/pj5uMtou1jTv/vbuOzUY2JEyyIYb/xhNq0K8MaDwJHgPtfFNlNXEyEKsuAWuKzS0Nb1y2ugAgnql943dLv691ZF1/HAAOx4JZmC+QJt8RJW43qt4ewNUxNPRf0wyBBevf+eFVbTebb6pcWkmUJk2LVm1EU6uMhhz371+Q+hi7YUHUax9WXDzHz5bI/QSP5oFiD+3lGeLpSDw8GriqZLmPrzXsQolPVg7Rzh5ujoYXElZAatn+h3yVoPSmme2l+uA/g/iGVHg8fyNm9n/o1UH/8CilCak+3UJPj999iIQWG/VbuNDpkjJqtIhAsL/pQeiQXMHlqMjXv64iS0J1m5E3xKnYtT28HJMeoWaP5MLUJKVrc9cTXlUNiRm4PQEvSht7uTmQvcJPLI/y8TuMCVNSoj7zXf1KNyTjJfoEp9WiWtiBPKWMUXACHJvynrnmBPg15Zq7O4P237TmdRcM8kl9+CqUDFMH8lkiRJY5XMPP8zbACo9Wr0CuLlu7ozhIOtEZeHhSV6lrXBhBALzuz7J3yY1vQ+YkMFIupMVumn4Ye/RsVNVDqGF2/+ZQQeVy5xs05x27VLTrm2mJ4kO9lBtBPevpOWiuLJ1hwNxk0vz/rOq5vPY9AKljDw8zg7cYKZh30ZUF1daukPKVHJBY/siJlfn7gIXbRvoEw8643kUZvNVWLzqXPstdMz9slxhUJEmIAisEzYwlK6bA0exATMeiQZlQxhOSVmC7S9Mbpf3RxVqZvnZsQIXB6laAxGoNRn4voPhb8Fcn/RkBmW9nyyB58MhSmBGWolZ9eXN4WfcH1gYxxq+5vtpZ01q+uWT57oVb51CPvXpTd2oFjfreoQpzupxB330zGByThROkYc1bc0mO028nQeyp0RQbOoI642FlaKF4QeZtT3fWA8A0XOdI+BNNLVpvqyGkaHkfiowiJ5AxNccN3nno/aVWsBKtpP5oX05uwTB8Kh/6qIsMfMGMaq99o7zfkboDKGOKHzVtWWKK/v47AkQ6 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: w7pLIttDjzI7S7KlecPQ7VRPbqrKROM2iDTlNnCfDALZFV6DNVKpAJlyEGZm6opwk/YW/V+FDb671t/Jk/DdOyXOCDqJQYBkTSPaITZByi4meFMZxeIMBc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E7WKpkLGFSf5sgLl2v1czJJ0VdCjHi0CpRyc+PEkML4aVdKBy1Fs+V7LPyB9B6qHulZ2TfDVYdZvyI2ausC/k0phuf1nvfeY/lErJquldCtV4n1tfL8+SsEiD6Tis8wsMKg8cOIcOf0VLZevbhGqwDDJIt2UPFRTjvmw4MYlSXEiJPETn++v6KXBjDHy0hHHdfqVlp/BBQ9tXKDR8KXtW7Rey+hiLx7LHlVx4p/mRalRn+yeeaE/kHmcE6Z0ubriD8VfRjl+HImYGLFmoulaJrC/lo7Yz3gyB0Ixi6JEqTKZaBc7tp42gp4NPrgqEKue09g179WYQ6BAqUrIE9X5rs38pSjeYofbiXrhbifCiQpK6vO9fqTPuEzZv/M/H7OTsCqn03f9pOmkZzsL4nyjtNa/HJqvrB+UL+bIog8K1KvpEn8SQr4weQ= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2c37d009-aee9-4f98-4923-08dc8e68adf9 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:02.7628 (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: 2CeeV0aW6GH2xh06C3w+988UQVjRDgEfax6o8BKQIq8++twbDoJNcCjsZImUMB+Su79w+GsigMErXUed+2ZUfGD2EoT7KNXPGDZt5hGJkFOTmaUPhUsDsS+/pIwRzXKo X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB8560 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 17 00:59:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 805432 Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2076.outbound.protection.outlook.com [40.107.113.76]) (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 9230B4C6F; Mon, 17 Jun 2024 00:59:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.113.76 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718585953; cv=fail; b=UvZiApjd6IJ6ffookb++MCvD6EBnhB4c2EODWV0WtgdHgccrRD4jOPOtk3aBfCbzfMQs9KR9csoQMpeNCQjztpLRP6cm5i4do9L89Pfw16BOyLqoojXIBp5k6kF6UKjgHTdUaoIGa7EuSyjViISdcinBZYms1CApYK9ntZldYJM= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718585953; c=relaxed/simple; bh=wKjEPyL1kLmEa1RWUv0Xk7JzIG9DlELiQlr9OfVxw3c=; h=Message-ID:From:Subject:To:In-Reply-To:References:Content-Type: Date:MIME-Version; b=HCwgA+d6ujU+aUjOANRdYZQDMCSQFAsnwnpG1l8r+e8taK7wU1t/CgPfcZQkFSDI4lQJ5Fvj3m09XA1LOR56is/1pMyFBGMe2ihH08InIlC8uKCaTMrAIMr5j3M327LzdGkU8w6btyKQRHl+kORB5l86wcNZQEPbWox5pMnG+3g= 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=M7pH3Bk+; arc=fail smtp.client-ip=40.107.113.76 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="M7pH3Bk+" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i99YgWDI7zf8jf+CcmEKLockPO/o9sMD2+eXddDNh0fWKVbStDvgNyC3GB+x9fr/1YcTjcuA0uABe9oAQdW5XhCI5iAo74lCtAS5Za1alkIywoVM1dhBlnI97mQ4BxC+lKGU0GmfAqZbTV8NSMLZsZNr6HXySXl6tMfqQgEPK76vuTReJoWej+QCrFG6zNv5w3E9xbXif//PftK3UYi9dim7FzUUGbPdTHGtQFeXZF0yd+G94aoN7l53TG0pwV+8ORJ/oJGm8i5VYkzNsVSwrHMuGHiQ5A0514fkWziIlMSaBZc2amjLkfiEt+3LtGoRVrLJj9kGpM/lBcQB+j8o3Q== 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=S3Ce6HNfp9NFn8ghI5vAmg9M9XxZW/8ed87ijgB/0zUgPOAR/MNMipYkcwNCXUa7WhbhDNmiGcqZokEmJHNrFs8g8s2Jqyml90coBQS2mVrExdAwB9qL+ZHXM4E02rlEqJdhB02vZGpKWH0jeVxpl/v+YbWiPMSpS/T5cSwKWMy4ZBP9llHB6i0JEsa88iH+MJsJLyzQ6hQ3YBkSUTwADk2xFJjQD8QHMw3AyZmvSf8fqu8Jks4ljvVeZ+V3zaIWtyGF31n40drqAjG4kUU6yPRAKxWmKj7gSbkys9Z65zYbelytRZvMiV8cHwbXJDmu1lOptdw4/A/kYHxfia+LUA== 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=M7pH3Bk+EaFhy5dpe74UF7zX3TrJ/5BBMtEyGzJyvaIokR/C8rosdyzcsrR0pyp4sFRlLHChzTWYbF1b2eiA2oLbHG6hTcgWGV/ZK8WETHmVR4lxNkVDHlLbNamKf7JHgiNayy8f7VpoK/zzbJCd8t+ShGkPQkCZfOZfEHe5Ryg= 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:59:09 +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:09 +0000 Message-ID: <87plsgs7tv.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v4 resend 4/9] media: platform: microchip: 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:08 +0000 X-ClientProxiedBy: TYAPR01CA0123.jpnprd01.prod.outlook.com (2603:1096:404:2d::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_|TYWPR01MB8560:EE_ X-MS-Office365-Filtering-Correlation-Id: bed60a14-dba4-424b-ccb0-08dc8e68b1a3 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: JIY/taBUNQe8u5+H6K0260v6FscnJ9Ysf13UjzN8yjwOr9ebacTkE1OLp4DeZ69EK7SOw4/931zjnn1cbBqcKycXFJl8fEELSaGa2V/9S8+4iJ+bdxWi7MXJPeizy2cCigBqsVhii3nPqtMDcBpr0+MXe86AtrMiM73gX0N3VYkvhRRqccEFe3IgS8za90rcdFJm+p2VO3qSbhqrg2cRa8GM8IYKfCP8CedIxxGBNNO8VmTl3SLsHWUQPgtNZBZEkbphiiSd6teXqYf9Q/oD8jmz/HQUfzfQy4jYlTEHaLgKvTeBiQDxzoEqTsRmuICMz/e+FL40hTszmzGyaa59NJI7dP321Rqy6YKnTGWQZlNOJVt9oQk1BKKb8hNz6DGet47GsS7wAZ/RlF8WPp/Nvgdat5YOlB+x8/Px3LNbAMnnAvZkaCvdZd5JaFtMet4C0YUTmHXJBKkprHHStmnVzPBuPePDe54L0tF0XwL//rBOz/3okqUuBXEbN2UyJcfhEolL8afn94w5fNUHwGr5GIbb1pcXzx06ZE65t5dJgqB9/KPJdDZ72hgwuR82fIjcNfkh99arD9FqIaphXyxDUP+eCigC1/obkLR7bEnjtSPq7robYvUiwSEMiDwG1a8PvWHSPFPdplLFM0Ru0amZ9IRSB+6BiYHk/KQasyQuYxL3mNFIKEpXsj1Qwq1a2hjfgbDdf3yVhMA3d59S/O6+pMGX3p9AQA+/lOHN1MWw47nZwwmUNb/8hawZWdKVxJijp3/+2fuEF7Za16uHOktSTY4+uz3WfhZJvUbweiZqTvOFu/SutvxeiVcmAaH4P29JzPTYlzd5v7b68TUh4mQEd+fX2NjLDmUNh3EEGT25IARqj16/a2H22PxdTPJfYnnkx/EhpA5PORNVXlrHmXj9IjBdK+0FHzxUWVvlrVn1dgaYYM/XDCT2h1cng527/FgMOID6BeK0nylaGx0wY3NMnbm/lRXB3UNrnJSAwyIb8i9DmywuDWtbqyf4/6wPs1334RbkJ1oiGUOUic8r9iRHg8D/smm6GgTFe1UJfHBdGlHfEIFVffaftlwHLbwYpwWdqJt/m4WnkS779LWu2tGJ//V8EJhe5oNlItmnOEgcg1mZrXQd4ANivUcz2tu8E857AUg4dT/YA4GPoPAjl7oygOe7lmGcOtGphdtGre7S/U8hbI70fH/VqjS1kU1sRp1KYrm29HG/sFWRo2eDpsjHpsCvf/IvVJKUBIurmL8L3itd8AeTgd6U39817zWd7gHnE88ZifUnHJbcVe7G3XWOFXTk7je5UzwtsfBX9XRK3FHvhpWrE4QjB2E7qrTTi3/+woA2bwEMUttgJiliP5DiBEftSqjwk4l9FlK8nIOOe0FoQTKBgQ85Sd/CDwBuuqo9 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: vjYk3bcPjoD+ILb17MYtaYSZgJAvb2r9K3f9Edn+8xgR9ilS+OrJQHev69ZP5Jl43w2gmjxQOlpCP0o4aesjrUsVhwCrEoTOUB/9VgL2fLhB5FBuccuED1BqgnXrV8y4Kpaqp2NMgJ28zPKBk7pEpJEBjRxyx1FbM1kQy6Ltj05z/1HQCIZT6VOdtTl5HgHdAy3jJDNi78PmjZyYmFKx+YhtUdimN4JYBt+Ekcuk5AIaP8Z8TD6vFY2BxVriTADQW/kccaJJrc93kZhbVFgqrm5E0UOFWO2Z/1AqubPlTXCjwpni7nKEARZ5c6n1jhXkU6KEuY7welCx2j1QvpCiqb3qFCq8Zf7oneZYbaN/g8fRsLS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aF4AjjvehzNV7gJm3rWZ1rVCzbmaJ7lFirRpgGjxO2PVlNahn/iXYeSLNyCh9YuPh0kWdRI3Wak4jyo+9WQgth8g1jbjmw+cToyps6/6vX/xpkTrODYFAeWh7QYoZg0q04MDFdqwkTAf+G9hq+HWUC9MPCMngQxj9kR6fvy8u+10wsUgA= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: bed60a14-dba4-424b-ccb0-08dc8e68b1a3 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:08.9196 (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: sNb52TTNl8HocuCe6IYBsZP2QUggM1m4K9c5a5k6Kc/nQEiexa8yG0qHvpmWUyL+MEZuKtq6/H9tQ+AIEUq4lO47X+xe/nTGAo6dxCZUH5X7pimszGlwccEeOppJONJ2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB8560 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 17 00:59:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 805010 Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2075.outbound.protection.outlook.com [40.107.113.75]) (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 5DDDB1C2AD; Mon, 17 Jun 2024 00:59:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.113.75 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718585959; cv=fail; b=M8YxqK62mujFKvsoSMn7SGBMBQwlE/yXabfFtNGvJKp0JQBDoWjSYAETL8YGm8zXt8nCqkU3NUv7V6WVFNjLRiheUpHZlq1w26FDC13xmuDcFgrq+k8JQ99a3t1nR8LSbFGlZNfH6+/NbORUilrWLGwn/cI3HWR6eqJ0LeQaUpw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718585959; c=relaxed/simple; bh=8ZuGsgrdGcfp+QgOSFkBt0AMtXm/THslfJQyRrMCYYg=; h=Message-ID:From:Subject:To:In-Reply-To:References:Content-Type: Date:MIME-Version; b=t+6IFXlSMg+2hjfFHs/G1w2K1R0OBcyTyuxcx7vavzEocXuhMZiiYh11plhz9kxnGYbLi+bJ5ZFF8kI8dtT4BGfU3JT8dApo5HNklQMfCvVFCpPdawQ5qaqVhWPvQD6K8P3UTQmKF9F7582/AvBqJKgBFx43/iUhCj0uas7uKIo= 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=XbJzMLDH; arc=fail smtp.client-ip=40.107.113.75 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="XbJzMLDH" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZJcuDX0wh2Bz0jbgdiQY93O5lnMCBWF8XSm/oTIXJibx63kQ/Ho2Hsi3aaE5JyxpgQd/OjkxzqCnx1wKgku14KOYJCEpYYwaNHScSnl3dVqACog4jJJtVWQZCewOPFxitGKeQMSw1oVeTqbknfWmoy/XeXw+n16kt495w8kj2Lc4H1hSpj3x3AbK86KB4NlH+hclGL5kwMcJDxaOhdZtHQuiH3R4dmHbJx4a3IMnZfvg5qiPAbqAh5dOLDtfjlnP7tpkP8LiXvuLZ9rpZsCcJJhV6tZ8lCMzglSYwMG5DZZmAQ7g3KlBdwhXVqMfLTsStXdKd5N+xG1Jelc1pMxQ7g== 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=d8jaddDuFOHl/UjpYWMdK5R+yPVNo37d6zdKH92pgZAMn/FwwvAts1LwwcfaOqlymIcZ2vfKvWHssHvBEmCn8cE5XwX55aCfjYV82mu7YVUWQUSwONYOdub+GLSrUQFB11fVif21mKCtmoNp49MTttGyMc5JspLoQDbtEDnXgLJDm23BWq99h5oKsBrYvQE+5P0yYj6SHGlWc6jaCsxP32ZqfefzEXfDNsCBmTYdQsoW/cfwAeFN76qC3QFA21o0Ws7zfDblMOXqcRi6htxgqFrI9B0KAhKN+XPqvgTRLYsQ2WevHij3M1Sx+26C3Ju1afbRSVYhq3aaH3QoXjl/iw== 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=XbJzMLDHTNLiwQ4FBodmjV1SmwaWfWdQMlAWtIR5sp8EZls0O58/FkK9rtngrVfCOJ05oiOBpqLGXxAob86d+HsHeo8jcT0+qtHRtJV/gHNIs6lbooHsFLQYtbQDc9LM5JFkihl9uKUFySG5BvQXpLviYjyqeMBpDp8BWlyltN4= 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:59: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.7677.030; Mon, 17 Jun 2024 00:59:15 +0000 Message-ID: <87o780s7tp.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v4 resend 5/9] media: platform: ti: 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:14 +0000 X-ClientProxiedBy: TYCP286CA0073.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:31a::18) 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_|TYWPR01MB8560:EE_ X-MS-Office365-Filtering-Correlation-Id: a438b9b6-1fda-4264-0c8a-08dc8e68b559 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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zL0iDuTLOS+yq0dIhs9tOD0AKzoia+B7V+dQ8oE8ikb98O2e9G+PMVZ0VPJGFQtjjgTiWwyrT6bJubGrfl8eSUfAUlvhs9koA8i0P1SBLPlN+F5zFe0TIbE/WuXB8MRMk3nMJP6vSzLOytKS2aVA5pNbEgA5mh9aqNnfEciT8qY21OCgmtraQX+zV7T1QGUAkRv0jm73la4H2m615nYivuxLjpnerWEIwbqzW9Zm8YDNTKKKOkGgfFHfI5QyrTr+YhfBrLltiSPMmRcFClyOJLCFNrEEbIaA4Ke4L/rOxLjV6Uxe9HMsK3nxmp2bu1kcmYAT6lp7mzZObeLIwUd87ANpI1v/a 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: 97gEvx99sWKh7v98i3mozVlAfX8uHeGOTR8mcaZhst80lniAdG7MkEauEnRB+1C5t4wdM6u5MqMv38JVvG9eQfkzeWSGVWRQ1AaX1viFOgZveqe5Hr8b/msviA8WeuKzZAvoyqQUVj57735MbuHAboqP6tClHhystZWWvIAjDUsrdBiC/8p3gnx+JmbDEoisaQ/poNlRd+lSqAWSjupQFhvUhD0Qd3h8WdM6eZGDZ6ZH9+wjFNegC7QdpTFZ9jNYqj5Dkjz1d5hlpJe+TG/cT2MZUB97xa9qOXlXwunxI3aI/C3da68ajLJPZhPpSG+GtxUCatM6PCwvQwhULIvMSFHbR8hpHzSXGAamXCoSsLPfhYfTlxINC+0zFr7CmJbmq2JITfjiuvgxkstzpUQMdRyeg35mZ99rF9yvvbnGpS+p9iW9W6svIfO7TkrFf8s0cnc+eCCAclbk53XX9zXvxK0/AP+XF9QtT91e6Fx7gSQw4O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dcZvrvcKGrZwoPPWo12nfSxn9cWwdbYqXYBRiFZ/HU8gj7sWdSd1P4h+RuYfDSvBRCezc1Y= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: a438b9b6-1fda-4264-0c8a-08dc8e68b559 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:15.0717 (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: 6ZZK965kHUn/Ui/nrF2LUeeM5+3dOVt5uWL3OpimRilJ1LYALZ48pI84NUKB3HcNxWQjIXH5HbsyIvCaguFn3WjHGf0ROzKsUM/sjDhP4AhlcsAhgE0SYXQH7sCLB7pw X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB8560 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 17 00:59:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 805431 Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2063.outbound.protection.outlook.com [40.107.113.63]) (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 DB724127E0D; Mon, 17 Jun 2024 00:59:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.113.63 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718585965; cv=fail; b=ZDvpsot8BnPTwocKhgOgWOq+K0OHxfZPUS4tRNg8FH48vW2p+aDntxHwfrdeBhVPVHcxOFP9bx/RK/CBJUNajtN7gK8asA1BUd52f+znXMX5GZm1dy0VJQmhttfcZRTlhSVQzBK9ASiJzxDT+lV30UQRGp3MkrCdKd17xHHbnlc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718585965; c=relaxed/simple; bh=uceUvCGwLuoMrbqNp+yNdos4nDNpPBVY4SNxjeyFpOQ=; h=Message-ID:From:Subject:To:In-Reply-To:References:Content-Type: Date:MIME-Version; b=fVobcBdPp4Bc0qcE926PE8nhTiz+Mm4Bf612/jyq4GFA8ievBzYGZLi0vTYoFjnjp1G9v5UQ4SKAAcT2QvbJlBdp75pcNNvzl2BB0a0LHMj8aqnjPDUd7CV2KiGkKLotvtrweVjQA4cFFeTyXacbFUTQ9/xR9lzdme+mZjidMv8= 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=Fzuwy12Y; arc=fail smtp.client-ip=40.107.113.63 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="Fzuwy12Y" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JK67/qMwXjkwT4wvlXXFPVx3F/1+YqKR0+n0/mPaQrproqrCaFFKqYMTHthk1NQWFDzvilBuj4JOpa4xLQFybq9V4UjBcqR0i3EpNYJl5VzBwxqh3cOFLN40H94xSwx3dOje16PlUJgsMxMxtGTyroWQTv6kTQ9EAnBXe/J/ip2PrfRJfZRI6nBEbVKg+ZFPvZAdR8OYN+AT+ssX7oUVQVbjSiAyZgwooEgLkYiMECGmsboUksJlxL197gOcqEBMRV6Ea+uFBuFu+N+V3/Q+cnNCbYT0pOsr1ldtnlgzRoaF0GsVaYl8e/Tw3W1Ju9vt49Vgvf0Z7ZaCHqgt/TPbYg== 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=IGOWRJirrNdZimnYbSoFqdWIo8BAAWQUnPoG0vRCo6eg05dkwFipTAXXCfHKucuNbwx1q37ZFzGlP8/5uRjnlpOL8k+tZvuH82ht/76d420Dy2paPw0O/jDOl+P5dtmHizwBCHVIcJAn+/EVf0BRYg5kHTvyLHI4/AfCFlBcSwhBUD6cXoLNphrcAnUuYwVJwaEjE8kyaGdFbyvSmcHOllQjcZwvXF3BeedAjMuUVlwYUe8uFYtQIRuDNCsfj+vqtCWpSIVn8/DUW7boRmlMXP32r/Au+wXKKou8PUn//JfSV71abrWd9/DYD4p7xmHex3SjVHIT9ETZ7wC5Qe8FxQ== 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=Fzuwy12Ydl7exl22CFDWhBTMfSe4lTtHg9dgChwPiAy9tr2M7L1cvnZUPPG/fqHVrrUkVNqZy63yl88sL+Z9m99WkBTpd5pDH+Y9/PDrdnHAgRWB/9XfuCdWJtX+EF7JjJ3v4wy/tmqRcFb4VGMCsZ7PEAVCFu5dTXiFsyfgeJk= 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:59:21 +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:21 +0000 Message-ID: <87msnks7tj.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v4 resend 6/9] media: platform: xilinx: 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:20 +0000 X-ClientProxiedBy: TYCPR01CA0171.jpnprd01.prod.outlook.com (2603:1096:400:2b2::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_|TYWPR01MB8560:EE_ X-MS-Office365-Filtering-Correlation-Id: 97283901-a5de-43fd-200d-08dc8e68b8f7 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: Lp/eih9Foa68sVUD5z9T3mA2fKql5IEiUA1Py/cmVuCEqnA+Nlmv0xnHEVtjxuMre/9TN5alw2v12YPj74VBY274RVtAGTKEcUNHhH6/P/ISn0Bo7ZW/f83TGN4mhvYWBpWrxPAAoM79t24+n03oVPF+Ksk9D/mzIOCIRXcxA+BzBgbCT7iWZnpBZFJT7/fQbirxaeCjJ8zB9nJYU1GsVwsEKtp0H/av/RUuUA8kqKJfImFIdyxd3M93EO1/GPWfIdXg0Mh7heCQqshm53j6qQjCt6MuRZL87MNiGWqxcoOqVchbZEt9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rt77R5eAhbv 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: ndHGorYUcgBssk6QamX4vhrmgA6UsAgHUX9OozVbb7aKOLA4RYtmVAzpWR231GZXg2qg2ndnZSi362U5D7G396eoVM9r57b5AhRNei/TUb01esqOSPZtpif7BRavRIB91BJiLVZSniPjoeWBNnfkf9dhOks3Kw4ReBZXWTdoNp+YpXzIhs0b/b4yaQu5Kmm3qJGgzwQpI1q1r1BljDAgj38Q99rf6Fq3Oi0b46MK120FW+eji/B5yoga9UdMwu30CzmNuOjZjXH8veP4htVZtTTfwfn3JyToDATBybgAbUA7zgAlqA9/pibqMYs5n9mBGMN4vMviCd9KPgZvuVV/0fQRu6UA+J4QqJufJjf8m5KXZsvuZvTYRJGabwMNoKq/17zrBWPz2py28RiBBD8lLqGeL6xir8uzFDRG+DqSltUiAGy1kTFW4uBrVQA0SFbBO3GX52OVQYwCRhaJu2JM+wj7dlI7MLAe5LZyLbvc6sfBc2bdx4gHDXButwzGkxEYpfh5kNi1c2lwM8owWXM9sVmmSaAXosOrIFnPaM+sC9czhmEndKX+O61sP8YjMeEGl7Mc33/Ju0GIQBvilFfOxZPxCnTAfx0jxgR+RV2kxe7ZZF2+F+hlIg3rQQOJmXSUrHsj4vejppybH0OKDcJfxaW4L3ik8PR5wYmo9pdXk/uL1cnWQwVbNJa7uzKHTqJ0VzTuXTRQXuhvt4cnkOB3pokWo7EvaEuuz63CgBHMpm1j0xexi6ygOHuj/UTuj9i9m0UF626TaPE8yeQMk27SfsWMvEDU2/4sLomB6aWsIlHwh73j+cKp1y41U1m4IMtRgztjdjdEX9zxQt69cRd0Y2JI5cU/96nA10Anna56QXMj4sdg9JyTdGfDQZzOpBbU6Rxq5bRGhicXhPA378wqAjP6VMiulWOLQwTI8hkuAFBlnYdKQGHfIkOb2Pvz6vUHbwi59yMOOVCTsQarSoUlM93WmxVWtwg3VNwevovf++PsyTh0rKU+S0RxrHamKFi0Vinuqq3fh6SC3b/h4jdudlNSX1mDito7WXbCshFehswP0d5HvI7ECcuQ8Kx1qApJQoKgXkUff1FhlGaZsq+jPX7wzWLseKC2c9NEzSei4o940PMy4mIb1mT1zXGV7d3ogeFxTYlfj0KWdfin5O/lmSOuuGXXLLBzyJ1eLJMTZUvCLZOfUWJ31SHGtxzZD90Eyukh2NHrNRwtPlq+9WEeVM4sGMIFHQoO9xl4w3acAYhdmpiwYHSINF7W7V5vZDOoDn2XL7DnLwIfSFwuwUMOdMYIPABaCFyBsxn1R1WN5Ma7j98uckfXYQp5Ut6RheVbYl8DFe1jIU9mqWXefFOsFDPMrkA3bsjY+lJq/uS8hB0KgrOmo4di7Vixu+W3nWeVEgl+5fuyIqAhIQwCCIwhs0eDHQ9Ytgo+ZIRVtWkGGnjJW+mD+vz6wURAdLHMNd20K5NVlV8/Ks0F4Nc8qKhA0pPzRjqvj3LiasLPsPwlY6spQGc7JCFJ8dSgENTByyDJ5V7JVi7thcVO1cHLLzCG3iP7ywtMeNFGukIGd1qNQJIYNvY8HHLrCfDVwohbxgPu/BGiFwITB/WdogXE6EZVondcETTlxudJJB7f4LNDgVw= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 97283901-a5de-43fd-200d-08dc8e68b8f7 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:21.2029 (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: Zi5tiCkJOOuJuA/ooYpzcqB7bhRajdcVesEpP88dbpUtZppRlrJ+HytqoIcEqWd5dT+MGGnE4luO4l4e9xTMg+weCu5ZCBcQDC32OgOhFIpJ7NbPmwmkTqgACU43zb+0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB8560 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 17 00:59:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 805009 Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2040.outbound.protection.outlook.com [40.107.113.40]) (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 17BFE441F; Mon, 17 Jun 2024 00:59:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.113.40 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718585973; cv=fail; b=TIGHt0kLw9z/Vdgb/gq93RJIH7A/HfL6hFKu8q2K3S/nLT/Vihl+PeYHunNk4XggnPalt5LrSPU9v712TIVVeG3pqjP08lvcfOQHGrsYu0yGhYI3x3BGLSqJs41XgIAmBzbQ8yejhjnfNuG42ZHxgFaSF8f/yvUxcU7JxweZv7Q= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718585973; c=relaxed/simple; bh=Gj7gZCmCXBxP7NSFq5kl6WHPm2h/Iad/8G3zfc+eHok=; h=Message-ID:From:Subject:To:In-Reply-To:References:Content-Type: Date:MIME-Version; b=NdQ1WpHGeWTwVia0EA8EmCT5UNWeU2kkC16c+9D34E4Rk7yOBXP0H1WDymUdHYnQq/q0p7lV9nB07BY5BQ5t+LVO0t/im+TL3icA4SxCt7v5m31iNIR3bCAlT149nEf1w+ktmkA5raysK7WxDRuczjyAX+LH2ttJnDisTmxvg/4= 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=jPv/e/1r; arc=fail smtp.client-ip=40.107.113.40 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="jPv/e/1r" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jNDJCf8cEm9JUltP5chsPsUjMPxdkrVvI45L0xbiNVtMZRqtYATT+eYXrv563pFwxePux00BMg4y2yagjcrUQLWbKYPRpVfztCLeZlW6Piju4fWYmFxyEWZn1JdBeNGYu0PWzkUcLVOX1UCVZ74vamU6QZLo8xRWHjxNHCKvGGM//8GvMmt2//sMsC5v07p7JIt9/pljrCvz1XOcWmzdtz2l9dUk04Sk38GNc9aEhJJL7K6GybT3QT0j730Hf2dQf+OfiCpyXkGxBYAh9b7b9lqQ+DGuFh5jGbNzA+/ptAW6b9WXmUZAIOvMqR/jTWy2u4sIHjJknyOXbmzx1SgOzg== 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=JBUSfZ3Kv5vuquzKI8kuhQU6L422r9g21zyiY0tqe7XOvTV4+la5B7XRsavD/vo8hzISZPognLGjkpr31LpA0jHLVh8w2r1aLzybK4ZCinH3Nm15UqK3QpxhlPvWlko09Pj6EgnyGjeXhKfUPpBDRso1qye+zxD4MsWherH/Q6h90rd8+Pf3aXZKs1TcCw+UVyhTuqAmsxlI6w8EPnDXXAN2Sh7aMhj9tpXzPH/5NDvTZthWnX5CXcvjoF6OescZHZWT8YxAjYlHge4FZpzgRg8qU0IH6BAWngNLU7ESfYNIxb+6YbqrdL4Ilru12iMJHpM739qtmYE0SDhwEhfKDQ== 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=jPv/e/1rvZRAeSl9DF+s19NxneAw056odKS/dOLQ06gTsYL41/9XJUpJhzZvqMGpvJw9RBgYmuJdvClUC/C4jG3H4y8u4XgD6Jc/smiWQX7k41NCx7tQ5/E/YW4pTclZ39+MjWKMDtH0nV9rax/UL7aUQCy1GYjbMWl4nJxuN/4= 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:59: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.7677.030; Mon, 17 Jun 2024 00:59:27 +0000 Message-ID: <87le34s7td.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v4 resend 7/9] staging: media: atmel: 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:26 +0000 X-ClientProxiedBy: TYAPR01CA0148.jpnprd01.prod.outlook.com (2603:1096:404:7e::16) 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_|TYWPR01MB8560:EE_ X-MS-Office365-Filtering-Correlation-Id: 5a901168-d2a5-47eb-3c32-08dc8e68bcbb 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: Gew90t/xjpaU7IKssLFkW79YA5lz441f7oB3NVT31DVGKLOVYZumV3zXq6pyKwHFM2gFjILInLqcI4ji0smtr8UISx29jErego8Dsdkc+Qws9egES3yTTIPMsN08lTFhItTiYFpNb2CKr8nmDq32WvFY+O7r9lEG99Uzm59Skl55KsRywU+HUHcy+f9KEs1aVyAvtTm11hsiLNeqwqPfCi+L8qAVPuGA585Fyk/dGXfLsMWJnypWc5p5eu2agSEI9+FY9LEU6q4nsfeLqFwHNV6dQtGlxoTPZTHW2h18nZJu5CiU+VsepvE4kQ3wXtvX6DwE8UwtBH+6gT4RiDdMIyCmGQOd5iMW9esTPM/wmcPNFfOw7buW6pUoOIW/RnS6Wc5cVCIlGucafzg7u6bV3FJqbIJfPCG3vzYChblzVYte/p/0cQcw5RgVxWSkl3XKeG6zbGHHX4XpkTUMxOGIK4HP/MPHr+q442B4SUnzDa9OiWUJs3LqE8gXkQNmJHa5K5iAkiXtmPjLnE6cxAXHz7JT3HXD819o5B06U+LkMEk4iH/GQTiZwz5x4o0AC4JoQs6nM/X4O/A5e+yJIDS7K6B1jkJLKeZaNkn6nAedNHCSP2V4GKiW4/Im44hQx+/8OfGAEudTOLiM4aaeWarUX5rggrYJ9LD26GmWxf09c0NiQPwbe6G3QEL5qHvdXa9yTO4iKeuxkT1sXYTk8epIoV7SguoJyy4MZB1MOpZJpfEWr50yUt7A9VQjUjwDwRuU/Lr+MbTET2Ugiqm0Pi9ddgetuoaRmjvaDGNunKIbNsoNYEDFnv5dhi+9YXDg3EKfpS7L63NCBA0mt53KF3rwM2yhYVlbq2G9tgpkZZgJnXNnCyO1ijsIPQF+s2xw5ZKopY2QHdy1/AtyMLiJyO9k3IOnsbr2DEA2n8UGzuXokZXYwsuP8jb3asHwZBQXfHFNS6jyav3GWnEp3YX+H0qKTlyJdgjKkEIRAMdFETuI7bFd0Qvu/LzgLzyhQpBEK0Lg3/qT6AuKAOTlFJJTDa68SKjcqXAGUyeq7VjERO0/JYzRBARO+UQGoOWGGyI3rpFYsmhPPDqOIEIzjiOunvnOlAwe3FNCrWRWWtAijGay9JwMl9WR4RTwXxRvOAaiQVRiq8skJ5zciCAFL1caQvvnkNWhnUSukwyNxWdNAJQXnM0qZ5iOeczNBDaix80ZBLHqgnRh5aAu3EjVIqkuktLksahHRhZ0OF0MaqlFNixChsv/fSdS9ZgLA1yHey5U/V16mwnS9TdfAKs/WK2Sq/1PcnVYHd97h5GrQRAsw5dlLlMwhTVG4M/Lp0NGjr2TktpsEVc8yaQn/mSfEqLUfI+qMmYR3ZQJtu2rsTVa0WtLoNC9ppwyeh7h3jp3EJTj6W4c 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-Anti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F2d3ZMJj3KuIrJIZllGVpLiXta64wRgc2aNljujN90CPYT1FSK4lqkDmB+qlNryIiaL6NpfCiyBqR7sVb/dodnB14pHfHn1GKVmJw9REuCykRJhqGw1U5CzZqBnpRoVwaXXqfoKFlnEn5aDpmU0TeXNi1vz6tzuwgME+9cIDjNt5jQ0rx5w9WymZwUfRL2FELuhi5KuGqhQuE+xP4DrVXwdqjclyGUUX8JS3+1l0oKfe/qRNC8XkrzbYqpc92R2E9cljfugLEjYBUG3X5vxJFooUukBLNNwiA/D/o9qCUTWJ6nNmgt0UZSPdA5fSB4TlTqj3aNsnUQ3Ix+zNUgcRRNA3B9GnpQ0cWKURsku31cAuhORVkpKW3rFcGa+34VVvG7txWc9fnz2LkGDbkLFrJBr08/zTVIJrRQEAFsEAKYMb9RpGIyAGuFJ/mwtcdtM8HyCmYFNayMri1dZI1pVliI5ILHP5J5smuteQNZMyfi7y4gRVd76fo0nF7aylpsGBIJ7CrWqW6wzWppqUBj/uHfDPQXHBv9a+DtLfE0NSNxut1mG3wivsrkz7Bs= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5a901168-d2a5-47eb-3c32-08dc8e68bcbb 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:27.5336 (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: W1PfOw9wcsaaFEiLi83pESmnilzkxCG/VbOgbN1cYrXhSUm7M0hut/JNjdHUnrMb7g/b6vYd2NdLx4ElPeyReGHO2eQNIcyob1P7JLZiLH2aBwJakUahu+G7FkkSSmLV X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB8560 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 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: 805430 Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2081.outbound.protection.outlook.com [40.107.113.81]) (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 D30C68480; Mon, 17 Jun 2024 00:59:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.113.81 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718585979; cv=fail; b=tIgk4OJeGWTZ2dHg+ITUJ4DHsbgALPOnG6vD59A+VCiSQD4lz57ic5/oZsg4npkYVoX+VFnc+MPkDYjJGmBVv0yqB0L/RsYbSVaE1WBFR2YgbpVBZaid6rnMtFY4X7DeSoA1ixgJ4ADT+Hd+oktZrzEPxjwGEBQSdlCX4hQ8ciI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718585979; c=relaxed/simple; bh=KT94KJLdSm/7M1CkgfrnI8TeEN3vyznFYiK2Vh6qhoI=; h=Message-ID:From:Subject:To:In-Reply-To:References:Content-Type: Date:MIME-Version; b=YX96W+bB51mHrlGv4xEcwPOBhPphU+bi45l2s/hbpCMacub1+yKtEY46MVC01w/l8Vwko17M4htE7niEU/143mNs1c0TwQMPQsS1vGQaqSXasrI3DJpjO/Dh65eE/RmYWW8Xhm4/+rtywt/+rlj+qADVBSaueHiGQ/s9Jt32Zvs= 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=KXENqQoT; arc=fail smtp.client-ip=40.107.113.81 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="KXENqQoT" 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) 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_|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+0Ebb2C8cXlFqn1nBtuga6F1rlb3zVjdjjI9yvE8VfV153hLnfV2h3mVdU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CwsltfNOSNK6DOTTJBhzfjNO03SZ69ap+dh6ifOAqKOP0MiUtTW/8M7SWysvZxim9iCCSfJ91vsgHGvEe+bUi6pA4Wuypa6vjuHRN2v8nQvlqDbUIUDn8Vt/7iuzEB3LKzlE3zJu/Ez0ouT18EFyjLW52/7Vsz4IDU3q9/vyK+wmVkdLPBw3OldmdDls2LCTfWbkZdfbRv9tsxxN34pUKz26tALHbhaJd4 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 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 17 00:59:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 805008 Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2066.outbound.protection.outlook.com [40.107.113.66]) (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 112ACC14F; Mon, 17 Jun 2024 00:59:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.113.66 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718585984; cv=fail; b=WAev367RONkJyDy9GELp0kVBcBRGRw0foQAAalqNQ6s7RdjxDUUD9Z8o6FzNnv90I+b+Cde4HmKUffuwoBKWktQystAiXkN60DC28G2QQPm3WdoWe3qW7yAlO5L3bt3ov0oUvh6Bn3KLk6PDrjKvbOXP5+qF88ix7qDDCh63TR0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718585984; c=relaxed/simple; bh=RLm+i9/ScJYDLOHo+cV95VhB7eobV/GEZD0X1cPqbWM=; h=Message-ID:From:Subject:To:In-Reply-To:References:Content-Type: Date:MIME-Version; b=ipRAC8bU/5dMzUYzubkwMgGKP99qG1JKq0UaVEERJZ5t2hc29MzjgiM5MB/FxPRcyqmIvuvhqMRe5gWUxA2E8W01RS0mC3QHsjj64VQP9RU3MFKj1oOKKjVtHgAyyMEyQ5/NuwdGZm03yoOsmNawdHo5iFB9BsPcMPp5jEz12rY= 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=NLGHi3dZ; arc=fail smtp.client-ip=40.107.113.66 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="NLGHi3dZ" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QPOXMYQ0qeZmkn1ggF45SqVpfcIeQMHeT3cvh40jKP5++KLuk2uQrTof6TrjPjZudQoB+p4rq/gyFPfKUiGa8NoD5iOJGVbZVH/kBLFpo/4t6K0UBqc3jl745NsKyarn4lWWCOZvZUQ/f5VgmFvsUXZ50EKeWjZeRvGr4CFTDZBjDvKa0CiIITtUQuStL3r1ZeW0jYVan7Yyag3QWgwtOfAFi6C6o0Jsz3FwJWrr2eWrbQJIBF2065ZkFWeKYk2H5c5sb4BNP3vWzXHG5hM6p4m2BAawL2+MOJ+NIzsTHn8fyx9h5ONt/vCabyVIcssyR2Risqn5VJltb0mjXk0k4w== 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=G6/BDpVUrfYg4YPbpTcV2ytVdLmMkoZiL6Mk2+bAeYXMoitzxvaIVKFm3iZn+IkYmzysjp6atMjuwBE07dPK/xvPq7b6AShoh3Gj6WrXiJf5l/7GWbtLymObcLgzqyZTXwhK0PnuoJutqUrYqIKOyMg4yS36POHUBYNW4MLQ7daIr3VLpKJjPWzdnTnEu13aYv2GLHixjoIvc67oeggt+rIpnpog7NkIn/RoR0GE60xVPzQAbPq2hatzNTqwFIgkEknSHKH3b4aS/o8M9aO0DPA/rc/DFYTRvC3b7GJcr4RIRsFdsPCLXUAvLV2HYqi585q36v5yGxcYohMemRRcxw== 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=NLGHi3dZA9sgk2wxHvplccaA4XJIq1tANwlII8/HlqtFEkf7N25v3lWHMCy+q2WN4XuaZ5JCUAnFGX/3GlbuG680S7lsqxBJGe2TOs7f1oTyA0veRYKeu22UMayd7Ie4XCAC1ltCQdmQqDcvB6cyCB3o7HTnm8rttgvwO51kAXc= 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:59:40 +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:40 +0000 Message-ID: <87iky8s7t0.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v4 resend 9/9] fbdev: omapfb: use of_graph_get_remote_port() 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:39 +0000 X-ClientProxiedBy: TYCP286CA0128.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:2b6::18) 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_|TYWPR01MB8560:EE_ X-MS-Office365-Filtering-Correlation-Id: 2f8131bd-0582-41f1-84e2-08dc8e68c46a 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: /hW9wdeMyHNtWYV0fMb5EaGJXHmJiqAwTEKwSyvU1HU2bMG59gDcSNepQR3vlNQiQc7Hq6l4dCc+vdOGedDeIrju+aN9cuXlGjtia2Ze2zOBO65modejj2kYobcX6MeCgrMMbMP8ErxIIJ9xsIXpGOohvHZHdPhRuXpVjEQyq3/XF0Rjn1dwQ358sOoGMeq1pUGx+5AO/ZHBazrYIYeDFGAXtefQ44fB3ow5GmJ+oYRCXq1y9SypB9n6npy/vL62N+I23D834yY4JqJI5+qqwEHhXnWAXvgrNZQCNyZXXmisyrqt2NV29jzCHtXwqKBkxMMs02fkmLEBI0+ZwElVEqSQOPRlll1TXWz9klxRe02+ux8x3ddxfoqA/Vcpp678pSC8OA0XsDXRout3czAEb8Za8K2ioI8Vc544cCWxzAn+zJFiE4sDKOVpvbMR4ialNcmks71CSN4Tu8KYVXY5g1uN0N4UB+gV1xSMax6u44+ScAwg5IzDjiMMty7SvlEGD6JiMKiNLfOfIajyFGrni2wX2iQaaOGrARusj4eG20muJxS1PWtbyL1bJB6lahvKps9r5Yr+47jkrSYS0bx+pu7QBKpeDL89apKtNB1198u5iWhty6bmsPzr9KMYXOlYBCAuJy1+57qQS54w4NFzKwBzSDbfi2gUtAjhBKDcNLOS0XNuUwSeSCUBM40l7vSkt0RtTmRHUZ38Kaqzz8O8e/UG3y0sB4X23LHtz3AwOnNLpJghVH6paVlAi5L7ABAsqHTRaTI40l4pvvSZ86nzxt6/iKjS9mw3LizeoDMnGzaK7dji0PSgx6i8G/PnpoNMopOpJl1sr41Wqyjk1UJ5sTVItwcHNWXwCZyXeZqeLrl+Ypwur/vIR6kbNHW6HuA+vO0FEtv2+KYEwfvD9jMO6xgJqYW4rpkLGp9D+r0Ni8wa3uwdj0sKMI8Sw4B3o1cl76lIWFXFfir6ZB3uhArHxxcXlpCdVQKOgWg0KmSsaOxJD1kRXNiPLlMNAD1lpoNJEzTru+PugYNyHDxAxSa5bWjKyo/hKtpcf/CDJWWU4gBP6yLQwaDPZJQj8LwvAMxrS6wsq+tgPibCigd5gouzb37QdniayhZJNcnlyEkZmSNOlskk3I4ai/3T20csyyxhUbkLhGaKuc16MLY4ggsjVXFwqhyvVjg2RWdFD3je2p847ZpDrQHiDQ8l+B95Ko2/C4FwJr5z1yAvsSSdC2WzslGfIkqOUjinsYw5K76BrLNx1fyDf4slR5Na3Vn2v5A+mp0TY3Ww5uUmXImmZcVeNLgA1f83xCdc+P/ZU31luuj9S///yYl6CNuRXfoKijbOxincBZHtMl0MJKMsSrJgQQaG6unNs7C0yEeeAKcfpj5BRCHgWTPk8leVIuh/Cplh 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: PaGwiKVYk24Wir5SmfxU1z2HThyo2Hg7sVShauRkTQXe3pNY8dSU0ZkPebWy//cUAoxYJjUT98g+hicF43VVzpprXpOYuaKuk/Hx95aFj7Bohjb7aznVf9vhWFvbzHFoiGrTbAm/mGbfq6/Nnne1jT6cemIUJHsgrHmB0Nf2h3Pn0ejKULcnSZAldvPOCKYRISmDPGGAs+8NrlrI3DHTIdklPJc8Dz5Uk+v2MAeh8QM5/i5vN1kiXpFJcefux+3Og7I6kT3f7obSut1uq//0VTQbKWqh7Sj2FmD0DiWfw/N4iFVG2pSMBnjBvMm3XHIf/MQXWrLNoq7A2sO+nxOndjkGujTGMBhIZnYjWbva1Mshpqb19ncCrwfQTW+Q5Z6tST30cv4T82LESC8NWL90GLSqzdTR7qOXAdb+Qq1EXdNV8rwx5CAbmtj3BcJgcdTkyNG5AFmnyFbCbOp2jahUHyaAVc3Ze4wFWu1WSa8r8Z3aoR472mB8ZBfbeHBL2x58v5XSTLjj3DBw36R+TBYoAE4kClYzsSb0b28Xea37lKEMDQpVImg+sdmI4mLStwxtFI9PY0Vt1+iq3uCqTeEAp3G0ssuPgzjTIGqKgXEixPCgUeLaC2LpaLouKmgboQEyI7n7C/YX9RRH9RRXM5vQISOGS+hm8irntszdHmK6UeWknqSavcPSrjSEWt0Pc8jKUvfEUqzBpXtmHqrn2q87ZreilMFhTztmwf7aFzS1oQZsh/HgZry4wk5s8K2zU0VuctmmNaraLTIQKjyJa+LruqAuzWfJKt2oGs2Ame5YzXbV22GAjczQq7gna6Uf5JqS+oZchdlXCu8tMYF1tO1M9iyEGf/8YRGXreK3h1cc1sps4sWDnv62GQ8wK3h3KYwXC+hThiuQurBYXExwmThBa3rJbQ+7TDA/AOT87M6CpEfX7oQDob+ZbOpi3TGfy3DqS7Tc+Mocr+4S3fWQIyNghoWAJiYtzaDjqRbsHuaGep1I6mcZQCWEZf8kUzyG8BxXDmK/fqNt/pnrKVl4/521Ig+UBmlM3gGecldQA3hZrPgXHHmdGkLCfCYVVZIXtrcldv63YuFdGJz5I+fkhAJWD4ia+L1+NT8QF16QyClzBfMlddnrIdgIv8INpsJ3WxDCxR07RWSxVsNtMYkTLp5bM16uR47SIsvWrT3fWKprJtHIOoQRP/YnMcaruJiSlnGuZOgYqFh61EoA/WGXWhQQJdnkzvjBt+mrfArW0fUsvThkAMy/UqE+LX86hf12WZqVzouw+J9H48gzsj+H5Oq0M2RdGxpcN81O1Z/C2jMPJ0NePu2wU2kktSISSuig5TzI9bfwTw9lfFZrbAd72k+JsrQ4U3EOXpfIr6qaag3XDyL4T7FaOLR96ESKQLoxJpPPhz7O0LKFnbdU1aZe53Uu88XXSIOnyra7dxWLNHf5cvzoDKMTC6dKuFBdpId71ZYMm4DZQht+3F57DUnyjDHI9v2qdzemWuR/Lq9rup/cMxZkMIertSdMF6QjvMO0JUChdGL//uHOlKjN2cv2FFJnVASyKF547mus4KzjxEfA8t9bx6KMpwm/+EF7moVzTovA5hJTQatJLla7B4OkkAttFxrc593001W8WtVgFcPUCWg= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2f8131bd-0582-41f1-84e2-08dc8e68c46a 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:40.3956 (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: jKA7JkBf5gTl1W66K2iCA9+m/ljvTVqD+a12bOj7lqKcNWx32ZKflXGFTXm2h4TLDh2OT5KoAvYKUPhFGekYiwCQ8gfPBnh2eJUv8EGUqmpOPEh+zF2AVp2zVo/4JpRT X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB8560 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);