From patchwork Wed Jan 31 05:05:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 769394 Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on2119.outbound.protection.outlook.com [40.107.114.119]) (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 9442D3D963; Wed, 31 Jan 2024 05:05:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.114.119 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706677561; cv=fail; b=edueLljwN3QaDQ8OoNlW8l5Uh6mFcuFJ8hkI5fVzshmidvTfJ47o+Wd/HxDmwLTHO7U/xAczbuw/bLk8WDcFEUMBxwLVD1mc3Fjzs+ytyvnXlroujLg0rjNnOeDoVNkKUtoUpZLICeR8W5EA+p9F1A1KTiSB3j/Y9SP7W5W3/iM= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706677561; c=relaxed/simple; bh=ArJfoT1znjymigiWHNat8xpAPljTe19ugBuOpkqZlRM=; h=Message-ID:From:To:Cc:In-Reply-To:References:Subject:Content-Type: Date:MIME-Version; b=XujMzIZUQgs9j2f7JsYi8f3RrLvyP+4oPFFkXMd84vxFZTGB8f4DAsGz9p0X3e0PGLgythwrNyanB1EfXw5QYpZSX+PFkisnFpvoKW8wu0svV93uik/z/kx4gsQjDTJo/m5Wl+ZcwUkv8dDs2X49MVMtf+gMDbADDoDwOgV07Xg= 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=Nd7zDCHp; arc=fail smtp.client-ip=40.107.114.119 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="Nd7zDCHp" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lb6bOI6ux3R3ZN+7y2lNrZbCYzyXe10IONIpXaUFhTdGf8GZA7BRdLYrZt1D5lVReXCiwtYwc0v4YprGat7c/V0igIufnVDycYiqlkZpHkFYdjguLbaRYFwE9DYu8oLSbshe13KS9Rl0VkU9jFefegvd9RmLBxaoAMu8gYIURtCsWc6uCtl0+ebGcwxs3qQ+1j+djy4mcyjXmmFEk7svqQEZha/Jl4KeckPg0yq3lQ4DKemcqXoXAJ84sAdkSkL2fNhJyHhnnV1AnHNHWt89QNA8b6CopVeVWwg/5erIDBN26DQvcMjKF3BTI0nOy2SkIT9p/Cd0sbueaY00hbb1bQ== 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=h0Epjsyswotz9m+ehVOpV/lWYylzN1g6y/alE/dldvc=; b=IkWfZUct4BqlX9lnX+K7FuMuGSnz2LjVscAXLV1WxD/rRedMusO9nclOGu28IZN5iFiajomtCBWsfLJ2gBb1EFOBaskMkDelcIWz0UYF6hk2y8Crv65rj3NEpCI8GrkV5o2uSm6zl5JX8xnvfqGzFcFJQgTgJau7pCjBZOBTsw2ZHUC2puUeekb+uu1fOHJGkog3+5yb4/TRYBdegRyrM5/E1JHq0XQeRk4El+pB5FMosEg1DNrWl6x6Oksmbeznc9KhprUYAZISkoRoCjN4PIf7/6Vs++hSL/WEzP/AixqUrDwGui5aBBrGoszF5nCrH6cRPyjm+etriInuq+J7Jg== 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=h0Epjsyswotz9m+ehVOpV/lWYylzN1g6y/alE/dldvc=; b=Nd7zDCHpKAOVVNpO3NMblAJixvEM27DDKeSOTX2i/RQ2sK2RkchwASOvDDpfWz7P1IitoNZ+SjmOMY6JjAY/ywlFE3GplbFW+gYjtOvciUz7CNt1MpOswt8JvnUINp0hVyEcOdeS4sRlpGi7vCT9/rfuLZL1KBeBv2JqJZT69hA= 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 OSZPR01MB8896.jpnprd01.prod.outlook.com (2603:1096:604:158::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.23; Wed, 31 Jan 2024 05:05:54 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::ce8:8f5e:99a0:aba4]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::ce8:8f5e:99a0:aba4%2]) with mapi id 15.20.7249.023; Wed, 31 Jan 2024 05:05:54 +0000 Message-ID: <87bk926qj2.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: "Bryan O'Donoghue" , "Lad, Prabhakar" , =?iso-8859-1?q?=22Niklas_S=C3=B6d?= =?iso-8859-1?q?erlund=22?= , =?iso-8859-1?q?=22Uwe_Kleine-K=C3=B6nig=22?= , Abhinav Kumar , Alexander Shishkin , Alexander Stein , Alexandre Belloni , Alexandre Torgue , Alexey Brodkin , Andrzej Hajda , Andy Gross , Biju Das , Bjorn Andersson , Claudiu Beznea , Daniel Vetter , Dave Stevenson , David Airlie , Dmitry Baryshkov , Dmitry Torokhov , Emma Anholt , Eugen Hristev , Florian Fainelli , Frank Rowand , Greg Kroah-Hartman , Hans Verkuil , Helge Deller , Hugues Fruchet , Jacopo Mondi , Jacopo Mondi , James Clark , Jaroslav Kysela , Jonathan Hunter , Kevin Hilman , Kieran Bingham , Kieran Bingham , Konrad Dybcio , Krzysztof Kozlowski , Laurent Pinchart , Laurent Pinchart , Liam Girdwood , Liu Ying , Luca Ceresoli , Maarten Lankhorst , Marek Vasut , Mark Brown , Mauro Carvalho Chehab , Maxime Coquelin , Maxime Ripard , Michael Tretter , Michal Simek , Miguel Ojeda , Nathan Chancellor , Neil Armstrong , Nick Desaulniers , Nicolas Ferre , Philipp Zabel , Philippe Cornu , Raphael Gallais-Pou , Rob Clark , Rob Herring , Robert Foss , Russell King , Sakari Ailus , Saravana Kannan , Sascha Hauer , Shawn Guo , Sowjanya Komatineni , Stefan Agner , Suzuki K Poulose , Sylwester Nawrocki , Takashi Iwai , Thierry Reding , Thomas Zimmermann , Tim Harvey , Todor Tomov , Tomi Valkeinen , Yannick Fertre Cc: Alim Akhtar , Fabio Estevam , Jacopo Mondi , Jernej Skrabec , Jerome Brunet , Jessica Zhang , Jonas Karlman , Laurent Pinchart , Leo Yan , Marijn Suijten , Martin Blumenstingl , Mike Leach , Sam Ravnborg , Sean Paul , Tom Rix , coresight@lists.linaro.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-media@vger.kernel.org, linux-omap@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-sound@vger.kernel.org, linux-staging@lists.linux.dev, linux-stm32@st-md-mailman.stormreply.com, linux-tegra@vger.kernel.org, llvm@lists.linux.dev In-Reply-To: <87o7d26qla.wl-kuninori.morimoto.gx@renesas.com> References: <87o7d26qla.wl-kuninori.morimoto.gx@renesas.com> Subject: [PATCH v3 09/24] staging: switch to use of_graph_get_next_device_endpoint() User-Agent: Wanderlust/2.15.9 Emacs/27.1 Mule/6.0 Date: Wed, 31 Jan 2024 05:05:53 +0000 X-ClientProxiedBy: TY2PR0101CA0006.apcprd01.prod.exchangelabs.com (2603:1096:404:92::18) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-omap@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OSZPR01MB8896:EE_ X-MS-Office365-Filtering-Correlation-Id: 6397c347-a869-48f8-5488-08dc221a4d8c 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; X-Microsoft-Antispam-Message-Info: ieIceO+/YTN8khKJbn9eDVrxXPewKYiqt1rsJoB9SxJWpDKyrb/+sjw8X34gI219OYODYcLEwcA8z9lTW/7AU8upxUBCwla9R17ezT1USjzC+1/vRw+qL4xpB1WRSVk3mVw9GfWGW23KG6m6fVCG8ZqEz0DTyxyJWVrsg+vOnAkNvM8fJf14OkLy8oniWz7OcRaf6klX6UIFo50nf/DdHSupuK+1vJL+YKsFX0zjJg32t3ySNysVXWX3uR6NdTeQ96WqBVt8mRQzM4DYKxn68kPtHb/kezNgWmUyex1U7VRiwgyCTInBnJdSPxuRGTCxg54a4ZUsFoiWCkcgOXr0kfLd4NY98gEoL790pxnE8O3GBKQCwpoO/uY3qFeecVC3ssM5GkD4wQZwAdHUaJF7++QtBgNs/EcyrGWBxA1f58N560FmK4M0DWeeJFH2jM66NuHo+m4RUqDo1D7f823JcAAP/js0uXYoIQMrpzeBWPGUPY56mem0kGyynbFJjSJIO8RTQnoR1P8uKeDbTWdsLjcmLeCd9uoMr+kzpOYlMhLbAQsoXPZT1Sv+Caor0jMeg64nK7PHZDvV5GJGBHxujpbE1/SyIGh5QFHxbX1GDeo5BxH49HaJNi4IoCsfI6einylmArHEEFIh5HvhDsSDuw== 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:(13230031)(39860400002)(366004)(136003)(346002)(396003)(376002)(230922051799003)(1800799012)(451199024)(64100799003)(186009)(36756003)(7336002)(7366002)(7276002)(52116002)(7406005)(7416002)(6506007)(38100700002)(6512007)(5660300002)(86362001)(83380400001)(38350700005)(41300700001)(2906002)(2616005)(478600001)(6486002)(26005)(1191002)(921011)(66476007)(66946007)(66556008)(54906003)(110136005)(8936002)(8676002)(316002)(4326008); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: IIR+kJby61AjRVgaRLyo7HldqKFrccmEJMPTrjIUIeKN6UhDZK/YCSF2av63FIrLiNdfUWaD+1/Q8TOwRsr2f8hVa0+sXKu2mTCAIOhBzp654ZG8pQGzDBiFYmHpZQXfpwjMZGF1MqiAqt4jwdIBWBU9pK6EsizEdfmPhqUbln4t2M78eWs6qfaK76B5BmaBibzz5Y35q/gbI0nbOdPcEYYlT6tT4lLKPZ3zHehp9lhMdqCR5T2XES2xUlZ6Hldq8Grp6EcfwvUhgGWYREE36yPULteuiuyDN6WCh7syW+mbQoTt4USddt7ayhSL/efqLFG54viENLCYWqoqjZ2vGWzdCpvZ0PsyX9doktaHUMFSJP8RnUWvttIlRhqPHx3b80f57sVS+LRii8xdgNNkKXa+Od/6xXkhgJInL4Vnx4Ls0fkCCwG9gSRDk+6h7iecu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5MZ5ANgRI9ssaZF/sKtVggabjNoXjPEDOHupH8f+eo1HLFwSrfkvWaT2FJdejeWnkmXPBRAbOyuC/1KDdbWali6vLHlP+7gIzJ7lpUk= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6397c347-a869-48f8-5488-08dc221a4d8c X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jan 2024 05:05:54.6322 (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: widI3GpgQi+ok65q0RZkevumvd++7JyzNRGVAH9CsxxT/GLMe8AQDClKK08OWlru4fIqEq7Of3NJ6nsSj8oZed4VHDEbmFVM3PcKABVH2xjweyasSX420PVEVM7+erz8 X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSZPR01MB8896 of_graph_get_next_endpoint() is now renamed to of_graph_get_next_device_endpoint(). Switch to it. Signed-off-by: Kuninori Morimoto --- drivers/staging/media/deprecated/atmel/atmel-sama5d2-isc.c | 2 +- drivers/staging/media/deprecated/atmel/atmel-sama7g5-isc.c | 2 +- drivers/staging/media/tegra-video/csi.c | 2 +- drivers/staging/media/tegra-video/vi.c | 2 +- drivers/staging/media/tegra-video/vip.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/media/deprecated/atmel/atmel-sama5d2-isc.c b/drivers/staging/media/deprecated/atmel/atmel-sama5d2-isc.c index 31b2b48085c5..bed11223e4be 100644 --- a/drivers/staging/media/deprecated/atmel/atmel-sama5d2-isc.c +++ b/drivers/staging/media/deprecated/atmel/atmel-sama5d2-isc.c @@ -343,7 +343,7 @@ static int isc_parse_dt(struct device *dev, struct isc_device *isc) while (1) { struct v4l2_fwnode_endpoint v4l2_epn = { .bus_type = 0 }; - epn = of_graph_get_next_endpoint(np, epn); + epn = of_graph_get_next_device_endpoint(np, epn); if (!epn) return 0; diff --git a/drivers/staging/media/deprecated/atmel/atmel-sama7g5-isc.c b/drivers/staging/media/deprecated/atmel/atmel-sama7g5-isc.c index 020034f631f5..e0dcec334ae2 100644 --- a/drivers/staging/media/deprecated/atmel/atmel-sama7g5-isc.c +++ b/drivers/staging/media/deprecated/atmel/atmel-sama7g5-isc.c @@ -329,7 +329,7 @@ static int xisc_parse_dt(struct device *dev, struct isc_device *isc) while (1) { struct v4l2_fwnode_endpoint v4l2_epn = { .bus_type = 0 }; - epn = of_graph_get_next_endpoint(np, epn); + epn = of_graph_get_next_device_endpoint(np, epn); if (!epn) return 0; diff --git a/drivers/staging/media/tegra-video/csi.c b/drivers/staging/media/tegra-video/csi.c index 9aa72863c213..2135dca9725e 100644 --- a/drivers/staging/media/tegra-video/csi.c +++ b/drivers/staging/media/tegra-video/csi.c @@ -571,7 +571,7 @@ static int tegra_csi_channels_alloc(struct tegra_csi *csi) goto err_node_put; } - num_pads = of_graph_get_endpoint_count(channel); + num_pads = of_graph_get_device_endpoint_count(channel); if (num_pads == TEGRA_CSI_PADS_NUM) { ret = tegra_csi_channel_alloc(csi, channel, portno, lanes, num_pads); diff --git a/drivers/staging/media/tegra-video/vi.c b/drivers/staging/media/tegra-video/vi.c index 94171e62dee9..de63721495ef 100644 --- a/drivers/staging/media/tegra-video/vi.c +++ b/drivers/staging/media/tegra-video/vi.c @@ -1704,7 +1704,7 @@ static int tegra_vi_graph_parse_one(struct tegra_vi_channel *chan, dev_dbg(vi->dev, "parsing node %pOF\n", to_of_node(fwnode)); /* parse all the remote entities and put them into the list */ - for_each_endpoint_of_node(to_of_node(fwnode), node) { + for_each_device_endpoint_of_node(to_of_node(fwnode), node) { ep = of_fwnode_handle(node); remote = fwnode_graph_get_remote_port_parent(ep); if (!remote) { diff --git a/drivers/staging/media/tegra-video/vip.c b/drivers/staging/media/tegra-video/vip.c index e95cc7bb190e..78b3cdf7ee29 100644 --- a/drivers/staging/media/tegra-video/vip.c +++ b/drivers/staging/media/tegra-video/vip.c @@ -137,7 +137,7 @@ static int tegra_vip_channel_of_parse(struct tegra_vip *vip) goto err_node_put; } - num_pads = of_graph_get_endpoint_count(np); + num_pads = of_graph_get_device_endpoint_count(np); if (num_pads != TEGRA_VIP_PADS_NUM) { err = -EINVAL; dev_err_probe(dev, err, "%pOF: need 2 pads, got %d\n", np, num_pads);