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: 13699814 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DC5D8C27C53 for ; Mon, 17 Jun 2024 01:00:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Date: Content-Type:References:In-Reply-To:To:Subject:From:Message-ID:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=MsagpA/5pNrylws56rjc/fEA7kqQPMX4DxQt4ow3FTA=; b=H2sh1bsXR+7+DR7hXzpDJmTF7H 987ckih5tG2VWMifi+ad+jblCmRlSMRPPw1VybqFWbe1g+nYEszU7DUd45Venpn6u7x4657bnr6TI W7M6wZCF1VU8fsZcw6u3p6y++J6PH0OJGYJ/CJU5WXGS43OazebJa5bSTl86jdujT7pd1KE8A9Fn3 LxjEGBI0DhzOSxF184OspcH+hUUr5p6nqeOjy/gokKks+GFvs4zHs/FRQy24KSnZv/w0J4ZKNNcHT W0wOj1VjfOOW2kBLryB2JxvZVXZSlW3+pjnFKVKlI2V0I58oU+8Gi/cLZmL1h0lHWMzZKIIH+VSdx M1LRHWYA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJ0jN-00000008dsZ-0g1g; Mon, 17 Jun 2024 01:00:21 +0000 Received: from mail-os0jpn01on20604.outbound.protection.outlook.com ([2a01:111:f403:201a::604] helo=JPN01-OS0-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJ0io-00000008dWp-19r3 for linux-arm-kernel@lists.infradead.org; Mon, 17 Jun 2024 00:59:49 +0000 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) 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+qqwEHhXnWAXvgrNZQCNyZXXmisyrqt2NV29jzCHtX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Iuh/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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240616_175946_491513_0099E7D9 X-CRM114-Status: UNSURE ( 9.74 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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);