From patchwork Tue May 28 23:55:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 800046 Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on2076.outbound.protection.outlook.com [40.107.114.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 A60BF140374; Tue, 28 May 2024 23:56:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.114.76 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716940564; cv=fail; b=KbQoCxL8Mwdj+k4if2AizXptPNNEv27e5j6T4GhxtzsysRJ5Euk6N/3B+TpmBIHClee3Y9y1cWsKvhtm0UU2KZbdwQPU4aHuhQJvLHJdcuG/LKxgFt8M+KJ0SM6lh2foOSuRqBhE1ByY3eyVd7+MCiFC/LH1kzUoaE8ejDmfUD8= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716940564; c=relaxed/simple; bh=XlFL4bPKfuey0W8IDK/QlVM4Y/XoWN5SM5djz+7V0H8=; h=Message-ID:From:Subject:To:In-Reply-To:References:Content-Type: Date:MIME-Version; b=fFFwsKBiEV+eC4rQnPHd1cCPPgh0/5Pmw9HMv4GGOxDMajyW3qeAkvlMK7MQNGawdWQXh9a2+wwJMP1x8NZUbhDbhk8wTOfuwRRXfil+ZRw+zzNCKHlqAz7R4cG6OpRkkHchz7lXsIYZmWZGA0fyBzjadIFN/j1U0KB5LXi3bcI= 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=IG7MjNCp; arc=fail smtp.client-ip=40.107.114.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="IG7MjNCp" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=H8gaf1zmgsbGcuWfRKmV5O7ZBhRdaC5HU+lFSwNzMJq9ZoVyUFe5lN1tIaRuMFlqqGAMN6WYuHrrg/pvn0s13BhDqeFfuBBaZlgXt9C4CT3obP23Ybmd6RyVmItrQdgZ2MB7hwwN7Xz8anwUchC1doggKdnjEGTyAaH8TOPUosIRO8UnH0CJEQP1fydfn73yvyZLbts3VlvNhP/6HHKzn3rIfaOpmxP7yNdxgX4tb4qsLaVV0UGJWb79+n9wjRlUXUpRRa0QPLYHu6rJFQfpfXceAMehzW/kXDORREjmW5aZmd9RX23yPxjUNqq0ZPlDdC/UUkP0pELR+3se00joeg== 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=N9l3BMOkzLVKH3aXnBvHDmIPilm2JHV1P4tJXZpRq9U=; b=X4VYZgzRIzCCkcWu3Da3GurPPRdNJOWID5BUlD8P5Kwv7Fn2ZmRihro1nKUcKDqjyQXXR5Gop8ofldm2qUDQwMtai93I326UtFaVgaerdeAUbBcXf/pGkg3193bDTk0yYoP4kOUZ01oOznajCOntpVuLzJh97Guj7p0DAGSQkjh+K+gwu2kJ4yMyYAkKTctf0ZTruDPgMPnKdrs9+483Uqdn4EsH2I68LRFYPB7u1CWRF80X9F82QwQYdTNNTPt8c3veTCEbzV71lTUohGyEBoH96zr5dJseB+IfbEullcHgBoc1aFgvZogLZlKNJJRCkO3CsbaP+n7em+1IBCD3ZQ== 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=N9l3BMOkzLVKH3aXnBvHDmIPilm2JHV1P4tJXZpRq9U=; b=IG7MjNCpMmQ7/WckjygWexydWNp7Koj1m/+1047bM1WT+VdJBlb82Kq9z+cOOqjx+giz947gMPqPTlkEIDZw0F2bNGAGgjkB0f037iatjWvAO35WFdbd+93/g7Nl4hRKU/pAAfHP/4iW1Q2FwL+pZiR/SAuVAUad5mLOw3C/Vsc= 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 TYCPR01MB11224.jpnprd01.prod.outlook.com (2603:1096:400:3bf::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.17; Tue, 28 May 2024 23:56:00 +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.7611.030; Tue, 28 May 2024 23:56:00 +0000 Message-ID: <877cfd4hkg.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v2 resend 8/8] fbdev: omapfb: use of_graph_get_remote_port() User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: , Krzysztof Kozlowski , 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-staging@lists.linux.dev In-Reply-To: <87ikyx4hm1.wl-kuninori.morimoto.gx@renesas.com> References: <87ikyx4hm1.wl-kuninori.morimoto.gx@renesas.com> Date: Tue, 28 May 2024 23:55:59 +0000 X-ClientProxiedBy: TYXPR01CA0058.jpnprd01.prod.outlook.com (2603:1096:403:a::28) 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_|TYCPR01MB11224:EE_ X-MS-Office365-Filtering-Correlation-Id: aa8c8ded-e967-483f-10ce-08dc7f71b97c 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:13230031|52116005|1800799015|7416005|376005|366007|38350700005|921011; X-Microsoft-Antispam-Message-Info: GYPvpjoCk5H7NGAPAuqQdShNYtV4f6IJZ59tBSTG0BfNjq8WDnIcibcWUtDUZCEy0y6SwKVvLMn//equYm/hpCkT54vh+PcHAZx/UcwyiNnOdpur27M71l0dK9s2/oWrj+td73tW8j+S7Tp2Wi9q5w59bCPkpHBEqT3s0c8O7w6dF11DrAt4wZymBL50lyrSpN/qE8vAD7jQ2EpuhpmFhUIa5i40ECXgCNGiI55AuEyMcLbRgNET3qkAbzGKrU6jHqu7MK4tUAM3/1VHU9YR1DH5fZEDppr19i696nvBQR5Oco62vFdD9/URUILf33IOPBCfP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en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:TYCPR01MB10914.jpnprd01.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(52116005)(1800799015)(7416005)(376005)(366007)(38350700005)(921011); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: n4lJh6tRnL8OeUwbDoIJUPiu3h4u7O9V7WdK/9jnokUJcmbgUUqPXfUZI1FeZ4Rw7PhmsJqrkbQ9/gJ042T4VSx5BIWobP/QLNuEOIat1amEc5CGVBrboDHmddUk2ZCb6i1OKTtR0Rd6NOjZVneDCNLw+Ge6/XC0Wqiv5OZzOp2Z6rzqEjQLew6A3H7TGOQSqsMuNAbkaM5DodccPfHXtcxOypBqTPSWvhmG2xOGXIFAzJKlb2QoJhCClU97HjRPyC5pQPEGVNPCyyhYFzh0jU01c2v3wk4wKN06UEApBYQVfB2zlXBqleFgiDXZHxqlOT1ewXMgLUi6n+j2av6Kf+6hjzCISDJKP88wQvtAWhZ+ky728r2jRtApTRhVECV2ZNmX8yMEvbJ4+K5VCtA7Yv71NGCY4yZ85ZtpuWyIjTE8NAG7W7K4P2m5JCbtubo0ZzDj5aMLDniJZSjF0eCo0mah1vN/u7El6RvsFmFcSnwVSmhlW6zkeZQclFVPg8KL4RpQUyiYoq5HOLvB9xJqe2MAC/3nmXD66Ocn1hmMV3dRL8JOcSe5kjMQE895bmd7cDNiQ6xXOugLQMd4rNe31nqa4y8Ma1gA9m5pvVbRZSYJDfzlmQXOQ+ZBvnPB7m1UGWfvlFIxtuqQd7WPGboqAmPx9FCvhfLZZcjaWbuxfD2cfIYfg34N/TUpDNDS6uV8PcwqRwhc49UU3x6h+GyVV1P5kRjwTA+i0t3Ge/uU+djXw8wTSEVRQppKVbcXVjPW2bFV6Q6cO0gATCUQnqbDbq39FREMSl7rgmya4gMEbYOqzYAR71u0GpdJ9+Symm7kQ/JHey4xq43U/4ljEVqYJ+ombNL4/MTeITf7o/uIy2DuhqthWEuIawkXK8jr7a+CmQ/gRvw4iZfZDk+Y8pzEOavICTL3H5ukrN/NGXrAg4CRae2nWy3yHrVzXetNdLA9mxf/nU/JjHQmyfSOeiW8pXVws2EKRWdCXlgeUbglOLB3PIXhFTAI8TrNqtjnDVJP4QnJxtHDdpbO1b2mS6vLRS2SJQhV052vIsmnOVh2L7N0UtKy4A/pJWM0xo5GkdGpBc/kDAUcFdG+OneaXZun6IRtk+6+9/lKCHpPALTpx9fF2YUCn6Jxvh1lJayWwwNncb9ZV9F75WVa0EHdCmuB4KmWtZ+DOrEJIoe/1Uear9WFWL8FQAT2xFKarE3ISavOhXlaTsdgsKEMEytmZ63ARy+1m9M1tMRY9XEfJwjAUlc9J8B/KdAx0lghLPmg2M9ThwLiPuHJtqxYkQfiiC+tRc72nllGTjtKdnmPqKkizymdjrbfgAClIu9T+eUPv/WwCKKL1p1JrX4UI6qRVOb6nd4oKslcpCr1SiZDBsMdl1cteNmAnb4vQufu+wpzFEvNfx0UgnTY7mBl5xdjzPBhVTv0p2Nxr7HsjwalKsxmtKFTdNvNw8jSwxw8dIud9NOoHxYJo+SjwnTozzWDLChn++iycz3hxXax+iU1f3w8CCo3LUEQGayQOyOs0VXPkXc+QXaX2C/cfvZRVywTFviKT3Gcgz0hqmQC7rIgQd1iZUVbzXKIv43TobBp+MoI37udfk7qf5yF3vtLWxcldFNBlGyDknA6PFwuWcWbJ8kB61c= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: aa8c8ded-e967-483f-10ce-08dc7f71b97c X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 May 2024 23:56:00.0554 (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: K+oiRyB4aMi9pB6V1Gdj81IY04GmhQ5muy5IC+GkpONhd+GqiwC4N6ztGuCgQH2RY5ONVmUgRVFuIAYEsVgr7Ll/HrU6jbewFdHUb6KIfUJdV3Lu/rIHP/Z5/6Y9dLGi X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB11224 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);