Message ID | 87a5eub5s8.wl-kuninori.morimoto.gx@renesas.com |
---|---|
State | New |
Headers | show
Received: from TYVP286CU001.outbound.protection.outlook.com (mail-japaneastazon11011018.outbound.protection.outlook.com [52.101.125.18]) (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 93F9E14A630; Thu, 24 Oct 2024 02:20:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.125.18 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729736444; cv=fail; b=nWC+1N7o7hPjny88KW2ug++OjMyyFEfBCvVbKcX8FghVs4B/TSpYMkThn/h9rdjgQHlX1GR8nGQH/VgR5u1ooZIihJoSuWk6Ox3maua6tiuQyUDjS/wzmE474ZaQ0R7BU1zyM164CVEKuq6ai96CVgaNHF2+oCyHTLaqgfJoTXc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729736444; c=relaxed/simple; bh=nxJSOL+717rPtbqbV/lfeGaiY6USYQAlz4NNs2H5aEU=; h=Message-ID:From:Subject:To:In-Reply-To:References:Content-Type: Date:MIME-Version; b=IRhS8W7n3ydjtX97NvxdF0q9KFWhfShEs7k2N6ooSB8PobNJmG71FEiBp7dEuPtox4Gqn49FyLDucRTSh+QusGwPasDtW5pSN2fhJRF6O1QRBcCCOs/nHY0UsbtBzPCWjE+1HH/3ozMD3Csp08zCyg8MTl1VWGIuWki6BeSqhR0= 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=P8QmYbBh; arc=fail smtp.client-ip=52.101.125.18 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="P8QmYbBh" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=V9sa5cp0bwfaAfvxolP4gnKMiy+LDdyH7vMzXelJIAmPn88iIQz+JV4BQ21mhTotH5Vtyf4L5vAjKK+eQ06Pmq5vycswIcxKX8Cl70Q6xXMnKyePAuVhaqowyLltsvNViVrA5AMoBseNpJMC7mkGscRyZx1kryFZfC+JIUNAQCPJ5lKtaT4b5RxpRMXGSka3dvTTucEzBPGtsD9QwqIAtWoeKqIxcK/MmqWL+/D6qiiXxF1dBS3ofPkCD/jMzPEX7wHzkAcRlw0m32NSL0FhvQCn/M2LfEWcPZS4BNely/QfTQLbTSPllRWmJ0lBPkXFCUgrDrGINW9sADXNgGBuPg== 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=ix/Ro7yTftdZQYwbQYMchwMoBW7NvuI0ER9wRiSIbMU=; b=hBgH8y53YHoTdZkzfaWC6WojnDj4rWI5N0ibJlerMLZpnhzdSgnUmuTX/0I2/LXcVpSRX0QGQJPixWiYKE/vcz7HWNtKVD7LYhZ3wxLVV9WaK9BFS0Fau6zCKlNANBLa/OUakNLQ5h3Hhtth14PXsSBKTvw7JW+uTFtVVEwnNz0C5OTdnl8rm9++0e2xLhHkMADRsS2TkLJwMRL2UHeZnlve38XOOCg5fg0Ee8Hxdx/w4wH+8pMj2cWcbc5YCCpc1pz74GGoZr32fxsKzqNxARetKWNnQ5owyd3DNV3y/AHZsEE/eq6hdvbdppU6DujGLDqWXBAaHk6pYQyQSoXGAg== 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=ix/Ro7yTftdZQYwbQYMchwMoBW7NvuI0ER9wRiSIbMU=; b=P8QmYbBhNgieexoJAInY9jXbd03WywGtCzYftZ9L+3mZKJayaiJFTZ6ukIh5AhoqMGqcLUnQK8tsp7pkGyMQZkRi7/hW/pHceZMC0Fj/KQzj2HheZc2spWp7YgbMX+Lq3vrQk8tNtySKQUMz7YAhpE2Q1MqBCeVvfh82yLpjHK4= 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 OSZPR01MB8629.jpnprd01.prod.outlook.com (2603:1096:604:187::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.17; Thu, 24 Oct 2024 02:20: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.8093.014; Thu, 24 Oct 2024 02:20:40 +0000 Message-ID: <87a5eub5s8.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Subject: [PATCH v8 9/9] media: xilinx-tpg: use new of_graph functions User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 To: Daniel Vetter <daniel@ffwll.ch>, David Airlie <airlied@gmail.com>, Helge Deller <deller@gmx.de>, Jaroslav Kysela <perex@perex.cz>, Laurent Pinchart <laurent.pinchart@ideasonboard.com>, Liam Girdwood <lgirdwood@gmail.com>, Maarten Lankhorst <maarten.lankhorst@linux.intel.com>, Mark Brown <broonie@kernel.org>, Mauro Carvalho Chehab <mchehab@kernel.org>, Maxime Ripard <mripard@kernel.org>, Michal Simek <michal.simek@amd.com>, Rob Herring <robh@kernel.org>, Saravana Kannan <saravanak@google.com>, Takashi Iwai <tiwai@suse.com>, Thomas Zimmermann <tzimmermann@suse.de>, Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>, 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 <sakari.ailus@iki.fi> In-Reply-To: <87msiub5tt.wl-kuninori.morimoto.gx@renesas.com> References: <87msiub5tt.wl-kuninori.morimoto.gx@renesas.com> Content-Type: text/plain; charset=US-ASCII Date: Thu, 24 Oct 2024 02:20:39 +0000 X-ClientProxiedBy: TYCP286CA0116.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:29c::8) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: <linux-fbdev.vger.kernel.org> List-Subscribe: <mailto:linux-fbdev+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-fbdev+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OSZPR01MB8629:EE_ X-MS-Office365-Filtering-Correlation-Id: a9231d26-303c-47ef-ef37-08dcf3d27440 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:13230040|7416014|376014|52116014|1800799024|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: Wvrs2Sn9nhkM6joYAPxQUi2yVUmrXnkksOcXfhh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tIzadyo7nYbYmPw0M68KRjyvUUwrusmYN3Q/RKzCK4qBrRgmFL1KfFOKcA0gS+HiyJDV8griCUSfAyJGV0d/2WGP2s39em16FZ8rbdP9tG9As0APBJSqyMiM0Gu0OcHPZsboZku4l/vg1uhB1C8SYeuYUoqQ40P1JfXVvpLEhfsHqMS4XFwbQSbJ5046YrsoqlyfQynXiBi8IEWYhwKJZUg2eSwJq6TqJFElVUiNN2tuY/3jHI5ibhBBr4LEBiVpx3DB2IYJI2PMcHyeap1DZ8C4VqM7DMnnl 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)(7416014)(376014)(52116014)(1800799024)(366016)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: A6odIuqUGTjhbUP5/bHkIO6w1l9AWhUzll7rdwpZuyNYF7jSKTzS0qyOk9E2uH6AzdxexAesBcMkbEl3m+FpTgrdZvnkq4IDTqtbTUH1wKPun9h1HwQOjyweFYzerae8O30T2ZvZrI4a0LdhVVSxMvEshs8L0efDQK0zOY7Pm8amxTnVuks2Xko4eocpwte3JZexaCme36BNh35Qlgq5y3B0s3Bfscsrp9+6pWC8PtNWj5TTMq5rrxj6IfIxS+TifFlhDWgU61RidWjFr1RMLlXJrIqR7Ys6log4cAmvbYyreIIeupUJ3YBUyXVesPBq2YBL4FigPbWErMtzajs1jwJwg6fzoMbSsxaaTnUJmjtrdyiM/ixtWn6dRU4YRZzzLOfHjigAsXvMTmH9YAkH4cgXn4cQkQp+4R+HfS3J0/i/gPa2MOcZzYG0qbveakrNNt7/ElxXezIxUKD0uhzLhAzU8MKiwtnLWUyIwkIQQ93TDWWmqcoTXMietkX9nRcFaIyYg8O26mfvSA0NePzk6jQWy9BbOKXz+KDowQJZF/1v6A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ygLnj6PI= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: a9231d26-303c-47ef-ef37-08dcf3d27440 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Oct 2024 02:20:40.0005 (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: maPpq1MdI7EQoNERAFm+iSK64pIZuFiqTS0j3Xe3xo7VDkZUZIoAi7++gtaYwMY2Yyv2qGDMdCWDJsieu5uWN3lX/X82EmtHAuMls9uvxS02ek6mvFnnQrC0L7gNv+i/ X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSZPR01MB8629 |
Series |
of: property: add of_graph_get_next_port/port_endpoint()
|
expand
|
diff --git a/drivers/media/platform/xilinx/xilinx-tpg.c b/drivers/media/platform/xilinx/xilinx-tpg.c index e05e528ffc6f7..1d67f576a44ff 100644 --- a/drivers/media/platform/xilinx/xilinx-tpg.c +++ b/drivers/media/platform/xilinx/xilinx-tpg.c @@ -13,6 +13,7 @@ #include <linux/gpio/consumer.h> #include <linux/module.h> #include <linux/of.h> +#include <linux/of_graph.h> #include <linux/platform_device.h> #include <linux/xilinx-v4l2-controls.h> @@ -711,22 +712,13 @@ static int xtpg_parse_of(struct xtpg_device *xtpg) { struct device *dev = xtpg->xvip.dev; struct device_node *node = xtpg->xvip.dev->of_node; - struct device_node *ports; - struct device_node *port; unsigned int nports = 0; bool has_endpoint = false; - ports = of_get_child_by_name(node, "ports"); - if (ports == NULL) - ports = node; - - for_each_child_of_node(ports, port) { + for_each_of_graph_port(node, port) { const struct xvip_video_format *format; struct device_node *endpoint; - if (!of_node_name_eq(port, "port")) - continue; - format = xvip_of_get_format(port); if (IS_ERR(format)) { dev_err(dev, "invalid format in DT"); @@ -744,7 +736,7 @@ static int xtpg_parse_of(struct xtpg_device *xtpg) } if (nports == 0) { - endpoint = of_get_next_child(port, NULL); + endpoint = of_graph_get_next_port_endpoint(port, NULL); if (endpoint) has_endpoint = true; of_node_put(endpoint);