From patchwork Wed Jan 31 05:07:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13538681 Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on2105.outbound.protection.outlook.com [40.107.114.105]) (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 78B383D546; Wed, 31 Jan 2024 05:08:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.114.105 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706677685; cv=fail; b=e8TYP21rAS6sn35XQzG8VVRBjkmpSmfhM1TznPdWkKXWuqNkRUdMUw+N7+6HfJyPGx5p++32Hi5SUdsxA41nyFvNOqjR7tcG9t9IE9tPb/BnrJHCnUGP7G6gC7Qg75bCfdWW7AtJHhR25peNz3ZsP5U2Fjq8NoKMJP6FhnrDlNo= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706677685; c=relaxed/simple; bh=4uKbACxd6dp/Vurl/vtGW9I/Qwylr693RyILDNVLMsw=; h=Message-ID:From:To:Cc:In-Reply-To:References:Subject:Content-Type: Date:MIME-Version; b=bwYVwPhp7w3T+m152I42kQRLesl/mN/qEK9GlxrHUIAXE9lQu0/tAZNRk/GJC+3DNLIgfNdKDyo3xLd5eVOo6p3OY/ZKjhz8hDBAEpw5dHVi/PgPyTiiqEWu3kOzzMU52kEp0ciPIgz/F/pPwwa3hAqCLBiChNmxebyP452CpWM= 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=erSIDpDh; arc=fail smtp.client-ip=40.107.114.105 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="erSIDpDh" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mIUQxooz/0phICHf/CAgbX2IdEZs6wuahoLZ41iS6hmwRSLb4+I9LQNuTx1btX4Y8U57t+3YvQXPGOGZxCFrkHrK4TySHRsAfVzWblPIh1bWh43cYPyeOqb4inQ5eIb8QqvHZmufaInpV1y5g57KnxsjO/aiLOF21Lqkn1XsxI8BPjn/yQpspKFMx2VUj5KzJ4Som35aPeBae1WcCM7Sl89f+AWZF/yYMl0YBnF/i7PYTTl/caU5Oi4yVhIqBhqFzBr31jtKn7iHcah7cjQXFWP1SAfTLpEuYcc/rWBKBqkDb5GzWej0dLj4qnXX/oBik5VDTaQy7Zns7kum6emZxg== 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=TyAWeDQtzFwmopVZQNQsQtx3+kvKybMD30VLEmXTtZc=; b=ggh95ulVgMK3NEiM5IxaBaxTWp0sAWHt1Z9AC1i4tebwlA2xZIXai3pSAbc9p5w8iTYJmITvuOI81kU0IsyQps96hlOdnBJqoJGPQd+H2Yr3PSD0Q6HRd75V4xX8ff94cyIi6rC1kro4hvfX5zinG7lN/ZPjIrX8yKxOchrVgwvKPaRiHsOr89v25vETZ4j+8O8Ga2YRDCy9N8/uXKNp8W6eEYo2sGnzjRFLHzH11yL1M5qUBT56aXKevSbbKikk2vT59GHYYqGaknk6V+iG8Skk/6JQtnA0qZBxrzrfsKBHAhkDASmDfDmzsOpgvk/BrST3J2kyYM/IyqNbPbNwPg== 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=TyAWeDQtzFwmopVZQNQsQtx3+kvKybMD30VLEmXTtZc=; b=erSIDpDh2nK3gD1WZltk0TvCOOvKYCwVSANi1MxKqUTVK8jKVpkQ4Y51+bXu/Px3y9ocuR/A6n+o4zR1TMPS30+jYvawIaDT4hd1uCF1es4aY+b+GMsHVrYI7LO2v+Af28iMl5ubB29WtWwC95qt3wVbjmYRW83e8t/6lTCpDu4= 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 OS3PR01MB9898.jpnprd01.prod.outlook.com (2603:1096:604:1ee::5) 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:07:59 +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:07:59 +0000 Message-ID: <87plxi5bv5.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 24/24] fbdev: omapfb: 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:07:58 +0000 X-ClientProxiedBy: TYCPR01CA0173.jpnprd01.prod.outlook.com (2603:1096:400:2b2::11) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OS3PR01MB9898:EE_ X-MS-Office365-Filtering-Correlation-Id: f15ae8b8-e42e-40b1-c384-08dc221a97ef 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: J0giXZWzRFJLq+uyPUeyKckz7wym2Ah95d74QE2lMbvj0og8O3SumsBQsjBvyGu00G0pmc+NrEHf8sTet5IfLvD6pzFLMxRbV8NUqli80H2g8FCcFzNBT+1bngsAtDiEqGGsGADBekPMcDptY8mgnYFRdFPCc73xfelbniqDCIQyFZlGgKV0/8QgIEes26Evel9mhftUmZaQhTzTl4JiB/sD38iy7/j4g8RSEjWx4JR5bMzD+3JcLfGKUJw8dJTvLYiisQmKKlxuRyane1GKLyVyOEf9FvQLsQstHvP1vZeeOWhjYY5scEf44UiSFsbIG3vPgcd9lvrvyczssfVjj9qK4m/VMmyrO/g89QoGvwMNUUlyYqnho/g0yyBsTM3OjTff/LMY6G+ZYBuWnIIAhk2NjmitJSPuJVbQNfJhCzr+Zwi2pPj4ywcp6RV4PyvYy1LC+hcjJHIYITFRwjr3Jj8eh206j6EGyVep3wxVVrZzPPQt8RAjVhMLS1ZmGacwq0UQ+Y46eEbjOXiJQn7JjxEc1aWhliSLEU5WXzbV4hNK92JjLUBv8pDCsjNECBgzZDrf2kov/mVqr6VL0wfhd7ba8xDBpF9MmnF4VLn8owlM9sNNu9Ozqz3CmzKKhJf/TP2HRhuiyZA8yKaaAlr930/rmQ8krQhi/EPYv0+HQTU= 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)(39860400002)(376002)(346002)(136003)(366004)(230922051799003)(451199024)(186009)(64100799003)(1800799012)(1191002)(6486002)(38100700002)(2906002)(86362001)(41300700001)(36756003)(7276002)(7336002)(7366002)(7406005)(316002)(66946007)(6506007)(6512007)(66556008)(66476007)(54906003)(52116002)(110136005)(478600001)(7416002)(83380400001)(5660300002)(8936002)(26005)(8676002)(4326008)(2616005)(38350700005)(921011)(21314003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: GPCz3s2RqpvhCRf59GReNT+2Fc0mi86ShKZRPVe8DY3gahiPN0sLxpaGKVtTpUQTUxnTIvQNJCCMLeCcgpb3jI6zwXjKHte8QEZOPLjTqhzxoxB0xIFAS/qconUCzv0nZdZGJB7YabKmVHFTq+y9g4H1WMfQMuFE/GK/Ji4EUapptOUt/XvIJa3j22gwYaYUnS9h51i9NPjkRJ8dmvi2s6WeSTCZBUmJjcLOdLvX4Le5ra1mYm8lu1QKM+5onPul01OlTaKtW50qUj17rSvLGsmECNKXptdaKOlqipbm8Rul/7YyxSkfzmr5iB1i5fuheKJzDlauWkYB/+7EwRNhjcj3NvLmt5TCKrxwW8mbWKdnkEh0X3133q0p/xwESSNprw9m8vSPEjYPz2A7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H9Cl0vBvJWrDhWmZgHuWKLZsI7YCH3wdUIxxyLph71OmpJkYD2OVD7fT5cAcym35FG6axHWCIgEHOQoAUV4prIso3QWLW9xaReeL2qOUSCpunTz0IHndLgPL/X/zUQLuEdPdEfDZOg58qTnKE15boGOQW4J9U= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: f15ae8b8-e42e-40b1-c384-08dc221a97ef 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:07:59.4992 (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: JNhtL0A1owiOuZG6CVniNsAHP06lnAgzqqyxhI8jCRUV6IWvhRSGO36+VstHI/Y78k/KxBCjJ76umLy9QmXp09dXnVHPoK8F5t8bgQar6iWSh7cVQw6mcBIen+PpUfzw X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3PR01MB9898 omapdss_of_get_first_endpoint() is same as of_graph_get_next_device_endpoint(xxx, NULL). Replcase it. Signed-off-by: Kuninori Morimoto --- drivers/video/fbdev/omap2/omapfb/dss/dsi.c | 3 ++- drivers/video/fbdev/omap2/omapfb/dss/dss-of.c | 20 +------------------ drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c | 3 ++- drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c | 3 ++- drivers/video/fbdev/omap2/omapfb/dss/venc.c | 3 ++- include/video/omapfb_dss.h | 3 --- 6 files changed, 9 insertions(+), 26 deletions(-) diff --git a/drivers/video/fbdev/omap2/omapfb/dss/dsi.c b/drivers/video/fbdev/omap2/omapfb/dss/dsi.c index b7eb17a16ec4..4d503aa824d3 100644 --- a/drivers/video/fbdev/omap2/omapfb/dss/dsi.c +++ b/drivers/video/fbdev/omap2/omapfb/dss/dsi.c @@ -28,6 +28,7 @@ #include #include #include +#include #include #include @@ -5079,7 +5080,7 @@ static int dsi_probe_of(struct platform_device *pdev) struct device_node *ep; struct omap_dsi_pin_config pin_cfg; - ep = omapdss_of_get_first_endpoint(node); + ep = of_graph_get_next_device_endpoint(node, NULL); if (!ep) return 0; diff --git a/drivers/video/fbdev/omap2/omapfb/dss/dss-of.c b/drivers/video/fbdev/omap2/omapfb/dss/dss-of.c index 2ba2554055fc..130bbe4813be 100644 --- a/drivers/video/fbdev/omap2/omapfb/dss/dss-of.c +++ b/drivers/video/fbdev/omap2/omapfb/dss/dss-of.c @@ -51,24 +51,6 @@ u32 dss_of_port_get_port_number(struct device_node *port) return reg; } -struct device_node * -omapdss_of_get_first_endpoint(const struct device_node *parent) -{ - struct device_node *port, *ep; - - port = of_graph_get_next_port(parent, NULL); - - if (!port) - return NULL; - - ep = of_graph_get_next_endpoint(port, NULL); - - of_node_put(port); - - return ep; -} -EXPORT_SYMBOL_GPL(omapdss_of_get_first_endpoint); - struct omap_dss_device * omapdss_of_find_source_for_first_ep(struct device_node *node) { @@ -76,7 +58,7 @@ omapdss_of_find_source_for_first_ep(struct device_node *node) struct device_node *src_port; struct omap_dss_device *src; - ep = omapdss_of_get_first_endpoint(node); + ep = of_graph_get_next_device_endpoint(node, NULL); if (!ep) return ERR_PTR(-EINVAL); diff --git a/drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c b/drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c index f05b4e35a842..3a7d612c8feb 100644 --- a/drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c +++ b/drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include