From patchwork Wed Aug 28 05:12: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: 13780520 Received: from TYVP286CU001.outbound.protection.outlook.com (mail-japaneastazon11011061.outbound.protection.outlook.com [52.101.125.61]) (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 A8CA414AD24; Wed, 28 Aug 2024 05:12:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.125.61 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724821953; cv=fail; b=lj8vFmftZbJ1iheQfCHdGrnPNO5BB/2sJ6Lh/uULVkqJhAMmWC6U5anwoKfl+EiBzYybUz0RAEdU2OyX9U9Moo3q5opFfqaShupV30NKxB/VPavnpxIgqWJGcXRH2qryQX1WZXJrj6qQYVrCfelyW8DJsfPwF1dTJcKVTkp+q2A= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724821953; c=relaxed/simple; bh=2cjcVZYxvLuvd2a4aNRw8Q8tOsacDkaZ3tEOo4bkYwc=; h=Message-ID:From:Subject:To:In-Reply-To:References:Content-Type: Date:MIME-Version; b=H9MGWZmLw3tSSqkktSinuw2gPSUNH5HJHd9+ACJMgWDCX1xi6oJaH1uiCXJyGUulZh5KbRt5PsJatGQnxKqugNMcyzAMk8aWWtuxF5pI85/OHR+2cZlpxVwMnlsdkSF08+2b4ahQ/hiXzCAQmbX13TCRelCuEJ6km1BFDm4vwpI= 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=apRZVRdb; arc=fail smtp.client-ip=52.101.125.61 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="apRZVRdb" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=dM9wkfHWO6wkPiVVpr3C+T4p8GHHaj+oMLvjqT13M7CIdmdAn9t7qhu9coofjjA2VC5kCNWjXOsO16cwKhBFwc0qlNYL2pQHEZjf1obGLcZSZ4u0Vmj9yxi7oAQhcTDJdEKyApGGupdhmepqrrvm3PRzP5Xz+sewuK4zamjLl0UgGaXywetepFEd5Z3fK70Bm5cjlCWzCiAy0tz8XEwxpf7Dm62lgh9Scv01YgThX4LvykuRIUSRxExsCuMEmPlrEVTUSTNfYNFFFanxVxhqTX140+uXF2YmMfotb6JvgTm2jZ3oAqXzG7kzN+A6su0sLqYA2qIzL5ht/R7KBFJVsA== 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=GqzIohYp5afmfF86fzJ9cHhouXOQhdLWAIzB1UwkvGw=; b=nwmaO1eMCgzPOlCNCJsamDmGCvWvnJV7BVL5n3SDOISoWVRke8Q5DXDkPpaJmoZZnLn80YRvnCfuUXYO+I7ZMBLnEsSaMoHuYJMls3t7egkMV93A6OJQYPie4DjCS7sdaWdf6FPgexWxt1+vHcAT5g0MDHeIUv53s0uwMuZuL/s5lsiPueIG9dHS7h9l4QPVdcizLyfhczSALNyyPSgH5FjBdnGhiRinmzSDzWqknLJRm0ZJEu220usBX1uG19MSdBGESEOn2NKpa62ZdDzHQ72xzkAbODuVT2+WJCOKucC6kdeY2MEWNDytOV482ZtnAQ7or0kZgCEQdr0N7kUtmw== 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=GqzIohYp5afmfF86fzJ9cHhouXOQhdLWAIzB1UwkvGw=; b=apRZVRdbajfPAHwulnMMf/UIh/N5Iq3jQFo5kpymcgPjglXuOr3v8WwZ/sGQ1JdGQdlFqyGB5FLRdYu4V/clwRSPplz7XffF9PtsEiiB7pZ8h9/3qBDEXVRmv4sRpxoXHt5dAsMx1PphIsWJPXgcHKiQD8S1hF5OPVjZdVpx0Ks= 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 OS7PR01MB11955.jpnprd01.prod.outlook.com (2603:1096:604:23e::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.26; Wed, 28 Aug 2024 05:12:28 +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.7897.027; Wed, 28 Aug 2024 05:12:28 +0000 Message-ID: <87y14h1b9f.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v4 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 , 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: <87bk1d2pvt.wl-kuninori.morimoto.gx@renesas.com> References: <87bk1d2pvt.wl-kuninori.morimoto.gx@renesas.com> Date: Wed, 28 Aug 2024 05:12:28 +0000 X-ClientProxiedBy: TYAPR01CA0149.jpnprd01.prod.outlook.com (2603:1096:404:7e::17) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OS7PR01MB11955:EE_ X-MS-Office365-Filtering-Correlation-Id: 872a83ab-d9ce-4c6e-48c6-08dcc7200319 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|7416014|376014|52116014|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: 7kGZXN2J3BobJdaKpfK4b8usn1verxmB88wl12Xu3ZxqXvRVwq7lWbTIGiIPwIRQwjzOuJ0clxgXK9FiupshfkzNJGjEaZK9yi3eUOeLUrreDZUo4H2CMx+dzMSvMPZTMWgSunsJ9bYD2cUd6N2YInygOvSvf749EYXMKeGtuTOpndn7LLAOMuiUwjZpfFqogEKMJYxqla+TS5tMrXsgaVrlLTkgt2hnnH/esQJAxBhcO599Y/NtE3HoPNR2PYLLEv7DqGQA1IBQ25OX0hSUatZHfFRojEWH/DDYAxJoWattsp3rdd2l9Omip52EsVWxihfF3yC9spB8w2Z6ya6LlGC8glrLnmQOIAvtdJOO9bnDk9TXPhDneRg424L54Z1x9O4Hy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255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYCPR01MB10914.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(7416014)(376014)(52116014)(366016)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: hjR5UTc965aNUbc3dHkj3/6UP6zuEJJdMzLFKianVVkwNh9rBVK/2zMIcsCDZR6ID+JvrPDi7CshmmeiAdzMNsbk/RUomr44AOMxnRiXXEkxDr1i7H+qdCmJAceL5dxAJh1E2b7O5h5OoMczYFsqN/2M8qqNG/h6cxtXwuoVfSCnCZuqhn8A9nXPVDNzMcYa8hPWOCktnMgU2xQgfKTgRWGWs+UD9GMAY+PYexO4ncqaXOiP6L1TmV9/yl4w2smVZ113e2GkwE7A+0ftb83/UY5ctdIsSd3uBjrSSNorkOdnktmxxUI68Tq7nc6vfY6RGQL89+0o2OhswJnWNH8Mf6mUWk6gMJ5bih0OFv0o6mIpg0q5Iag2Vfgc/AV3gAaT/YwXFaF1VlAYY7itEF/rj8Y5AhfWWm1xY4hCF8DDCgKUAVpJyZ+j3PQaFOYr/zYAG2VuyiW5l3rGQ8wZxZIe3cUksJ/K7iChDmbgce3f0u2GNY+04b7vpWlZ94B0SfELreXuCDqHXFr6ZoyvtlR/nmPxhLFPwctlw61kKWWVr6GtHci5D5LP4E7xit0GKrAb2r8uvBhHTnIzxKD741JCS0bkIqq2LVxbcOo62qjYR2M+qHdiyqfvffjuLjIdbZnJTJEjuJ+MCay8fdmntDscMgLWBZvWWHhi7Az/K+JAVDvvD5rF8BXBBgm1EDu9udZAZ9nuCi/sbL7VAvYzW3q3sJtXlj/bLCwvcbQCPCTjN3KEsiaZauIfHjV8fE661FYKhhsPTmNgOtpWfUl8B80Sf+A23VMAsx4WFxuM9Qcntl8lLlmNSra0iGeY/AJjgyvhKDdSvMNeFZsS+3864RwyUhqCcQQDs1re2ka8bHhxD6sG9ZAz9OQMPGO2IhqA2kEBO4WxC2twtNYGHeQmPwBYE9wNAxE710ML1/SLlf4vUVZUe19jq5b23+L6cayM8jS0oZItHOm0Z6wRVQMENsDEbXdgW2K0iVng02fdyb09yYvANQoqmKM+VHdirl9xBe2EwfauZqOYPMxrOGepNT3+70wx/k3YIeh920zZpFRSC5VRicR48FKSQxflAZmi2X7XYoh4vdjjo4FVLKbTxC8EB9flHaDDYpugq+PLcQQqp6twnkDrZjQLGHZWdSomBXk10PAaGMcF1hSFkE3X5JP0bxPt2ozLBl5kR2ZVWPRKqgUaGkiJ/2QmtXIWPmrHntdK8KJ7G3K9GXaCwZPJx8Q+ITvvfTl+d+tBbFJOnrmLBbOwX9wsWMCi/G5/sdfSYqxJB876ude4uQQH7ULQXJC6wDVqWMPj421O6ganpU79pZR9+cxcxsqD+cbJCy8wADM66w3z8QB3kmUfBLcKbEX66AE7otrA/kYm9H3lAyprOv+grHC7L7zG9s7nBqjS4kIA5eqhp9Nf9DCKSHni4Ds44iOJnQSAkkhffIZqK3nAWNlziPzjq5V0lCJDmgv9AJmTNL9OVDw9sFJYC1WO6Phg0Rb0oVl/jPwNrsohVPcGAOXNvLTsX4wFxH0J3aHPprk9bhY/b0Z+KsntyFrTI6BJPHe8OKIr+GYH3S86Fm3VRLv3h5cwVRMlzze5ImEl4RpxUxpTBpoVWte93kBnb+3FU234rh3ERJz0R5svPN1pqXI= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 872a83ab-d9ce-4c6e-48c6-08dcc7200319 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Aug 2024 05:12:28.5315 (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: sNKm5/Q5DGZ3qsmVX8Y4AajYuc82znhtyuQw8L/xtD7G1Uy+Tdhx0fnw/STfVyfdLzlrwaubhwPcJ0nK9U2SIx3BTJbS+ikN78qzBSFuUVL2M27pgBOQ5ltDWoEFNIG3 X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS7PR01MB11955 Now we can use new port related functions for port parsing. Use it. Signed-off-by: Kuninori Morimoto Reviewed-by: Tomi Valkeinen --- drivers/media/platform/xilinx/xilinx-tpg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/xilinx/xilinx-tpg.c b/drivers/media/platform/xilinx/xilinx-tpg.c index e05e528ffc6f7..a25f216b2513c 100644 --- a/drivers/media/platform/xilinx/xilinx-tpg.c +++ b/drivers/media/platform/xilinx/xilinx-tpg.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include @@ -744,7 +745,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);