From patchwork Fri Aug 9 04:22:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13758347 Received: from TY3P286CU002.outbound.protection.outlook.com (mail-japaneastazon11010051.outbound.protection.outlook.com [52.101.229.51]) (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 988C72208E; Fri, 9 Aug 2024 04:22:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.229.51 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723177363; cv=fail; b=GYamSDihQcecNQzbEQeSOwKDHP3cSRgIAY1ibsz0XmxP3b21ImHDVCc/U7rtxoXHo3al+Cg9XhcUa+nKSj9P04j08pFIDwoptoj+cEMDClsXQYT10hj2VQMW2yMsTtBS3RGntIdm2gMrNs5DyKQSk0be1iavWAA1Ol7zD3+vcAM= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723177363; c=relaxed/simple; bh=OSXjaN9j3GACycTjnv5rUG4HWuDDbz8UjyI+e7aT38I=; h=Message-ID:From:Subject:To:In-Reply-To:References:Content-Type: Date:MIME-Version; b=JEBeRTU2tiFLFSBmf+dtrVYDXcbwdutqtutKvhMT/qaPgFNj4OO630wzNwqi5vKnSiS5I3SqfJ2V43xm7co6ONL+0oRurMuv5DIU0CWdEA675ZMETuI5BxKqNa4eWPmoMQQWBzUatIbJWGQASAyncN8evaczD3O5U06Q6Nj50o0= 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=iFvnxf2p; arc=fail smtp.client-ip=52.101.229.51 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="iFvnxf2p" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=wral9Xmtcuk3Orj5PRbX7+w4bXeiVHY8heNSQ3JCDo+5KDy8NrUCc3Rh87ub4vDpOqC16bI4dFJcCIO1FfksJgdYC4eOUV/zL2fQDcbfu7VSKibAhjmH2p592UeZCFtCGjftjLerxqZPHHCIKpmGLufvvgfPt99PexmXXgzwcbXCslQGk1pZ3/qUKsHWb302GVf5xBtQ2lOpTFza8JeF8cBaOgHmFlyNr0YJ3Av0EkQrxo8StzY5zsNUrhmga83f//PvOBZnBaMH1Qquhe+1Qqe2OGpIhD0s9aO7NEQqrntrNutXERQte1JS4pctboaRa6iEzeLzISIHgZGmod04yQ== 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=1oY0qoi/gJg9xYf1gx9k0f5cIYZLqGIIdG5ovK6TzRE=; b=YmBvqp3TI6QqcilvQD0/r4LRKz2vvweUWOg9CJoGgTH/G/5mzYxlwPr2dD6pPM+Nzzr/MG+Qd2xkqs/WKcyuVeEUwWQTyXoltHu3cdriP4DJM6Nr0XurL4TDqgxdqkbMnLH54ub4FEk7vfX8LtdwaQfNMT5wfpWvOOOQLIwZAZEjKGdvJ5BUS7ZoLmPz6JRk8UzVJdHgO70XduLM2GTW/5HzUvbWCNKoC3QSvVWACJ6pcHrsCMRl4DMty0SVAzYra3r639svDNZackzfwM2Oqa/8rLxW+6cH8df/PkYVV2YI42J2XTNoCJuXI5wCYea/JpalMb7kTt1+loHa2arFNQ== 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=1oY0qoi/gJg9xYf1gx9k0f5cIYZLqGIIdG5ovK6TzRE=; b=iFvnxf2p7XPNOqJuYrWboiJ+N8S5JoBh3PFoDWy6/BlWg8TxTcjcrCEfTUvEhGl5D2/X097LStLyW4zGhNhAC518ynlgrMvfy1LiUcETwCxrNjYs4vyWiPhC8L7CObSLXttkYccq80izY4WGpFTEoPjxXU/WpuV8jyGmBtZfKck= 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 OS3PR01MB9639.jpnprd01.prod.outlook.com (2603:1096:604:1cf::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7849.15; Fri, 9 Aug 2024 04:22:39 +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.7849.014; Fri, 9 Aug 2024 04:22:39 +0000 Message-ID: <871q2y8gvl.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v2 3/9] ASoC: test-component: 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 In-Reply-To: <875xsa8gws.wl-kuninori.morimoto.gx@renesas.com> References: <875xsa8gws.wl-kuninori.morimoto.gx@renesas.com> Date: Fri, 9 Aug 2024 04:22:38 +0000 X-ClientProxiedBy: TYCP286CA0196.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:385::7) 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_|OS3PR01MB9639:EE_ X-MS-Office365-Filtering-Correlation-Id: f90d7454-78aa-4a76-44a6-08dcb82ae750 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|7416014|1800799024|376014|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: mO5yGr61ou1SSBAHHlFE69f/kkWoHE3G3a6bpRMWza2NoglBFTaf2Zf2vaYsRTFxslz8PZ6OylP6VUVyoQIQ+p8BEckTMrykS6nkiwszb5ZeprzAbIYI7MT03WfhzYtSJgHrHo0c6wLo4feCTWWyblmR3QPKH4StnC9lNkIndteDGSDqd00a63DkhUkWwFyscOluKzSvZaHZ2le4jHd1j9GNbRZlhCv2Sy7Qymi+5e0sWuBrMAN+lN0tB9H4LdwJMWcxUDd/TIcnwNs9epAlLjOduiNLbIxPhQa/HkL9sdNdZTXP6xdzneWty8j9DS5k5DWRwMlu08tVuWAYi5kj6lmREg/MlaGoLwze7d3tXUDPiVrvQTcRUwO0wwtwlI3e1/diVMCZ8s3jBA3O69VPCMJuXLO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;SRV:;IPV:NLI;SFV:NSPM;H:TYCPR01MB10914.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(7416014)(1800799024)(376014)(366016)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Xxfu1B5NhdHXtWM+N/4IjYn3hl3PCtD6phVZekVcctqsMII5YGHhJ5CAmDPQRhPvYq8Xn9AiXF+6ZmzfWUWexI2ZxvVOk/19OZz1kolF+4ikqdOqDLmWQFA6AZ7eppyzSL6GdmBHh7O/VWRgojwd7bhm677AAeg9205k3WmIx9QxvuO+VufoOE//V10o/y37xMx87qiIw9UpGRvd5nZE0cFALxDYf5/as6owG/dIwj8+Wp1LnzootW7m4KAfoQbcrW/mQKRwRQ+Y9bo/YxNMo23FtjtzsrwfSS/5TGRS9d8GuO8+IakN0XG5Sto7adgM2yB+WJeg9u8S/QcKbcaYM1mvpO4epJcu0yoSRs1cSGYeFHtX6ou8jWcDryQOE3+FRtxrmyXePh9rjF9nlYhkjxWZdkEFtPshZUAswvQyl5H9+5KwRnHnIe5UbY+KqmBq0nz8W6bgw3vtWD4RHVIE5uzwAUIq51xbKAn/ME1a0UC2c6bIpTXAyxqhPAhFxCsVtwbUP5yb/ySXF0Gq2QhLkfPRJdDUieoh1Y6vk9o+naPO2CSrBd7TYJpuKVfrNJBLelhCBA8Lun3awXIdEkbo2brsYvzOJRtcgecnAsA4DBQhQ2H3zuTew31X6hFPnlFwoUOWeMYNj4ucLaMXR/l2IevoRnLTBU9unlxp8ND0xzJM8sqkARa62M8jiNweHfWzl3nOE924nUqoCYzeH6sKfhx/KgGnWu1MuREBwa9pO1l1scGBA9ad6+pqKTu+SSMCeL0rSJLnefe4/54RlRwZN8BDTZ9T85Bq6t8fG+kI10D8Ge6eKsB8G5FIQQlmt5XM6lg7rqOMCjeiY7rEmUyfdBga8BLucrv3WFx+mgP21B5LJgC+m3Cbb4Qbk2UXUHytwqNhm20WhlSDS8F5/48GT+qGjcxENMYocb+DrL/I6tlaQBT9OS23bFd5LLYmbMnlOJc372BLrIaF1J8DsavtZ06n8RdEsgh8u+Q2bsuGuTZRNS91K7QXbJpZUqIXOVeW/YUsL6giwHaikoar8tiIohM2SfNeDuK69ycZRmkxT1DXKO09m657+OJ6Rz/qsOxW+txjvk2WX1ZG11csT0HaN+HOMmjg6kFnhKkGSRP9nLXw/W/s5wK05yEzM29eVOOoZqPClxKvxqAZHjJPn8REcC47F4S3Y2Aaerb9WuEdC1DotpaMxm3x+urIrb9SScDKaHRgYIh/nYCkzwglSFOTTI88IJkOuCMKQP7h56C2VSE0ibtvL6rhXg/z1G7Rz1QY/HjhXNkHUsCnmNYGFozI5v8fl+LuCELz3klFJpRZAHgTJwllFLUx+s3NAoS7/vij7BpwLb7TnSQJi2VmwqCA+ce+iJSr8GJKQUJLedH2ZBMmlkHcgN+/rnCOIHxrG+kZu2/iUR4zv6IoaAeCIaqLN0iGhmRl66o6rQfFR8p5Mb+Zs4ECCRt/fJAlPIV0GLnFchR0jlAZVjUxjWd1hFX5t23/t/9o0IRKfldHr9FpcxLHos/6iea1RUef6Ka8KxJPH6DUB+bInbMgivxXwzTKkwdTSGY1GDZPZbFTUhr6LZYDz/z9VSgnMPNvP2au3DQlwcPbStO4QF+ctKGU1GMS2Byrk0uxv16EHkmI96NPoag= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: f90d7454-78aa-4a76-44a6-08dcb82ae750 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Aug 2024 04:22:38.9825 (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: G2+MPAOYqzzgffPaUX6yu4lGZLqga3LVfAG+hyYIF5Q+R/YmBKy1Qs3f+2qUrZ0f9xt0lk8fLq2dCYF420YbrJy2DM7SgqByJNaejPsPc/X5h4YCTWXriUBRMqLIsstH X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3PR01MB9639 Current test-component.c is using for_each_endpoint_of_node() for parsing "port", because there was no "port" base loop before. It has been assuming 1 port has 1 endpoint here. But now we can use "port" base loop (= for_each_of_graph_port()). Let's replace for_each function from "endpoint" base to "port" base. Signed-off-by: Kuninori Morimoto Acked-by: Mark Brown --- sound/soc/generic/test-component.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/generic/test-component.c b/sound/soc/generic/test-component.c index e9e5e235a8a6..36008f3a31b1 100644 --- a/sound/soc/generic/test-component.c +++ b/sound/soc/generic/test-component.c @@ -530,7 +530,7 @@ static int test_driver_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; struct device_node *node = dev->of_node; - struct device_node *ep; + struct device_node *port; const struct test_adata *adata = of_device_get_match_data(&pdev->dev); struct snd_soc_component_driver *cdriv; struct snd_soc_dai_driver *ddriv; @@ -600,7 +600,7 @@ static int test_driver_probe(struct platform_device *pdev) } i = 0; - for_each_endpoint_of_node(node, ep) { + for_each_of_graph_port(node, port) { snprintf(dname[i].name, TEST_NAME_LEN, "%s.%d", node->name, i); ddriv[i].name = dname[i].name;