From patchwork Mon Jun 3 01:18:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 801525 Received: from OS0P286CU011.outbound.protection.outlook.com (mail-japanwestazon11011009.outbound.protection.outlook.com [52.101.228.9]) (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 ED8375CB0; Mon, 3 Jun 2024 01:18:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.228.9 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717377533; cv=fail; b=E5ghABnPSpFc1c77+891taRoWHJYYRCRxqBIdamMyROvuQNjrHjguxBK9x3GDnCfty+m7t2r+MjmEfHi0fkqoc9v7qEy9HCJV5arA3mi1J8a8EgoPfPTXnRIRQPif9sABMUZ1eTJ1xfZC64bxM4pKfjgPmOM1ZNDZwtmN4YBElQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717377533; c=relaxed/simple; bh=RLm+i9/ScJYDLOHo+cV95VhB7eobV/GEZD0X1cPqbWM=; h=Message-ID:To:In-Reply-To:References:From:Subject:Content-Type: Date:MIME-Version; b=Y4Cpn7CoINUbLIM4LP0bgXFGdgqnmmfDMmNGBv64xxAVtPaWHMn3q4KmLZUX0GjZDS6CNJ6kLVqUcLBORZiX6nRlElBpR4upeVahv0s/pab7Fb96QJgg1bY/VSH8D8xKB4s3NkPBIMjRWNuEBSN8GrbuiNdQ1+3X0oUet4dnHN8= 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=oKODHjl2; arc=fail smtp.client-ip=52.101.228.9 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="oKODHjl2" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lmASQVD9cIpGDOQIE6oeoxtjO6mvODif/ZS9BJUC5X5NDqx6czfI0f5z3P0V1Mg+Ryn5DBaa6CnjSDjXMpcvyhlJgKT68pkYDZ8KT932pjHvxLCFFlk41QWTVzgkB98W9X6bYJLmHy1/HJ4ucubq5zkTLzVILy/UEzKlXqBzLH4SZlAvTvtWhjqMZfWBIWN2T08bCWtIMF/1iLZ0M9gkdBOc43+xXb9ynyUvOW7MQ3uEFlFpt8aSGF5dqPllnTwVtxAG7aOFBV2tWRlBQvac4I3npVt24oiLw5aZc08mKpHgWw72qtxF/+c0axsjzd7PDcLkbqS5lJ24aJqr1fsKjw== 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=Aom1X2XkQ7okN9g9j/a5GzUBMJPwq7XkX9Zrege5BJb9qV7ocu+/C4BxC84Om1gGE+vYwHtHL16fTsMlBXMSszCfZsNNqkjROlbPvNv4i1RTQXyKrfWCg2y+3fvFuI1Zr5o/Cc7qNBXJnp8vw93UftY02D0UzEOFYevzXEq8Ji+BfGRNLREydj9XjaljSflu83IgJ+DLVI5mdLLppTMsexRG0klV8S+KUxBs5L/Xf91cqXIcpfmU6lMv3pASRL0rS7naYx1zodRn8WwFm5y/T11Vqeep7+G37VAeRYRhYUYQyg3mGFNViosaPspbYRlOVS9JjcFQ85w3/tAiUumc0g== 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=oKODHjl27rAPIloMNy16VOcRfRVslvPpCxYhaEZdC11gpuL0L+j2lnxr5HgP5imOgbrthtII1CjrIWs31nX2tARpxmAdYXyaCFtpsvE8RHC6tz+kF2S8fB3usx+R1No5xe+X21GWWjWytX8N8cFyZPafI+IB13OclYR8VWJrVwo= 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 TYCPR01MB11318.jpnprd01.prod.outlook.com (2603:1096:400:3c4::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.26; Mon, 3 Jun 2024 01:18:49 +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.7633.021; Mon, 3 Jun 2024 01:18:49 +0000 Message-ID: <87ikyq4ydi.wl-kuninori.morimoto.gx@renesas.com> 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 In-Reply-To: <87v82q4yg0.wl-kuninori.morimoto.gx@renesas.com> References: <87v82q4yg0.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v4 9/9] fbdev: omapfb: use of_graph_get_remote_port() Date: Mon, 3 Jun 2024 01:18:49 +0000 X-ClientProxiedBy: TYCP286CA0153.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:383::15) 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_|TYCPR01MB11318:EE_ X-MS-Office365-Filtering-Correlation-Id: 62924168-736e-4b1f-cfd2-08dc836b1f8c 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|7416005|1800799015|376005|52116005|366007|38350700005|921011; X-Microsoft-Antispam-Message-Info: E3G/vmxvgfVfr+S9rd62Gpi2/YNUVsqF0fVlihXtjrUPDKk83vUrqISIr48qwGgO4LPGuVP33SJU7WvcX+AcWtQS9/ITZ825/cOwmfhcBxIoK/zujmltKopFBynDOQBDgtUhNzE17+ucoEhWweQlyJGNT9QTjacFnRtNFzXZraxyibqArvBqg1kj6gWZ/+afITvvyzuos+nYxx6glSBCUOaeboF+vWtXy1P4F19tEZGLsJfFu0Li+zQie5bS4H+x7x8yowd5qspAAFZ+swmxe0/b/66a3NmkjB1aNWkrzlapeCyR9iDROCsoSkC4uqgxRm4JdXZIoe6/0SPLSUTtdgKmLuk89NjUPIOuU2cnUFwdl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914.jpnprd01.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(7416005)(1800799015)(376005)(52116005)(366007)(38350700005)(921011); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: qfliaFvMAsMmtxRa4cTHiUE7D+9dSV8l2oJSrtlTt4zuED4/sCfWS7FliuT4lrQKmI8wZRYhQP0p4/Y7BYA0/HTMbRjjhSnibBC0IurIGR/YP4klt5u+by/NMlLHDhz9Ra/3fB6526UmWlgH1841qI5U78Evg1vhhVrmA4Sfr7r/3yAcHH+bYUZ1h/I1pLT745u+QMIFIxDmj687wQphPNKs077EPolaT7iZl2RNvYDDDJgdTveYD5Ks/OFeMJh++Rz+V5zQ/cDMe8mvC0w/0dt0CGklPKRDiJqDE2SRE0oJ3mYMApzwjCNSiOke7kuXQY3CwVxc4sFyn9ZeVo/DP+eFVQh8y+CPhdZGsdoX5ugrJ2VkcRR8e38HrDnxuCHcTpcLU2Ck4fFPn+hIkDSNqKdipgTTwpJ32OuxTBYihXPIAtlLTd9jRRKszhWubfGQ0t9RG3MG4Jyl1WECToPOMLcQs91VExqps7U7JDhNT5Z9FiGS/DTWagbFcJqxVHXgC84DYa4LH1YWGvrvlytOaSQmpDr+KDjexprcfqHSvriMDRVCu+CkkXDWrgilERcjQlC4EIiGTnvEJVhkBrZGDiMeDQpoU7HI41O18h3SE2/ubf1drxGOEs+kTvlJG/ceY3FKqeUHmuqewDo1lSOZDUI7jOAa/FqKpQUkMQU5uc5VtDm0+sDJY+iqB1u38FOiGIElpNiPOC+n895Bah6Je3hNYIjCD51c2Bs6xso7AVRNT2Le6fQqkbuBNijVt6wVwW4nnigXK2atI+KAVYsH/88BHJeDtUW0bD2E6KT0xOt+T34m2p7CUQvYi78dJ9l5Xf2HHqDZTsHltd0TEEIHOIpFglYaWmJdHnuiXvrI3uoQno7uBw0VHPBXVBZ+kFBktJqdTNvjcsjj641JSOam8NqghEhdspUSX/l8Ukc+6yP5BUc1Bmi/201YFSKzMUgTsMfFmsTfp4l/5OXCS70IV5Ffy7jQZwXN3Fbcg3QSsm7+vaqgqBy+Xv+5FN4d7n84lH5pVdTsO/0u1tJDehcI2eMVWcuwdUX+5T9Ir2sPQYlsfA6/Ba0WTNb7J5Qd3Mxjbe3cyZ7Y1dRjNHO6p15Yal+ikG3ZQ4YnJhzYn808TaCAbSqQRuid3FykPn4HqU97TRBC0WNewp/UwzkatAQVvcCSvE6mqcElcecVyzhiSBNOa61bh4cQ/3LoOpwy7hAopGFlxLurfWhTki/VXt5OknFKcdbA8770syqEjhjCkmBhbvV1TX9Gag4hhkn+rAaZ+T21FaKWlS9rUU3hmEBolK4GiFnQC1o3du5nS2cvJtvJIHlraWSZRT+VlTdl2uUz5YMLQFM0BHibVOX5MSEsBf1jnDagfoaegDxqPgTMS7Y4WJjMy4o8FmPRfPiLTVTBIDf9IRo9Opid8g7v6cKGNbegOd+2eew6gNE/3pIqr7oDZWdg21BBEnOTbscoCGHgURzQB5tGdpbGvqEBl+BV4Xf2Rpq/lcLgCu8V9Bav2TC4PJAVvnLyZ2J80nZatIJVID2DUiIVNYBWEp6yD11wW5rdCn44gi+fnphCkcCVpgkQfgBizVIPWZ7AeQkyDSC8xwueXascG3xkjL5P3WY2Qo62I6WDHjYsFcWV8STuGus= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 62924168-736e-4b1f-cfd2-08dc836b1f8c X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jun 2024 01:18:49.4787 (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: D9nB7U3KeVExeSkrXZCtvJOlsy4tiA9IZHAN1YTPjIpTahJ3Stbu8LCdx9E70RpxWmmj3uppAivOaG1N5Ty5ogknE3LFGVt/8NIwCZ0Kc2tBTqU66cnVcllzeNP7K8qy X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB11318 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);