From patchwork Wed Jan 31 05:05:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13538638 Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2107.outbound.protection.outlook.com [40.107.113.107]) (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 6EE103DB9A; Wed, 31 Jan 2024 05:05:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.113.107 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706677541; cv=fail; b=sf3TpOBxYXp744p/cdWWPxF9Fok1o3315bi8N8yGlu1risrWR81k7bhaoIjbeO6mojwgR++/VY7thEgpCnreojyHZaTRXX9H8nUJERuWp1wx6a2RKG0QIkK5evBILdjyfW5kZ9xg0RMgyGveL03ZyCxbQL4Q4oQGPme4vJP/g80= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706677541; c=relaxed/simple; bh=k88IbZdePtX1fXkqXAVj+/09Rtj8F4d42NebZYuNO5A=; h=Message-ID:From:To:Cc:In-Reply-To:References:Subject:Content-Type: Date:MIME-Version; b=sa5F59PkpjTAxPlBxbLOssDmISTruPDrCYarGvmIvSQtSa/mdfmiZ2sc4LOMRdluRY4Dz9J10GxOL9P8FsahXY2Ze1xkDnhioQfbnBK538yfUuFdi84RI127Q1QqieOZOR+mVEOI0vTMfG0bbIO1eEmiSgR57ZRHFnr3YN817bI= 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=LM7kGOIQ; arc=fail smtp.client-ip=40.107.113.107 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="LM7kGOIQ" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JNXnCWw/KZeh4FMlDiTN7n99JsJS462NOEaPcwEcHkkBwWJoXZ67z3FL/GFDh93xwJkOedh8R/QrvTRDsSx4I/WK+ZKlJzMmV94ESQeXHSa6bu216T0LuO2fz1FD0Ic1uBpqMDzXJnvUwoZ7dLvXxWfgWsOmB2urxzsNTZnkKYtgbKbdA5sfQ8idhussYzYW+aApLvKG/4qa1wiBWbEFSBPDOoBCwQ0qKAqPSGPnFakEq6j3WPCnBb3iPV83ku+5afrsRtqBlqQVoJhZJvLLLbSlSe3OSRNt3l8U2kB0J6u0ZGL4Z4Ku1/Fa5+3xTJY41AmYcJJ2aK+TATyh69xRAA== 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=5WAnJ24PsVvP6yDM9wwJuQSBy/v2vUcMycCKnAJTUDU=; b=KEYS1CcqYEPknt+6/LfwvEg+upyvUELO6nNjb2ejlYEK7KsZj++H0GlvqqgNY88i14m2M9Sn2oeHpjeBHq4MRA4u/I5vRIgviC5+XUTMNIfuD4a2M7UDeLSZsLfEaLZ+XOerGJfHrWvA/c7N3Xgs2mOI88fe4D7KqUgpOf9GK53iGkKMohnjcnIybVBPjV+YK4lkQ8K/hbEGPqAmludXuJvBcamfQnv3RNUR+0GY4jj7FFa09DLNph0xx5n0F0HEVR5guH2MZeEFDefkWKlCB7S0r0t6NPsZRcp/cljT8r8p3i4nJtkXpB6boPtwRh2+AXChb1cgp3ufPzTfxdFW+g== 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=5WAnJ24PsVvP6yDM9wwJuQSBy/v2vUcMycCKnAJTUDU=; b=LM7kGOIQg/KjRGEJ1Agr+G+RuzypxM5KeNZmBDUXXiUjnY6Ej3N8pZYpjMjxnbhlRpvp/9MJWZVOizdmK7Nu6y9Y2psQcwMP6C6H/plDQ8hz9vE8shZZY2oW4NgOPn6hK86QUlQDDCOkwxHUDnkPbQsYZYjZ/quH/bwsWFjKehQ= 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 TYCPR01MB8341.jpnprd01.prod.outlook.com (2603:1096:400:15c::12) 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:35 +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:34 +0000 Message-ID: <87frye6qjl.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 06/24] media: platform: 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:34 +0000 X-ClientProxiedBy: TYCPR01CA0040.jpnprd01.prod.outlook.com (2603:1096:405:1::28) 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_|TYCPR01MB8341:EE_ X-MS-Office365-Filtering-Correlation-Id: 1dec2bca-e365-454d-9b6e-08dc221a41c2 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: QUvn6SPWD0U6jmZLRflWWbzGS3WYzMEscgSk/prUiIl+/3BK6vAwXYjtZsLeS/La1H2mIjdTqUptJlP6tPPnFB2axdcUI/xEV1v5hnCIhjgDbbx/8yqEwbInbB6rF0T0kzE0ZvUP884Wrj4N83R52e9nWN5owslEagdQU7kz+7kTgz+QMK3eZvdaFIzEr/HLJb9kSdm1K1XkaUsu1KRIjKBqAMoxxAObkZxS21Ia9Ouh9+/8IqRFb+NF5bbSaiMfprfaQHcVA1YNjqfgUiHZEWIF7Taf4LEg6VfabPYEOeLwZjKvd/xIXLmoaJG3iFHZUvbaP17G76YWdYN2nitNj2kaFQ3Ftx/nhBpZBKWk7ppRX7Yypd3T8/ny4xxhy0OiBZzRhv3b29lSDK8oMbWRHotBXsF2ogaTSbR/kNTnSC1FIpjVf7jLhXxrc2tBkhkjX1p7J3iS1Rva4LrOU8VfNj5hdLSj8Y28Ty4ONigM8h9tPvif0i+9GakiCDRBAjT9oftYb5486zGYNhKAA3KGrmu6maag4ZY6Hgxl1stB5YVRz3WH5xg4NaXhtxVmk5ntpeYojx+UY7hUba/vajxlgbh125ZpAbUqcg5Am93S6QbNtqVkAJpdEiXmkWixufveSQCgVIJBZolAJWcmFZW+bg== 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)(396003)(346002)(136003)(366004)(376002)(39860400002)(230922051799003)(186009)(451199024)(64100799003)(1800799012)(1191002)(66476007)(8936002)(4326008)(8676002)(7366002)(5660300002)(2906002)(7416002)(7276002)(86362001)(7406005)(110136005)(66946007)(7336002)(316002)(38350700005)(36756003)(54906003)(38100700002)(66556008)(478600001)(52116002)(6506007)(6512007)(6486002)(83380400001)(26005)(41300700001)(921011)(2616005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: T9GQln4JK00UCbrA9Me1cgMnw6SwZZQM8fbz+B8ASMf03RSztnF0jmLjhF1OYpiAVAhxZ24MPQYOGldIP5fWN/+cAGk2QwgrkyVtB44uNCo5Otwxhe3gSkpO4c1rTIUh+gxyT1WZ1okqxMXdJQKiH6W642IPa5umyPvPmxyvp3clvnemErJuIrzf517WATX5a80gnYiZA70RUNps3fPX0KojZFXWuUdVXX2R+dR3i8u47bkPO7pjWGLfaqVydFqxl2+vSsZhPnXNEJpbeihxLUHeUdFylVnMkOhHZ15+Qf4e97MUOLFke1TWpXyNGqptnbuTxYCI4muolrGv7eirtNVMngM+Z3DiZwVRNAYx0wx/Ram3ojKMPHo2WX+TXbCsBLS/oPCWq3vRH0N1Iq2Bp2jrVN+OpbM1EEF7+50Fao8gNtovU04qURqjdhmDsN9SK9sojiLn9bOUEtjV6S+6bXndFkELUdz4AceZ8S2TD6U0K80NFWPFsyuHIEpccxZnUqn/kyVeIpgZXW0YWj4pRYRZmT9bGZSxB7qIExnXvvwqnxi+F1QTlXSaNQOcQ8N5rhWF9TiWHap7AwtKlDRGRYs2N1aZmEHR1BuAnVxtQhmdtbKGDm1DX8cSon6ZaPpTWOMGeyq339m+HAUbx76DRgH1CPwol7xXD+VLXabFMtCFz/CPHHvCGCEY0pK8EFve52LOpesX6/GgwDi2tgebPSOso2jBHodgoTbPnMjqt0l3foxChhBphxggzoE2LMg5cqmGqcO4U3967J/Lax/SGdgMofqclBCLHq//xX9MOJPsULX6qsye5mGQK9uzyPyYkSL9p24+J3ga5KCmDRCwj9kcBQgQcKRUfwNb9MLSqRPhTvO2almiuVtZ6/hW7Netn06TmM+NddtiAZiqy0k+2rysHGnqjplGICHUaEaCsw8t+C5O5+yCOy1+fnV61w/r3APgXfM80gACEEzaPNmOibVCaD143dPXfA1vdH3I5y7jhDlTbY5KJQPtAhned5JHt9K/85BY8bJRNTzWTespQ/GwCqpupU6k2MNJeqa9OV6qXseoyCPfXcEvvWgvJasjzihwL47a3QLQ4Jz93MdHs54BfcIjFu7jYjV+oMxHkQCR48+fWs79w6Hdw6C769UXgXiZVAhgDOa9GXhGLU4y3TTyk8D97YrRRvREaBZ021K/u1NoljjQYE678VhKGuFfwXv2A+uwMaeBFsIm4snuZSHtwT2RVnLq1MaH7kCLHJndoAqjHp1GKTHcxwwg+DvMqBTwYcT2qqHOXy7Jo6zP4FmaVgRuSHS3+dfhz/0jqH33YrF5BqIlcu656Xax4Co6lIEfb6uPvJQwFM589a7J6jxj9BVBJdjHPo5IpPSHxUlRgP+Fj7cX0zKdQDYIz5hV4f14aDj+F7dj2dLzp67RaGBrAzOCUlQChvozo4++w3qKwqn6nCKW08HuFyrWzE855O/LrhlM7hQ7PktR/zVRLDSX6xsv3dqBxz5cpOLLxIswO3ewPKtgs6keyq2l2diQZ8VkMPRefxWAtYNsoZ1cN3ooJe22ARgWwIXZCbOuJR4jtqmxOPnfvM2E91BKWQnT1rQ0NHQg0nOqrjOkt3zF0hqX/mx2bf/xWZvC5BmIyoo= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1dec2bca-e365-454d-9b6e-08dc221a41c2 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:34.8891 (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: H6n3qgKx3gUYcXtjdsEX3+D7Sv16vC6scHfUd7hh1xpwZcdmxpoLUwmVZZUuRzytBAEpEAdp+9BYhDbGyv7/LqAzfQEpKB/exv5pksbqOdhwt+u29gOuDVNz2vUgA04d X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB8341 of_graph_get_next_endpoint() is now renamed to of_graph_get_next_device_endpoint(). Switch to it. Signed-off-by: Kuninori Morimoto --- drivers/media/platform/atmel/atmel-isi.c | 4 ++-- drivers/media/platform/intel/pxa_camera.c | 2 +- drivers/media/platform/microchip/microchip-sama5d2-isc.c | 2 +- drivers/media/platform/microchip/microchip-sama7g5-isc.c | 2 +- drivers/media/platform/qcom/camss/camss.c | 2 +- drivers/media/platform/renesas/renesas-ceu.c | 2 +- drivers/media/platform/samsung/exynos4-is/fimc-is.c | 2 +- drivers/media/platform/samsung/exynos4-is/mipi-csis.c | 2 +- drivers/media/platform/st/stm32/stm32-dcmi.c | 4 ++-- drivers/media/platform/ti/am437x/am437x-vpfe.c | 2 +- drivers/media/platform/ti/davinci/vpif.c | 3 +-- drivers/media/platform/ti/davinci/vpif_capture.c | 3 +-- drivers/media/platform/video-mux.c | 2 +- drivers/media/platform/xilinx/xilinx-vipp.c | 2 +- 14 files changed, 16 insertions(+), 18 deletions(-) diff --git a/drivers/media/platform/atmel/atmel-isi.c b/drivers/media/platform/atmel/atmel-isi.c index 4046212d48b4..4317750d05ad 100644 --- a/drivers/media/platform/atmel/atmel-isi.c +++ b/drivers/media/platform/atmel/atmel-isi.c @@ -831,7 +831,7 @@ static int atmel_isi_parse_dt(struct atmel_isi *isi, isi->pdata.full_mode = 1; isi->pdata.frate = ISI_CFG1_FRATE_CAPTURE_ALL; - np = of_graph_get_next_endpoint(np, NULL); + np = of_graph_get_next_device_endpoint(np, NULL); if (!np) { dev_err(&pdev->dev, "Could not find the endpoint\n"); return -EINVAL; @@ -1155,7 +1155,7 @@ static int isi_graph_init(struct atmel_isi *isi) struct device_node *ep; int ret; - ep = of_graph_get_next_endpoint(isi->dev->of_node, NULL); + ep = of_graph_get_next_device_endpoint(isi->dev->of_node, NULL); if (!ep) return -EINVAL; diff --git a/drivers/media/platform/intel/pxa_camera.c b/drivers/media/platform/intel/pxa_camera.c index 59b89e421dc2..f2175c03502b 100644 --- a/drivers/media/platform/intel/pxa_camera.c +++ b/drivers/media/platform/intel/pxa_camera.c @@ -2207,7 +2207,7 @@ static int pxa_camera_pdata_from_dt(struct device *dev, pcdev->mclk = mclk_rate; } - np = of_graph_get_next_endpoint(np, NULL); + np = of_graph_get_next_device_endpoint(np, NULL); if (!np) { dev_err(dev, "could not find endpoint\n"); return -EINVAL; diff --git a/drivers/media/platform/microchip/microchip-sama5d2-isc.c b/drivers/media/platform/microchip/microchip-sama5d2-isc.c index 5ac149cf3647..201049c047b0 100644 --- a/drivers/media/platform/microchip/microchip-sama5d2-isc.c +++ b/drivers/media/platform/microchip/microchip-sama5d2-isc.c @@ -363,7 +363,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/media/platform/microchip/microchip-sama7g5-isc.c b/drivers/media/platform/microchip/microchip-sama7g5-isc.c index 73445f33d26b..b617a9bcd398 100644 --- a/drivers/media/platform/microchip/microchip-sama7g5-isc.c +++ b/drivers/media/platform/microchip/microchip-sama7g5-isc.c @@ -349,7 +349,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/media/platform/qcom/camss/camss.c b/drivers/media/platform/qcom/camss/camss.c index 8e78dd8d5961..cbb6f88cfe4a 100644 --- a/drivers/media/platform/qcom/camss/camss.c +++ b/drivers/media/platform/qcom/camss/camss.c @@ -1136,7 +1136,7 @@ static int camss_of_parse_ports(struct camss *camss) struct device_node *remote = NULL; int ret, num_subdevs = 0; - for_each_endpoint_of_node(dev->of_node, node) { + for_each_device_endpoint_of_node(dev->of_node, node) { struct camss_async_subdev *csd; if (!of_device_is_available(node)) diff --git a/drivers/media/platform/renesas/renesas-ceu.c b/drivers/media/platform/renesas/renesas-ceu.c index 2562b30acfb9..929d17de4ac9 100644 --- a/drivers/media/platform/renesas/renesas-ceu.c +++ b/drivers/media/platform/renesas/renesas-ceu.c @@ -1526,7 +1526,7 @@ static int ceu_parse_dt(struct ceu_device *ceudev) int num_ep; int ret; - num_ep = of_graph_get_endpoint_count(of); + num_ep = of_graph_get_device_endpoint_count(of); if (!num_ep) return -ENODEV; diff --git a/drivers/media/platform/samsung/exynos4-is/fimc-is.c b/drivers/media/platform/samsung/exynos4-is/fimc-is.c index a08c87ef6e2d..5ab0399b7718 100644 --- a/drivers/media/platform/samsung/exynos4-is/fimc-is.c +++ b/drivers/media/platform/samsung/exynos4-is/fimc-is.c @@ -175,7 +175,7 @@ static int fimc_is_parse_sensor_config(struct fimc_is *is, unsigned int index, return -EINVAL; } - ep = of_graph_get_next_endpoint(node, NULL); + ep = of_graph_get_next_device_endpoint(node, NULL); if (!ep) return -ENXIO; diff --git a/drivers/media/platform/samsung/exynos4-is/mipi-csis.c b/drivers/media/platform/samsung/exynos4-is/mipi-csis.c index 686ca8753ba2..a332b4bd76f2 100644 --- a/drivers/media/platform/samsung/exynos4-is/mipi-csis.c +++ b/drivers/media/platform/samsung/exynos4-is/mipi-csis.c @@ -728,7 +728,7 @@ static int s5pcsis_parse_dt(struct platform_device *pdev, &state->max_num_lanes)) return -EINVAL; - node = of_graph_get_next_endpoint(node, NULL); + node = of_graph_get_next_device_endpoint(node, NULL); if (!node) { dev_err(&pdev->dev, "No port node at %pOF\n", pdev->dev.of_node); diff --git a/drivers/media/platform/st/stm32/stm32-dcmi.c b/drivers/media/platform/st/stm32/stm32-dcmi.c index 8cb4fdcae137..320101f4ad40 100644 --- a/drivers/media/platform/st/stm32/stm32-dcmi.c +++ b/drivers/media/platform/st/stm32/stm32-dcmi.c @@ -1856,7 +1856,7 @@ static int dcmi_graph_init(struct stm32_dcmi *dcmi) struct device_node *ep; int ret; - ep = of_graph_get_next_endpoint(dcmi->dev->of_node, NULL); + ep = of_graph_get_next_device_endpoint(dcmi->dev->of_node, NULL); if (!ep) { dev_err(dcmi->dev, "Failed to get next endpoint\n"); return -EINVAL; @@ -1915,7 +1915,7 @@ static int dcmi_probe(struct platform_device *pdev) "Could not get reset control\n"); /* Get bus characteristics from devicetree */ - np = of_graph_get_next_endpoint(np, NULL); + np = of_graph_get_next_device_endpoint(np, NULL); if (!np) { dev_err(&pdev->dev, "Could not find the endpoint\n"); return -ENODEV; diff --git a/drivers/media/platform/ti/am437x/am437x-vpfe.c b/drivers/media/platform/ti/am437x/am437x-vpfe.c index 5fa2ea9025d9..46876865ec6a 100644 --- a/drivers/media/platform/ti/am437x/am437x-vpfe.c +++ b/drivers/media/platform/ti/am437x/am437x-vpfe.c @@ -2309,7 +2309,7 @@ vpfe_get_pdata(struct vpfe_device *vpfe) struct v4l2_fwnode_endpoint bus_cfg = { .bus_type = 0 }; struct device_node *rem; - endpoint = of_graph_get_next_endpoint(dev->of_node, endpoint); + endpoint = of_graph_get_next_device_endpoint(dev->of_node, endpoint); if (!endpoint) break; diff --git a/drivers/media/platform/ti/davinci/vpif.c b/drivers/media/platform/ti/davinci/vpif.c index 63cdfed37bc9..021ca79e832b 100644 --- a/drivers/media/platform/ti/davinci/vpif.c +++ b/drivers/media/platform/ti/davinci/vpif.c @@ -465,8 +465,7 @@ static int vpif_probe(struct platform_device *pdev) * so their devices need to be registered manually here * for their legacy platform_drivers to work. */ - endpoint = of_graph_get_next_endpoint(pdev->dev.of_node, - endpoint); + endpoint = of_graph_get_next_device_endpoint(pdev->dev.of_node, endpoint); if (!endpoint) return 0; of_node_put(endpoint); diff --git a/drivers/media/platform/ti/davinci/vpif_capture.c b/drivers/media/platform/ti/davinci/vpif_capture.c index 99fae8830c41..805c313b41dc 100644 --- a/drivers/media/platform/ti/davinci/vpif_capture.c +++ b/drivers/media/platform/ti/davinci/vpif_capture.c @@ -1521,8 +1521,7 @@ vpif_capture_get_pdata(struct platform_device *pdev, unsigned int flags; int err; - endpoint = of_graph_get_next_endpoint(pdev->dev.of_node, - endpoint); + endpoint = of_graph_get_next_device_endpoint(pdev->dev.of_node, endpoint); if (!endpoint) break; diff --git a/drivers/media/platform/video-mux.c b/drivers/media/platform/video-mux.c index 5de6b6694f53..61d84ade7155 100644 --- a/drivers/media/platform/video-mux.c +++ b/drivers/media/platform/video-mux.c @@ -408,7 +408,7 @@ static int video_mux_probe(struct platform_device *pdev) * The largest numbered port is the output port. It determines * total number of pads. */ - for_each_endpoint_of_node(np, ep) { + for_each_device_endpoint_of_node(np, ep) { struct of_endpoint endpoint; of_graph_parse_endpoint(ep, &endpoint); diff --git a/drivers/media/platform/xilinx/xilinx-vipp.c b/drivers/media/platform/xilinx/xilinx-vipp.c index 996684a73038..9230931d6d7a 100644 --- a/drivers/media/platform/xilinx/xilinx-vipp.c +++ b/drivers/media/platform/xilinx/xilinx-vipp.c @@ -207,7 +207,7 @@ static int xvip_graph_build_dma(struct xvip_composite_device *xdev) while (1) { /* Get the next endpoint and parse its link. */ - ep = of_graph_get_next_endpoint(node, ep); + ep = of_graph_get_next_device_endpoint(node, ep); if (ep == NULL) break;