From patchwork Wed Jan 31 05:07:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 769048 Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on2134.outbound.protection.outlook.com [40.107.114.134]) (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 C55F33FE3D; Wed, 31 Jan 2024 05:07:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.114.134 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706677654; cv=fail; b=ufPHocJ4KJWin+Ay+24POWbXKjr7qgVa2XEIIXDrRGJsG9/s6dlzKpnfb6c4Z9oRr6vG3tB9/5Wqjq/Wm0/15rBgq1d677+HoJtTrF0GCl8zVE89ISsAEy6yoL4lplq34vn5B7jiCZAF5rFo4AIXvGEnoJfLCKDS7PZJEtWtOVY= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706677654; c=relaxed/simple; bh=LetAszaW4dFo7pIO2qLTEWoszjj1mQlZBYH1VKPluAI=; h=Message-ID:From:To:Cc:In-Reply-To:References:Subject:Content-Type: Date:MIME-Version; b=d+7AP7LGowrlNyma+74R+h8MIa1ALBT5bv61utwYqPZ/Co/bP0m6j7nLqnVz4WmsOI8BK3PFAIOONCskY86SRqlH1nxMcc3O/LtF03u3aAc6To/mzFXx/Rol1tbyGVEc8aeRKOqtWM9BaJQCk/eCV3TzKEmcY6kTr8ocQnN7pTE= 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=Dh+RtsuR; arc=fail smtp.client-ip=40.107.114.134 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="Dh+RtsuR" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Vib+J2Ze6PHBEknCGr7YV3rgLGTU88tPUS7g8fGUspAF0CeO761e3R8Es32L2ONApeflUD8ExWOHpJ1y09PaSTt9b86ANVtbK6F6J1iJUzeX1NeP3wjplejGh3jk39N0D7ggVGr+f6A4+CFbE5tmRZudEQPyvYyENkBE5Vx0Httirlufa7kz3ZAKnCzN5iR6ltJ107dNRVpVTeENxLRshuwrHbCwtqdJLd01tBmWgQ0GygyRb+DJjtqX/yU1vqnzZqWiEUcAnqDln47mCitAAXY9qx1UNS6LxuK1FCvzbDjPmKPe/BEZE8GsdTc+melIcAOc92lNtIOaUTeLfxNQiA== 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=J8kkPI/MwcS8I3GYRXMHAPjRIL5uTgZdaY7byZyINHI=; b=S5VznpuF2TAm7Bn2alivN/wxGhkBRexzv8Az5tYaW665oBnCCv4MMltquoE1BcedfyICGH0p4ZMioiK0X1psau99kpOjvLeFlj/b7ZfhYQA1S0QJIyTw6WvWqi8LoaKLLmP4XPFWnvymV0hhAXxfmqBhP9fBf6m3i8ju9e5JRZzRwAfYM/dHo6gMWlNAH2S4MIaaUxMpsZaLQUCvTH66YmpG/fzc+of5k4Ud3meM+shiWe6lpI2TgcnCcUztJ63972Gcg2eisjEHB6hXdWYwGVAgV32YejllVHydbuAl7X0w3TnpiSSz4ZhVmQsej2V8KGdKXRxHBL6ZKBbfCyeeIg== 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=J8kkPI/MwcS8I3GYRXMHAPjRIL5uTgZdaY7byZyINHI=; b=Dh+RtsuRSHtxmIzfRTAtNYkn5IcWoVcNR4Ep9vDjEADHAO/qOl6EDivq/7gjygUWtlZHZCgbWloN7FA25g1nFnS1bHF2F33ajAgpmVL8inxDfwwOVJ3Dxg8gFd9nu8Jw1BzIyGl8hVwQH/LnOMuzrHCbDySUpblMdyl7W4nsb6c= 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:29 +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:29 +0000 Message-ID: <87ttmu5bvz.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 21/24] fbdev: omapfb: use of_graph_get_remote_port() User-Agent: Wanderlust/2.15.9 Emacs/27.1 Mule/6.0 Date: Wed, 31 Jan 2024 05:07:28 +0000 X-ClientProxiedBy: TYCP286CA0010.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:26c::18) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-media@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: 33ba30d0-9c60-44e4-e131-08dc221a85e0 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: shWvHbELlze9LT5M854KK2KAC34j4LRMiQxOWX6h08TCwMOvJ2KtF9HgtE8/OoHwShtJCUCYUFeaYh/Uu3B0roux+dedevjrFvwIlrKeP2MEpXLJglQM8gxa57ipfownLj03fW5vry+5q+YKO7E5Gl8xKntokEi3NDEZM+k5H/qpW0RbouDKLr3igLdZwAq6DzGEPJuJcQK+cgeuzIUA6nHdUCtw9YeT8VUYuV7msRfK1jZGPQsMkJCNkkdPeS3WwDQtM1S5v+D5702NrbFjpu+JKMLnuzOExcTSkGLlbjRWa1D0KxEXD5qKA0Dv3lBCrtzVwYhKnqtB9YvYRShKCkN2bBkYi1qBmNFYMPYmZpJgv4Jjxg3mTtT0T4n28WeUd+9ZvMLpWqw7td60c5UwdQAL8QL3XG5a8AycAWLSbNZ9autR/RFQ1HR2clXFfmII1hJplaUHZCz1rHH8G6uWVm2+QD9pZpoVnSQ+ew2e8CG0rkLyDJ9IgyCh+PpK4sGUBA0M+PT8SSltVauGkh7DpLOoquL0q16wr1X2vgNFKI5JhtVMKgD1SQJWulj+NQua3igJ1iTcs/WymtPgyDrf6rlx7O7Zk1c3d8KI1AdD/0ydvd+gPWm8Bv7Aj9C5nyqF 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); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: po43+jLuwoum+USsnpiLEQElS7LTliA9SH22RyPu472nQaiza/+9X4AVCPVnwkJIOsGq0P1PZgfbIWN1dc1hmQ2zvzaYtBD2SY5QIsmxAa/2ORnieh4RG0r3HFUsEAmFmk6ZDIc9M4ZzH7EzUs7PARkl70DH/SI7lqJmdA4+4435ffielbuspSiZjg6QgcB0fnsVVP6fVQhiwuPH/0B/AXF0GqsEE2pp9BRzXddsTOxiV+z1+g2OmyaoUUWwz+mvqWJHCjOp5fhJQso5M5qsGhBY6E6BmCF4lkQOWdTxlIkQ57ELBSluTAvsgR7KddB5wocFNDoi5VEm4hrBc3VVJbJ+3HD4X8SD9kkjwszhWI0JpbmOSR5+bkMhbc99hyvllcjT4DX/+0NSrnge6yn+XHB5IGABG6DsbvcMQgoC9jPTDQZt+A7V2AyQ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kw7mfk6jlos/Q1jLMg6jYtNPsPFQnDuBlNiePNikp+jXVVP/ckQf9uth77yz37pGzWEk/z92l2w6xbnjIfowrU/vZTRQXMSYkir5t/5vPnf3M2ovY6tJKMxau+A2GV8zLmML4= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 33ba30d0-9c60-44e4-e131-08dc221a85e0 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:29.1435 (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: Um1lC7cbxWijKgCb7lXkXyyT9UsTtHcYojLNrK7RFhRgpWmmCbkOphCbd+w8pDfl+109HKsFnw2JPaGZz0IeMMNg/5E6/mVPAkLpLIt1iwxoCSrUhVCt258YM3qj5PuW X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3PR01MB9898 We already have of_graph_get_remote_port(), Let's use it. Signed-off-by: Kuninori Morimoto --- 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 0282d4eef139..fe6c72d03216 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 device_node * omapdss_of_get_first_endpoint(const struct device_node *parent) { @@ -159,7 +146,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);