From patchwork Wed Sep 4 06:11:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13789783 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 CE24CCD37AE for ; Wed, 4 Sep 2024 06:11:49 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5A4D910E641; Wed, 4 Sep 2024 06:11:48 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=renesas.com header.i=@renesas.com header.b="NQmOPv8s"; dkim-atps=neutral Received: from outbound.mail.protection.outlook.com (mail-japaneastazon11010010.outbound.protection.outlook.com [52.101.229.10]) by gabe.freedesktop.org (Postfix) with ESMTPS id EF7FE10E641 for ; Wed, 4 Sep 2024 06:11:45 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=COOvPaZj63/L+oFB9IIm+L0l0uIb2sm9Wwoi96f5d9OTjapnTtZ8Z7zaryPhGUfYgtRuDJ9JIRrLLNwkuM/pXle8wpDBfS8TB3Mfk7gour9c25pPeXttAq8xZ0J+jgbQjdQWVy0rz84rDqi22CpTQzVBKhcRnZ9w0WFsZo5nnZX+OkknBNCM7La79xX1VzkCEACCkj+9SMVbRHyNyKCJR7FKeVQX6Ki0rIRU/Adfvhi5dw1QzgP5b/8vYA82wC03SY2rznkvV/q/z8EzKnI0Quv8X15uew8O5ItwzPHQLV8IhlZNMnk4OPHk3UOEWWabGlZkaVK46MxifqttggrzQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=1UeslM4FQH6N1O2L6SqbvVyNONUE0o4X2TQYeq8tCfA=; b=QEy3pLrC5MwzdAgjOG7UKjmDrD4haZtJYEgNl1zvOFDQqQeRjdQWQHyfVNoCDsUDq+ko6X7ZzzR9ToLY30xrcTh0dMLfgx5xTfoH4/Rqagbp9CZsobh/np4NP12iK05YXG1gVXq05GdF4g73mUbcaL5LQrFRUtqSvLWTfoKzfREzFtO27mVjuCQlq3I8cQr/ENb4Jh3AiuWv3J8qFT2nF4hRjkiW+c/H3RlRZii9vjCD3731o+uwnXoojEJ1a3BWyCdEEBd+ckd5gngKNwaEiIAerxM2OFrCU3oKzki4oLFNm18irK/lCgr/eNUCiwXV4+6BbhAvHKXn+IS46rln0A== 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=1UeslM4FQH6N1O2L6SqbvVyNONUE0o4X2TQYeq8tCfA=; b=NQmOPv8s9IRfqgwG99WcgnnEFgsCFBx857iIMUNytImWGxafUaNr9aaWsqS+14gJqfVTPPZjyFxenaAzXFhRskPckKJ+6hiS4RXryiai44Lb9L2RphZP5WAoGUlfbP91xXAwDCqwxqBKJ7KFMrzigTqtrkwKQw4emiKo2/D7raY= 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 OS3PR01MB7309.jpnprd01.prod.outlook.com (2603:1096:604:11e::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.27; Wed, 4 Sep 2024 06:11: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%5]) with mapi id 15.20.7918.024; Wed, 4 Sep 2024 06:11:40 +0000 Message-ID: <87h6aw6j8j.wl-kuninori.morimoto.gx@renesas.com> To: Daniel Vetter , David Airlie , Helge Deller , Jaroslav Kysela , Laurent Pinchart , Liam Girdwood , Maarten Lankhorst , Mark Brown , Mauro Carvalho Chehab , Maxime Ripard , Michal Simek , Rob Herring , Saravana Kannan , Takashi Iwai , Thomas Zimmermann , Tomi Valkeinen , devicetree@vger.kernel.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-sound@vger.kernel.org, Sakari Ailus In-Reply-To: <87r0a06ja1.wl-kuninori.morimoto.gx@renesas.com> References: <87r0a06ja1.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v5 7/9] gpu: drm: omapdrm: use new of_graph functions User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 Date: Wed, 4 Sep 2024 06:11:40 +0000 X-ClientProxiedBy: TYCP286CA0361.JPNP286.PROD.OUTLOOK.COM (2603:1096:405:79::17) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OS3PR01MB7309:EE_ X-MS-Office365-Filtering-Correlation-Id: d253dfe5-7d3d-4296-36bf-08dccca87147 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: B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h5CAnDVB7PXRMTGKtGZlo+DL7qBOKr1srUGj/TvqgRnvSBCUllJVc2LoJzstXoUBIn6xttehmlfxWzIerF3oBW+A40rL6ggqujbrUPW+S5jawJJjZUqS2nA5aO79sTtkWSl+Ufnj+b80RepR87pMDztnD+O4kc5KqQZwbJ3TZsA8dbBpMGFmFS9BV7daAKWPDWCgslK8bP7wtgxDIdgK59Dc39hyZSk0HoJpg49ywdlPr4iyvijB9ORapEDTaH7rqwJtNFkgrpRjFrrH7+JZ/yqdAPZGARjzEm9/jtyqF2tIhAR5tu4oX3DTa58GxzIp70Yp2R7xgiX3TYvjXd9FPRIUC7DkB0eikpKK5/pumPhp2/Xb/dCt372Ky3ZdtSQ3p6rw8Qp6Uc3KwKR7Q0ZMaZS/l0s/uJ79K/wiC9rHchzTO2W9DW8Oil7Dg= 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:(13230040)(366016)(1800799024)(376014)(52116014)(7416014)(921020)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: S9tdBJEcJvsPXb+NvZwVYH+GCulIUXDKXMJaVDvisEYo6Ow5+jCWfIIq3vrIY0IMNLa7+zCYw6Gl3PZ3HulUuXxPvW6HjfWjbAuvADoitnLr6tC8hcp1fAvANNgkM686wAETkMOlEvm4HgZpf4isKi3Sp7Oi2WsGQ4OB9ecZK0mKWlydmvXabOfDv6B/H1gVoGVuoLA4m331zf2LSIHCgr6InZLwBpxNe0hWfxPwJyNU2M6lLE8YbHyeiozFlsmoJUhCHwP7oKAsSMjTPZWenN5HzEj+b0pwatAxyIEVGUhCaIqUdXD1HEgp68olAoYTsxdNCNoVekWawUhKf1DmmIFvozDoUepjUPMQoQvTnUlVr5S2DfsYHfSp9uftvPGVCdp/nWgxl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w3vJZ6OpUskfURuycTj49xE6VoMdgJiVK5au1weRsN+zr3lVYebM4ab5Ka9h7NPJD2sL017FwOCsEQVxYube5f2EJ/D820qXkbSZhUGQbzCmANFKA/4cmQ2AMEhMAY+4ecO0Ro2LTyBRhW8F/sWoKYNl3GRLLYyRXS9eLRZH3lgoysEM8= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: d253dfe5-7d3d-4296-36bf-08dccca87147 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Sep 2024 06:11:40.7814 (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: C+DqU+/UL3IwtHwREdW0URNBD+/7W8PPXi4lMO/17AddVsUxDXAHrhU8c5rVezmOu4nLaA8cQMh/pJQoGk9i0Ou+0JRRgCvWuv5a6Y7qA7PdgFh9mnVef04UxXTTGO7T X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3PR01MB7309 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Now we can use new port related functions for port parsing. Use it. Signed-off-by: Kuninori Morimoto Reviewed-by: Tomi Valkeinen --- drivers/gpu/drm/omapdrm/dss/dpi.c | 3 ++- drivers/gpu/drm/omapdrm/dss/sdi.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/dss/dpi.c b/drivers/gpu/drm/omapdrm/dss/dpi.c index 030f997eccd00..b17e77f700ddd 100644 --- a/drivers/gpu/drm/omapdrm/dss/dpi.c +++ b/drivers/gpu/drm/omapdrm/dss/dpi.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #include @@ -709,7 +710,7 @@ int dpi_init_port(struct dss_device *dss, struct platform_device *pdev, if (!dpi) return -ENOMEM; - ep = of_get_next_child(port, NULL); + ep = of_graph_get_next_port_endpoint(port, NULL); if (!ep) return 0; diff --git a/drivers/gpu/drm/omapdrm/dss/sdi.c b/drivers/gpu/drm/omapdrm/dss/sdi.c index 91eaae3b94812..f9ae358e8e521 100644 --- a/drivers/gpu/drm/omapdrm/dss/sdi.c +++ b/drivers/gpu/drm/omapdrm/dss/sdi.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include @@ -346,7 +347,7 @@ int sdi_init_port(struct dss_device *dss, struct platform_device *pdev, if (!sdi) return -ENOMEM; - ep = of_get_next_child(port, NULL); + ep = of_graph_get_next_port_endpoint(port, NULL); if (!ep) { r = 0; goto err_free;