From patchwork Fri Feb 2 01:28:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 784972 Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2126.outbound.protection.outlook.com [40.107.113.126]) (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 72C947F; Mon, 1 Apr 2024 00:05:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.113.126 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711929944; cv=fail; b=RmCRbVCKn3ilmr5yRsZODe0OIyM8pJFDI2ulnW77ZDIzRsYVWXBGvf6kcJ4veMoT6bQcLxT660jTn2Pmid1ZE8v5VQ2Okv77htvJs408HZIkRJACPeUW35TEMSOZ7tWidqhEWS+F7pRq7zDhIML/+5dUhMIknb4m2KalLcfVzZk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711929944; c=relaxed/simple; bh=+OzyFz8qEq+fvSCCLYMKxODLTLiOofNVDgQtB++Astc=; h=Message-ID:To:In-Reply-To:References:From:Date:Subject: Content-Type:MIME-Version; b=QGhhnK5qJQ8KizwCDK3jxwQ5DZ8+PDT3P7SfBlwydr6V1Ip7kdsjIAlZTdu36FypKfCOImm6Brd02tSzQ4s6jo7PawobJHwdzBBEnDrj7GNC4iSTxBLfOXGRaGYSag6IoOmoaWzaV5OAqheXI/UIHA6Po8cNx1x/oEpw19zj7RI= 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=VIOdsMhF; arc=fail smtp.client-ip=40.107.113.126 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="VIOdsMhF" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nhe1sbMVPUfd1NaqRHVeRGdUP230iKaeZJEcNdgvWRc1QQnEFctG4Gcp5EWZ+1bMCFS3JW7scdnDfdxyhpSRqQzWzk6mZKcug0GBe9d9Q6X8miQHGHnOrlWdh4TJ2rBgksVM6cgQvTZO9DuMcCPblL/dp/f95d6HzzEXTnwQp+IvcAJ0ajIweqcai8JagAhFRSuF3/II7ZnJhJKvblkOoZgJLUAiirqnP5Ybo9k7MYNjc9QJvg/HCOjk5zUsLChIHzt7RYkIucOUaqZBiQ3jWSnIGb5MIw6YsE83Qjlg5jgTqhglxmeHYIuNDUyhLcyvLcpkUUq8mnB2yNw9lXpy1A== 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=NU/WFUEU9+Vgl1x0Z0UzrTl7yEXRkmD9+IO2Fh9GS2Q=; b=V09FbeJ1A+GsPbFdRi1K5MfSYiQvrzm/0I2fKb11+w0ltFSQn+srkHP9SsUCHd/GZrWNBqAqIEevEv/CGv3m+p1Cta5paO4XGXvNe14ZWjzdSvX6wxgFDK+jiyfi+KbC8vjS76D0s7887Og0+TtI0tTOEfmPUEKsnGLeCJE09kZcDuvcp6v/mxRKUSsgQYnG7JtxKcIxBahTp5gsFQks23HwVvgmEC2Zs7lYJsjaDbALO3ju8hAoqmv2ThXZce1HOXtbtXLXT88CASKwU9e3bmMhdgOSOgo7fhhflYM7KErP084gZl++SOHsBi4wfwJPNnPssVCEeBDBt+elyiI6cw== 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=NU/WFUEU9+Vgl1x0Z0UzrTl7yEXRkmD9+IO2Fh9GS2Q=; b=VIOdsMhF69zrXgI1hrOaJxMjOrGwLLy+LyrBLLTn73te33iEr/XsllkFyjP328kbGf1aFtjlmy3Zd6OTo8L6YPihvUumysxdhYNmwkMEnjy54HTfqOERT9MaqqJdVaXa+Oi5MpJrs69hDfdBTYvMdIW6/QYaGb9Gm+iE9rlgOZc= Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) by OS3PR01MB7826.jpnprd01.prod.outlook.com (2603:1096:604:177::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Mon, 1 Apr 2024 00:05:36 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::131e:55c0:a4a0:713b]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::131e:55c0:a4a0:713b%7]) with mapi id 15.20.7386.025; Mon, 1 Apr 2024 00:05:36 +0000 Message-ID: <87bk6uueun.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 In-Reply-To: <87cyrauf0x.wl-kuninori.morimoto.gx@renesas.com> References: <87cyrauf0x.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Date: Fri, 2 Feb 2024 10:28:56 +0900 Subject: [PATCH v2 1/8] gpu: drm: use for_each_endpoint_of_node() X-ClientProxiedBy: TYCP286CA0194.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:382::8) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OS3PR01MB7826:EE_ 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: IXAMnrVnqtyCoy0IpCs69EmBVumd6E79XZd06iNA2Ijoi2/Y4DJIh5BYNgW4Go1yulH0V9mjt0rDPdkelnEn/+H0iMr6cFPix3DtHsAUPpjPHO+YDwaoYiETbCaaepHidk/z1ZCm4ch+VO7jHUBAFj6m5Ea58nWpzOSIgn9GsxGObNKlvNkFkogv6/h9dPJpGmdmRLsPX6ajpjg53S/aMgZFvPT0/rc8kAiuVxYbBsj8vmuUBEupJo/4XzrPErDMX/ZBpLLllGLhSl6XdZcEHlbY+1KKNaH+N3yHVxkqqCzFmOlt7HRO7QOSTIQ0pJbayncGdZAuRWdjgEq+l7d0+KHILzN2eV6YZbQ5jP6KB5p8rJxn3MSCMxv3PmbZEs42QqzaFv2UCogKaYO3+bosoaTdrgRRXAcni7ECbelBrCA5EmptZjequEn1cZp2t0v4xArFU4NsVY+x+MvXMAdNWOnRqIFujwQJwZ2NI8lMUk5z310CTKvjh+pBaauAegYKnI0apinswWxbnjijkMTazPU7BNib2AGcJs5ieRObYoR2l9hCEnrBgbH8UJ1NqWinqOEGfFrfX7XoemyfvQkvmUQhuz/HjuNr0XJTw/57eY+ZBqzd1Xmy9GutNnaL6dL+5RlQBm5fcHtzo17hjqVKrURyZ+nj/6Z5/3ER+h0rLzC217cvH0BEL/VhasOFI1p3mEWI0rd85wl4mJhMXezNzP1TvltpSff87vm1J6a67vY= 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)(7416005)(376005)(52116005)(1800799015)(366007)(921011)(38350700005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: PAJehzQwQnUnRzbxqxlc107kYsbh7VyFwii8PJDeFpbOeZ4rRCcaFtlulUoSuxW+AOvHDrVNrAQPSqWboUX/zMl3FPThNc5qiBvAckY1wrzxntLAdwMzBPvyKWs0cA655Mi56NfiiEdWNOCkaHBc6+8ILA4MtX9msND1mnv0Dh/0qrIlMKFPKF/1kVDX34nQT6m+MOkhF24+vCbyKvJ/QNHstYeKlBQx73cm/2jF16AbkE75SAevodD7RZ/kg5A+eHGm2lQBg7WgPzL0E4NVXW1NVAcqbVplTXps21MQFHwTiLbTpc3BdNxDtj/RRIDQFScwvmjsQ364s2//il2ad7UzZUJq3MFhLtLJz0bxjZW4j2wdVBlqntPvu4Jhc6GfPv7K6azTFe60JlVKVlwLsCfs66AqD2jvmySZ95gMx08AokH0xxFVvQqSnEO1i0kJFJZns0l91WoXVBfLKy707mKvNcqakBEnZ3QmLymhVf5FGXPtyJmKrHJx09XYhQ6lkbyz5/Us0R55I/VNaVoeNpi2nBglsN9B8F1qN/6CRTIdFdJyDhAIHa7rxACfvSztKQnUCPAMy2HtlEsYBp0SQ8VdiBLp1DiK3Vaqz7hWMeE1hGbrqcKXTItIPMcPFO58g8bmhRgp/wz8WI2vT0xcnguSj4qvCMmhMvSgdUH3Ew5IXhmQJae3s5Vnj1b75aKRdgPnqrTaYR+3k9TbNVtTiKZwBag+8zXKteiJhj214uzzoPIGfxateDTWMzNeL3+zCsQs8jSUUQ+KZoX8pI5uKVaiLKgEbZP0ofvk0ahJyERaq5bo9SV+Xm6RtPsoyBD+I04iGMjhlhxBdht1h0OhIZtC+1SsOOVJo5ApLw5dSDGeyPLGKudoQXkrBk6kEAmXT0BstX/43LD5ExKfSOnC+0NI5TlJeljvP6Evgy714a7x3XTaJz9aQUvwE6FXWzYYCh0ogcRztSKPJeRPYNK0G7vJ3N+QYTLiOkBJE4zOp8cOe9JdXZ+yJKlEcaHCB12ZLPC8w0hYF3G7SxFK3RAYkcrvp7LUxDUefHL4HnA9ytW8wfgCwCqX75jGZe1fBz2NqiDu+URI+6bWHhIocIDkeMOAli7JtwQ56vLCrG57QxyaPgdwcZizQZ3FCpY4T8kCJdouQwsc68bK2WvTroMd8XCfqnH8xCZejZPRKs32k91ns9Ofv30+b5N/sotA3P7hh+7/3IWnx+jbciZz0aSLyexXmhmogazajogUo+HXGoPBLhxUrHSM06mHgNOsFakTywk0HONKt+ZArqA4BBYxuwm3XuCa8YQb5Asq49Rgr4bzXkbg2pZNuYvAIWMlG0jXflo+3c9NTi6FSXx2PoK5QA+ITtJTWMPeY9SelS3rlqfbOcEo3a6GZBWp/LetUubvbGe7DE5bTrVdKHGHRksfCAfbabtUzvD3n539oy3zkkw15G1zuy58R7sZ2MOdkie1DkE3uRpkcZMpr3Cmlb8fHzQ4JINirIpYoKeGhAUByENAu+Bmf+1Nu7FepFaeIe0TSo7SX0HIBoTp6569rkjaPO9sn7WD1/NJSFakOm5w/TZW0HhoKow4/uWMHih0q0xfYxPwAlvsNBYxFZKrIuucKgD0ZNygvT2fYcnWAeYm/eM= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: bdafe737-9558-468d-88f2-08dc51df7548 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Apr 2024 00:05:36.8147 (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: 7L8GDgR/ptrjKah+GxZY80Txy3+TrtZiQz0I9t4sHcFH/F9PM+7aZ+CSPPvZAO+bBqs9jXl3FETmHoS+WWjF/04rvvdJLpeLOe+2YrWEuNk3s1uRW4uW6G8gU4YnDA3r X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3PR01MB7826 We already have for_each_endpoint_of_node(), don't use of_graph_get_next_endpoint() directly. Replace it. Signed-off-by: Kuninori Morimoto --- drivers/gpu/drm/omapdrm/dss/base.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/dss/base.c b/drivers/gpu/drm/omapdrm/dss/base.c index 050ca7eafac5..5f8002f6bb7a 100644 --- a/drivers/gpu/drm/omapdrm/dss/base.c +++ b/drivers/gpu/drm/omapdrm/dss/base.c @@ -242,8 +242,7 @@ static void omapdss_walk_device(struct device *dev, struct device_node *node, of_node_put(n); - n = NULL; - while ((n = of_graph_get_next_endpoint(node, n)) != NULL) { + for_each_endpoint_of_node(node, n) { struct device_node *pn = of_graph_get_remote_port_parent(n); if (!pn) From patchwork Mon Apr 1 00:05:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 785535 Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2134.outbound.protection.outlook.com [40.107.113.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 5F3EC7F; Mon, 1 Apr 2024 00:05:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.113.134 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711929950; cv=fail; b=E/NjkPe7eszEZcvuDXK55KSO3jGxgqy3H+o+SrDKVyronlokRVSaraMH372+lMU/E79VmPtmlkP8mAqfO+f3n5YhDXLypvNbv1/4RrWSpclQiR+1uRV3whLRF1ff9XxYJrntpMtPttheddwtlJtGoPORwAglTxmyXwW2PkDD8no= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711929950; c=relaxed/simple; bh=HwIcEEBok+YwY5uIeiAIVRaOEW9qrgNzSuv+25dGnJE=; h=Message-ID:To:In-Reply-To:References:From:Subject:Content-Type: Date:MIME-Version; b=rDRFnXOREXeMJtTwZL3mTc1gjzODhvkZb7rG8+n1hf9Pidu4O2r+6BoeFQGBPH3Ij6VwINsOlWa+PTP4fZa88Ol6XvGEwkWwyw0GJ8F8xUqbF6Oycz5OkyVgFDoCfIcnCRcXeHmsJQ0rPhybTzec+RXXLSTarUh1trKRIAJva6Y= 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=p8quwl96; arc=fail smtp.client-ip=40.107.113.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="p8quwl96" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J/sYn1xa9o1lp+hDwfD62SrVaQeJ4LnLUhefvm0hMAPOzZs6tqn9v5Bzda0PsLdJ/vMTuk+QMGfqjBrPHafiRspaYueV4zSTGtWQr3x9aEv2HdfqkeZ5OmOd4gXwK1VLSF8LilpiR0e40ka6mSlCvlxPVAdo4qZYuHTv9mN9Wtl01Kc0FThJEUeNOTgMt058GrRoFmo9qkG/2huo5oM2Qt29ZXLjbQys8ryliux2EchkWI0vVShoeQ3wcitW2d6eXL/cxywAb5MsTHHIABxReSnjweQRorCkFOE+wfYLc+JjwZW7qWf4oh15X8ApsL94UYMFvpvz1VJ4pzNngZapUg== 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=+bbQqXVHzVGktvMbxdHS32qeD6T/q73gw92h0AbcRqI=; b=iAJkfOb5TWvNzvxH4cK1TLXtDWtKThWkgIntLfHGeV1AQjqlZDvYTlWEo6lyWmxBodHNy/l0UPxfHAWKY5tll1hfVLHVOfO/2SVq4s9qdy9DQGl5u4H2XUcZJyrNzUGZpqvsXHQ07Az29VXiKmc+jR+AhDxh4Ur9OG93KUwJALkS6Zn0BQqrcmeL5vZARCuzIVIY4Z9llfIyaBVtGfOYpyZ+fTXAI7z0Yq20qNCYE27zmR/7q5+3YV4TeiEU55a7jbtCo3+ohfFiy+Kf7KIFLyv0O9QHUVS0MB7VXAs1d2y0q/zdEpytW87u7d9qlNKjYRn5i0esXLXKXruNbiQwWg== 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=+bbQqXVHzVGktvMbxdHS32qeD6T/q73gw92h0AbcRqI=; b=p8quwl96SpT4pWYbMFKdGaD2aW/BHsQ340VG9W0saInJsCnHZEzA5YoYLQk2k43pfWYsLewGz7rqtDubV28CqQ41d3QmPgD/MjWiUcEkRZ9/9PSFHDXsb/jsDwFomIiyNVZGPbgMmd0zDCdJhtlrr34QHajJxtUn/H465VT7RwM= Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) by OS3PR01MB7826.jpnprd01.prod.outlook.com (2603:1096:604:177::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Mon, 1 Apr 2024 00:05:44 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::131e:55c0:a4a0:713b]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::131e:55c0:a4a0:713b%7]) with mapi id 15.20.7386.025; Mon, 1 Apr 2024 00:05:44 +0000 Message-ID: <87a5meueuf.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 In-Reply-To: <87cyrauf0x.wl-kuninori.morimoto.gx@renesas.com> References: <87cyrauf0x.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v2 2/8] hwtracing: use for_each_endpoint_of_node() Date: Mon, 1 Apr 2024 00:05:44 +0000 X-ClientProxiedBy: TYCP286CA0180.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:3c6::13) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OS3PR01MB7826:EE_ 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: 8CuP2xPC3JSitKax8y6OSBGdo/AFsaVNO+pa9bniysqDWI6gwhox9dgKoblnMd8W3Bm2XRadsusaJZCaq0gFWv7nBVhgpKr122NwDrDjRKbmtI/8mdNxqYZUA3HTHTVbLQyPDC+8N5U3UVK9J3nJZX5C0yU0wVpizn5DGttt5XCJZXnZTlY11T9Zit4/0gWHrBdtUs+lw/EfoTYmyXmkGpIXPnyiQUFdQKhv5g+tgW0auprOp7QcQvLFkVoAF/bulSdd3e6qsSd8kNBJ8oahuvGaPV4f83s+A1vEnHkdaYCMVIBQb85e60i4Us+ge9sca4mQ2rU7MQz37eLU6vDGjN/DKm40WxvbrVe1etvuJNyRWX0fOf4f6BTcMLxHm3eEAw4FM8yVhmkNm0m+UPQPrF7hlKX2Cr9kyMDHnFUCHFsn100K8MCRvTJJOxd8sjYw+8hEv3OdupcIBskQis3cUKFd+eky4ajINdNEn6+xxD8OtQ2cTwk147I5k1cjvqCBCTYWe01mkeRlHUR/ibSq6+ap+6hG0g5iIbDcUMrD98EOwXYYodQ7XWjToDwLigiwDVYj2TIdhrCsSIkscJboKXBXiQjXU89v2SBQ5OIfgcBQqT7mb3dha7wFgArB9nm6Pe8yejkfdJc08AakqauxGf7Qql1iw8G3Ic4oPTObORh794wNxMpb1lti7oA8c4ZD12XGArSFEKydL2d9Bni5YaoP5w0xcSHer99+fZOTba0= 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)(7416005)(376005)(52116005)(1800799015)(366007)(921011)(38350700005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: DshqatcAcmBb30YHToF/DocQE4M+miBR9K8GfvHSUMzN8UuR8YJzbz5R+zkVqvMJYwax8wYMOT4ZblwOJ99G3sjOAdsnK+EdGGqEsK26t5tOaPsJJ9SrsMiOpTMUWGliK0S+THwHzQ2Wl69/CW1k9AHACOyU6VcfXThJDe6CTjWMi4bEJyVO//kMxMPPo1Z1FNFI9Cnlcdvly5Jmtw6sLQQtzJiAflvTxpnBp9vhnrhrZn5jSQ9Ne2JuX4KZEB7Y74klARbVS5rVjJQhiFDhCCnUnYTwElOtcB21mdRY3hWr8E/c76PExYq1AC2wo3TA7SJJ82q8fKiOtL5yO5BE56ZBxlXEpsoIsuT+07bpG5R5ORium1AGCDSeNk/NDc0sXGIdZBawynbu4qI64nBvIERQKwN+yd/S5oXBoWiYbDIlr1jfkZ00PMVklrTGPlYMpHReVJ1DKFs7GOEXM4wx8QgTKhVQ2n8izpt2iuyssk5u9GibFP3fwEKF8S5aqCwMly6K5d5pVvQS7w4HuI2FlD06LwdKRJhv8GFKqRHodwVYIE4RF0vlrEICNbY+qKWdo1kvORBo4Kc0ycQQH83tSvL68o1ewAtUF+EAH3BO8jXGWFFqAZ3PR8FfIV9cdGBfPEw0vVXzGAbfVUxgZTC+D5QSaAKQQ2fTMKmosJATv4oupHFPyPvEFn9gGpVVoJHm/FLToJzKRSs8cmIp078HZWdSizuGByjNWbDSOgipQ/1haElIPqZKeEgb/pyAfZ5K5gCzz3tulJuxajPzSFniIA2FJvzFxVxbznWmIOvK5Hh0pr8ubtdtLviYJPmLVVMPAoirQReOQ0qH4rNAHEvzWndIJbAHFG1iIOI52fjLG7ifUZhKnOzSxGBwhIeli7auLM6YnXtPqP8mowi2IETSrcIMAkyv9ZrUbz4MRW5U+OtWLVcpvgAgRDTBIzFzRlKFMA0nPnjgF19i14UI911f0rjdqYzq++1rYjPbP2ZCQEDu34V0D0l995xnb5ctJiEA+D1SekkBr4CAolAAPqleiuxbm3ZnfX4EWhl1Otq5AKXTIyg1Inmod+0VFcqzzsvDEV5m5kJ9HDaopSz3F6FIO0HSnx4RDppPJ+yqWyVl0NUVMMfpYS67oqoiLxt75PueVj5k7xtBhsp1DiyF/cE/sySoPi0dXUEmZGhffR9f14dsB2ArS6panxJhqZDfee1Nxcb4owoSOoflcIT+A7BPfCBkqcWenAh/SApICDfjlljeHFQ6JQ8fboh1hUc+RBKnNNSZfppx+Rw91+hLFFr26rnnzXv5hW42KqK1P/uIrZJymKfRow8Je/PTwovkTTCq3BtbCvVHtqbvAdrRsk5sefvQegCNQD+8lHkP4kDzdjtc7EeYgTphymUIDkhjaEPtvvXyCy2520NzBtrJi6jtvvj3dgUOojpzWj2dssD7hDvySWIrocF47F6zrv10I06kKmHugsDBobsP1kBwElpqp0CihHpFltGLDaJCFFGB+R7oarpx0v4yxZUgThZWIm97jqdW1+D7l/cSl3cJnertqUl301M4MxqfQdYrllatdUo3Bjd/yP8NwSSZxxNQSil/GeI7kIzNGApd/O5TuRtrNJNDWjgLS6bQXixLvC1FjrY= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: d3b86dab-1369-4e39-d494-08dc51df7a0e X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Apr 2024 00:05:44.8464 (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: EY0Guv0/G89AZOxsGaijSuAUUuZXVnJ1gJJDyrOwQD7IEHYntdJy74AqTRy8yK83RtR89h9g8zmOF0NP/wnd+aB7eYDva7NqksWJey/hbwpWRq252bEmI3nCu3ui1F+3 X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3PR01MB7826 We already have for_each_endpoint_of_node(), don't use of_graph_get_next_endpoint() directly. Replace it. Signed-off-by: Kuninori Morimoto Reviewed-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-platform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight-platform.c b/drivers/hwtracing/coresight/coresight-platform.c index 9d550f5697fa..e9683e613d52 100644 --- a/drivers/hwtracing/coresight/coresight-platform.c +++ b/drivers/hwtracing/coresight/coresight-platform.c @@ -275,7 +275,7 @@ static int of_get_coresight_platform_data(struct device *dev, */ if (!parent) { /* - * Avoid warnings in of_graph_get_next_endpoint() + * Avoid warnings in for_each_endpoint_of_node() * if the device doesn't have any graph connections */ if (!of_graph_is_present(node)) @@ -286,7 +286,7 @@ static int of_get_coresight_platform_data(struct device *dev, } /* Iterate through each output port to discover topology */ - while ((ep = of_graph_get_next_endpoint(parent, ep))) { + for_each_endpoint_of_node(parent, ep) { /* * Legacy binding mixes input/output ports under the * same parent. So, skip the input ports if we are dealing From patchwork Mon Apr 1 00:05:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 784971 Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2136.outbound.protection.outlook.com [40.107.113.136]) (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 E8DDD7F; Mon, 1 Apr 2024 00:05:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.113.136 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711929959; cv=fail; b=ntKIKsL1DRBqzYWCsxiLHdJGUmRaK5wklwne43+NWwMQDZDsJ2zLJiKPnUEiwUQ8U/FBB1qAXdnAb/TYetvnX+rvZqdzCXbCaDfeRqOpyRr5/8/tgPkk+dNLTzz7ROytcRz6ZmtmCcWBUhcAFXiIKyj27bJgVWUzfFuSLQmLMKk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711929959; c=relaxed/simple; bh=lfnFGW0g1UBMeYtuZh1KvY2Jnm2sDwuI0PU2aSTCw+E=; h=Message-ID:To:In-Reply-To:References:From:Subject:Content-Type: Date:MIME-Version; b=mAp55LzGZce+UywiT3y69jc+2ZpU047a2mkEUysRamc7dW0LKrpR210w5Lv0Jhq+S1kYBabW13iR7ruGBkWxqb/0SzzZhF/q89Dp4QSqIAQh8/MXzeiNpnpdicOZ0dIoKQYoCxweTKQKKTQgzlhHP0CCIzkNCUe8cNIxP5pTWHQ= 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=XhJzAbYo; arc=fail smtp.client-ip=40.107.113.136 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="XhJzAbYo" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VGazy9fsTdMeACToC9ne+78DlPGaRioJt/maIKMqt2GPVJPnapvKUeLz4GEUVGjgL4IyzUcTcoYuloOAgo6xHacCZdHwJDwzO8kuzwfSts8Kr0PqKPC4oaBklxGuJMY/ISGt8jCaQGgHGE8b8jg5+27P9OkA0buYsmvf8woHnX7O6QO2UKttmntEgx9pYuUdnlNmqBfeOKc4q+fNays1FL10NyQbt/i+/1BQ4KXPJ5AnO4x5WN9nHGH+QodyNjoA5siocrwcyJ5eOZVDjQL8i2Hm7G2G9p0HcjyJHI5xfzBY3J8vEimT0cxuLR4Cvk2D6gxdEb8AWoxyTJbzWHjKng== 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=dyRXIBsVOEuvEsI+HIz1KBO2P7gmWNbvh+DmO4P6oN0=; b=D5eVUUmo7Nx8l0j2Q9d+DmDXhHtuIidg8mNA5Vt8lyB2GgxAaBOQymHVoRQx5yo4CBJkAqfbzvpGXlzHqGbhqgcgZghneZjxt2a71KhiP2qos41BIXsByBn4YEcJVMxzk6hiuTeI7zFjaNzRmbcJIImoTDXU2HFMvYJe2jC0d2vKISUzUIWSYhRHEfBWPu73NRLhVn8MxkhvdWvcq8Dci2WZRCpKilK+SxPAjKhgC1ibXKqvKEUKJj8WSHMexanSpiUMJUcLJG32FaYPvZui01iTVNB3N3a0woSp/V2hoe9L7O1JxLK5mWAQYgEkFhs/D29A6O6DXJ5z+mTYwuling== 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=dyRXIBsVOEuvEsI+HIz1KBO2P7gmWNbvh+DmO4P6oN0=; b=XhJzAbYoFF4r2DmnszfQiaoReVE48EA+3uEch5oGF5Fo9thFxqJENUU9g8s5xUpArxaO+AN9hsl+Sh/dzul4FxkOlqaNVxyrWAkge1F6Aalm5NtpJxhtpnNxP0OKo0Mr89dUKcDdslZNHRQ1ZrdAO4QRd3McV6ZEDH+h8XkWCro= Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) by OS3PR01MB7826.jpnprd01.prod.outlook.com (2603:1096:604:177::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Mon, 1 Apr 2024 00:05:54 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::131e:55c0:a4a0:713b]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::131e:55c0:a4a0:713b%7]) with mapi id 15.20.7386.025; Mon, 1 Apr 2024 00:05:54 +0000 Message-ID: <878r1yueu6.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 In-Reply-To: <87cyrauf0x.wl-kuninori.morimoto.gx@renesas.com> References: <87cyrauf0x.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v2 3/8] media: platform: microchip: use for_each_endpoint_of_node() Date: Mon, 1 Apr 2024 00:05:54 +0000 X-ClientProxiedBy: TYCP286CA0151.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:383::8) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OS3PR01MB7826:EE_ 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: CwSm7xsiX1NZ6fCy5313Lmt2v5cv8ZlZcHAiR4uf30MDjYYNmj8kL4YnIFvBrm58VdXdoTDWfhRjXmeArXTd/TWFGGNfIwXz4kiPOtv5e6oMo/SERVSSCgm8IM3ghlRKvxyIjvxWtc4HSvA4ovNaahE5yB+uQ5vvnW8oHHGCKVolwsOG0l9vSxdwi5+PhJuO14J9Rysj+E8ZUKbZXcPe8PTJfaax2pDHcgOqi+jTD/FZTMkWIdTsyVcwY6mBZSSPRVGzgFEAcrtzQTZs5vWSyTMOAfCWhjHcu7K/dUy5ptu27vrmykZtlh5VwDSvSROI4cz/ymMAtP5Y2+C/uEH3Ua9qfMVYtZ5oxmgO1V9OjiGmiUavVMyvdZabKG8QUWDRNFYif6f7s7y/vU5M8bnLr7eqfYa18pf1Vtpd37FjVWHE74QmL585xhxWNbDneRVm/h7il/zlJClsigUT37SRLqx78bbcjFe4Oq8doyOPsf5Naix8oULJoowDPXnFMKiyhhFPIVe0ooN15jTKJDEYaFKl6BECCUKCkBTdIpxnaDt3hrUjMgINKEr7q+4Gku4plFRNsrueykJ9M2hdOmsiiQYsps2e0y3WhlAX5ouQXyUyWUNR0DPIj9ApYxTDLCaiM+RxGsOhWgVnAfdOi2lHLlYiTCLsZKNJHy36H4No6t/8sfY2VPz0RkV4rxtBEzsCDUoTwPcCDHLJAMCgH+qng1+z1MPgPMK/Edgu/QGhIcY= 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)(7416005)(376005)(52116005)(1800799015)(366007)(921011)(38350700005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ugaFha11OrynSRHxVm952CU29Hl0dl4obe2Ig2xEtzZKGPjOBvmF8Nc/JiLWBoxOtJe17Yle4a0dOcPjt7yTL0TEK7Hph4MC2sBgGaInRNrvdsQX4LQWWvsoINSbftd/vCzW28MaXfNL3WfqMjqmBG19Mshj5LLvwdV5pG27HXsOE5v9YUIX1ZGjLixSagVkPtTEsToMm5PNRudLdZOIcpRFDINiJwJT6rmN0q1blYO2M/1XHpJtHka0V6vJKoHu7+C7VHEWMnBYaPOJA3LbM/ciMLREThn6SzrfpQR4bhgw+UHFMb4G+CQONkHhuGnXPyYxMqXXE7tUS7F6Rmy6kfxMT5hexGZXMu97KCQ0WZGWvZl6TZhV5GOSAQzwC3FPaV2DzwzfjFG/D2I1qh05jFZc5AGizINAIHfjWMvXkYULXnkXsZBFk0danVfB8xrL+fCw7xXaCEu/d77f90Qy5VM7zoMdqNU/I05rTG8BtSWS2lo20zO6EU0aGm++OKI4vlTrac85kjWQ2zugplIC7RBsWTYUDuKBA0mCa7nJ33wM00DRHQhMBfAqyQDzUJW7aCB8GPKLUThquWrJaBoHkDLqFqI+mRYSj44WF/TrVx6nuWjznbaKte4HB9w1EDOoFsO7pp5GPcY2Z6UKzrleK5+6+mCkpmeoz24G5Axftjqs/B0GgddMYyMlleZhq+SVIw9wJP+0nQ/umQbk6uXgnwlJ3D+mAg5c1+dRIWwBWMfHb88pIuyywuZYjWEk5dxC3w2XsNaSCWX/3U8O2PT/RMXKGFLJ2h/Kd1jVHipBpYWzfvpTSnO5JGBf9tVuXpvIzoh/0NX1zw5hVOItewgPMF6RcT0ZEH53myRoKBT4HOma9IB3Y70sGLxHso0YfXFIyRM+6G+K4CFKQfixv/47j7okOSn+RKS562B/QMVG14fFrEgKmzV5vzg2j+QQE3NfKYPbRWwR6M6E6B/VzCsqGyfS0EABRMaI3b7LWBtVK02kq8yU5pXdQAirqstnPOB+t1XIdAPLJYIcOM0f6oK3g7SmtrVKaU3dToKrjuLUM3vJ2bVmQGFLNW7sD5++cKFzhIIyJqeBrlIkO5UWJdIC8RM3o+LxVqNK6EhEo8CbZ1Fc9q5/03//Sp5PtearfalAGUENF5XMyvCfsW0XJqaZUqdF0ZifHBawANf12+bxQnARU5YsSOQTuSCR1xrmtXKWwPyx7rxOnCmr9IoJRsWi/yraiylOZ+j0v+edImyDEgCNCfdiJOPoLnopRWnct+6GxWRWxO//xqxRuLxpxoBaOMz46yneT/7aknfsvLDbccyw6KwklZD+dV8bfalc7h6+f8oOUBbaW6g0SvJFs6mGcGKPA/2h1/ifLdP9VoJIkA1/5Fby1bTfYhN9rGu38iijL3/bRzrvZcS9J08JI44gnS0g8WyWzFohpjPERcpqCvNTT1VBvuuUKEOulC7SCgOZXre/8UXT7+lDv2VtvW2kmA8rqGR8biVMeYgcohSWk1O/M34uQlp8A5rszUUwPLeDAVsahvPEgiDbRZi1F3Tht3P/zovVUaXPjyfpgwTtr/J//lwbZPjzI3ZB9fzevvyfG09LnCpfIKixXiU8Dh3s6JZkcOnjP0TjHjTRbXAizaY= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: add25e60-5fc7-4ad9-ab2f-08dc51df7fb2 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Apr 2024 00:05:54.3268 (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: uhLXQqeWEQxTA0OWHrHUkVxqYK6kVVnFXEJPDY73oLnwQwo0++ok/2Plbss2q/dQUSUR9//33V8wy9JpgjYPgsNslhlvZePp9VWgeT0lo/9HHOpe+ZCkSQFUjWshi34X X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3PR01MB7826 We already have for_each_endpoint_of_node(), don't use of_graph_get_next_endpoint() directly. Replace it. Signed-off-by: Kuninori Morimoto --- .../microchip/microchip-sama5d2-isc.c | 19 +++++++------------ .../microchip/microchip-sama7g5-isc.c | 19 +++++++------------ 2 files changed, 14 insertions(+), 24 deletions(-) diff --git a/drivers/media/platform/microchip/microchip-sama5d2-isc.c b/drivers/media/platform/microchip/microchip-sama5d2-isc.c index 5ac149cf3647..d9298771f509 100644 --- a/drivers/media/platform/microchip/microchip-sama5d2-isc.c +++ b/drivers/media/platform/microchip/microchip-sama5d2-isc.c @@ -356,30 +356,26 @@ static int isc_parse_dt(struct device *dev, struct isc_device *isc) struct device_node *epn = NULL; struct isc_subdev_entity *subdev_entity; unsigned int flags; - int ret; INIT_LIST_HEAD(&isc->subdev_entities); - while (1) { + for_each_endpoint_of_node(np, epn) { struct v4l2_fwnode_endpoint v4l2_epn = { .bus_type = 0 }; - - epn = of_graph_get_next_endpoint(np, epn); - if (!epn) - return 0; + int ret; ret = v4l2_fwnode_endpoint_parse(of_fwnode_handle(epn), &v4l2_epn); if (ret) { - ret = -EINVAL; + of_node_put(epn); dev_err(dev, "Could not parse the endpoint\n"); - break; + return -EINVAL; } subdev_entity = devm_kzalloc(dev, sizeof(*subdev_entity), GFP_KERNEL); if (!subdev_entity) { - ret = -ENOMEM; - break; + of_node_put(epn); + return -ENOMEM; } subdev_entity->epn = epn; @@ -400,9 +396,8 @@ static int isc_parse_dt(struct device *dev, struct isc_device *isc) list_add_tail(&subdev_entity->list, &isc->subdev_entities); } - of_node_put(epn); - return ret; + return 0; } static int microchip_isc_probe(struct platform_device *pdev) diff --git a/drivers/media/platform/microchip/microchip-sama7g5-isc.c b/drivers/media/platform/microchip/microchip-sama7g5-isc.c index 73445f33d26b..36204fee10aa 100644 --- a/drivers/media/platform/microchip/microchip-sama7g5-isc.c +++ b/drivers/media/platform/microchip/microchip-sama7g5-isc.c @@ -339,33 +339,29 @@ static int xisc_parse_dt(struct device *dev, struct isc_device *isc) struct device_node *epn = NULL; struct isc_subdev_entity *subdev_entity; unsigned int flags; - int ret; bool mipi_mode; INIT_LIST_HEAD(&isc->subdev_entities); mipi_mode = of_property_read_bool(np, "microchip,mipi-mode"); - while (1) { + for_each_endpoint_of_node(np, epn) { struct v4l2_fwnode_endpoint v4l2_epn = { .bus_type = 0 }; - - epn = of_graph_get_next_endpoint(np, epn); - if (!epn) - return 0; + int ret; ret = v4l2_fwnode_endpoint_parse(of_fwnode_handle(epn), &v4l2_epn); if (ret) { - ret = -EINVAL; + of_node_put(epn); dev_err(dev, "Could not parse the endpoint\n"); - break; + return -EINVAL; } subdev_entity = devm_kzalloc(dev, sizeof(*subdev_entity), GFP_KERNEL); if (!subdev_entity) { - ret = -ENOMEM; - break; + of_node_put(epn); + return -ENOMEM; } subdev_entity->epn = epn; @@ -389,9 +385,8 @@ static int xisc_parse_dt(struct device *dev, struct isc_device *isc) list_add_tail(&subdev_entity->list, &isc->subdev_entities); } - of_node_put(epn); - return ret; + return 0; } static int microchip_xisc_probe(struct platform_device *pdev) From patchwork Mon Apr 1 00:05:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 785534 Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on2138.outbound.protection.outlook.com [40.107.114.138]) (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 28B737F; Mon, 1 Apr 2024 00:06:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.114.138 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711929966; cv=fail; b=tkV1Dd3+/PP3PiwoqJ22CbGHNE7Tq650s7Zy+jJ+TvHNrMZLZ6BDHeO20XgBeb0nudobw1JjdLB2dc+d2NTKlFwmENAZqZKTW6hfaDHYiEaJDXLapKFyhMjwYs4FnJPr+J6+K8yzTWfvuBI9u+cNpuLvZmItG2nkZYVUzuiVUZQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711929966; c=relaxed/simple; bh=y/VWUaRhrWh5SN3qAPvc6x2ypUvZHiJ5XUmvJNocumw=; h=Message-ID:To:In-Reply-To:References:From:Subject:Content-Type: Date:MIME-Version; b=E6FHZP1VTgTFLYHG7IFh8Tbygz/+4m+mnyONxXpghKFKnDHTFm0fVMJjLcvltt5/UGeDrH0LMVXfigjgrtW4uZKj0OMBuQBEohxKw415xZrlmQdz5VkNGuV7NQDquapE0sUmOlTnO8xvJgJOhXrBRa+mIoAttd48ux+XRpy8Rss= 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=NoG7hfbP; arc=fail smtp.client-ip=40.107.114.138 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="NoG7hfbP" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UlaXhIfgQ6YE8KeKjfskFVDS2kdOuDu8ppQEsnvXM44lRkPS9VoH/c0ZGouIIhNe/UEvhnr55CaW/Oquqb5+iwcgXvkc3nJ92fIk0xJgzT0WPLVZI4K9h1ImMZWaTywlCCgog6WtstYAKeh8f4rITHVq+4ehR7TER/bckyxAWx2/vHWLQUrCW1DpLefIcmKzA61xT/35fQJEkt5dTuf7E7E94MPLRuHoVFh8KQ6738bVcyqaNYbGr6tMNfwepp4aPlpMCtuBb6DbUUmSODd0sWDHwYavD3L64Pt7/JU7iSdc4PxHacUzRnGMxGJcO6nSpaHnLm8uPdRErxR2q7tCJA== 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=tWWHXH+ps4LD329Qze0LPOm8bcp19Ue9qMXFmDFvMqQ=; b=h+IBVDhwImVzuEefPkNHnAkDhp9GCMX6/ImYHQVdp2H+niRDVVVd8QgMLJPfU2t0cIFi3S7dSDYR+Ls2VUT5BPvPreX18z5Zc5WquspKP9d1TaxzSbBVYLIoCKoJ2tDkZQQJJXomhcHFWK+H9/5boQMHtvlAksoVmnWrDVWnZsBYnMQyGk6XI1ZBlOK+ium+7/E3l1BOQDBt8a9WDWbs20g7fsC42wCPjA0lC9pgoWb+4cuGgDD432KyreZNic7DrxKa7S2hrb9GGnoaAAanfvh3G0vcJwhABnZrTC0LKwWilqfvkQ9BvPMkLkZ46t72kGEOAXJ0wOjXK8LAuQe8gA== 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=tWWHXH+ps4LD329Qze0LPOm8bcp19Ue9qMXFmDFvMqQ=; b=NoG7hfbPmkEjtdKrFrDnSsRMVESyjIgPo150BSJLwYO/+E2khxdnDqWsIaFGRz4qouzMRQUbv6no5+5Q7uM6YvJPvucRMsl2jnc/tIPYK39LJc33rgYUxOxbrtsL3eiiN7cpcNuXlEuE2PvTc02hbz4fzx2efjyeMXk58lYHo+E= Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) by TYWPR01MB9325.jpnprd01.prod.outlook.com (2603:1096:400:1a2::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Mon, 1 Apr 2024 00:05:59 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::131e:55c0:a4a0:713b]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::131e:55c0:a4a0:713b%7]) with mapi id 15.20.7386.025; Mon, 1 Apr 2024 00:05:59 +0000 Message-ID: <877chiueu1.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 In-Reply-To: <87cyrauf0x.wl-kuninori.morimoto.gx@renesas.com> References: <87cyrauf0x.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v2 4/8] media: platform: ti: use for_each_endpoint_of_node() Date: Mon, 1 Apr 2024 00:05:58 +0000 X-ClientProxiedBy: TYXPR01CA0066.jpnprd01.prod.outlook.com (2603:1096:403:a::36) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYWPR01MB9325:EE_ 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: ua89y84TUnnhFvyPPAse0al1j0GeqPl4Wau7JCQXK3VGaEd0csgnReyd0hJOGgSp99QBhCGA2ay1G2H2HUnwTLdv7XZKXOvNm6QJvMT+sT/B9V47OBc6W/0RPrsHXAZACGD+1cWARy5Atdc0FyPOud0v61En/r2ytE2XxZoTkqkZWcRShTWvMSd8c4XYB4gbo/Nw26j1UgtM+u2zABTAw4fw87XVpIgU86RYASbHx7oDu/cso/EJMBFP70xpfOuXQFucCu/hu5hXUA1a5Nu48U1TVbINd9sdA4K31Wrq4KBe4StR4ogLPN1Q8xhT+JDYTiQm8H8zSle57cQQzqAhsQR8VhL9v5/NT5WvI6AEz3uzeWui4qkahuuAcC5q55HlUfyed9dQDsG+SLvMYketSFJTxlhIJKtvfpjgrs9MuRP+vKmKLjJrrr6sIg7hOka1MzT11xAAwUP0gd2KZUsuc5n+9rSxispUARqwR26xxLKv1pibRHZRi2xiEBon1rNuEMEKSTBgbcyxCgx/aFAQv0HNU4qze5L+uEWniWoRYSfyRQJnnSBryWjEmQao1vK2tszh77sPO1Ud6OdXjmiEf/tIEmigbJld7rHHHgZRBV0wo/1DQSqbnquoDNc20z96aIjSsMcJOuxVwHyKx0DfBnx7xGmrsYywv1oTsBnEnT4UzL2vxGZaKKKl2HWuILmiya6Sg56hgeCv8w/A1u+3anfta4bSFYEG6d1lovLOLpA= 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)(366007)(1800799015)(52116005)(7416005)(376005)(921011)(38350700005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Az8uJD9uruA9/v1NM8dnHrjPczmr31tln/ClHXdUTAif17MEHKqsQQM7z7m6hHo2WHq4fr5ZVGREy9e6o0+SHNW5CEKsgUOTwScRJVx8u39MLB2tGuVmDh9Z+KIqcR4z8EpL/urzMY+0RB0igHn+q2LK4nuZpoxW14w6fQlHH/SpGOFlhYQCQXXjgxSS4X1L4mVmkx1hAhmNPWLFMou4X9IonjrCpE4uIq4DvkiyDzLWXAKH1vP7FWI26vWOtSN+jZcrRKwdgUjLKqBJ1qhtYknNSLeXpHn7k/o46zbTUoZItMMSQWjbJG5w+81+UaxJTHV0YCh+HAutrmRuhGm0l/Z7duQRDfGTGk6Xh+W7sL4+VwpC2Qz2MQnYyE2vTU85nF/I1QLAzwFuO7GLVAR5Del5srmHaOcuP6Rio8WkdVG2XWoC5B2PZHDORzckzN9zoIX3sdm0l8fhU8fKSPuHYiIjCHIZEPXsUExzVw27iDYIMqJyjbgCkjNDT2idjIgLp8Rvx/Ml+VQIV/yMpkAzkftdXHTqDc4puQKB//hl+CrPaS1W9wCjvUIDOijjlyar3dvA46rauJ4b/MA11tarX9A4OXrcR7GqbTWenzvrSkaSJ6RTOz6OvXmLn43UqjIkgB/VQZYW5tsrvUk+N8+JMVx/E2mNrWLWavw0xXM4AsDiyuOZVUfRgJeasL6kU7tlbGpH2ZmxjTkdMwcwQckUXbdJ6VEFyIB8Yl75YyZJvyGM/i0BASnrlg2MuiXhrrvcs5JyD2TeCxYKQEjuoqQZAjxUkjWnSJUZz4dN+aU0D9E64iy38tGl3tQZPXjCWUOsMWzthyhq/K8l/WSWNmyK3/kXxdtpgfGT4GOXaZfJLrBv1R9IHyrntQsPkCkbMsi7DEyIBvIROSJmtqVe5EbaeHf+AljyfV+jcDZnDfaCMpqdzmhSToj67vAuw6BFsqFB9WEx+fiUccv8mzC7tMj808TrUCIcYz/fVrXILEs8lr1XX1xmeLzVbLKjSUW0FyAv62Nx6cgB6UJ1FayheKZnTpwNtXDA1Xg885ICitrEkchihecUINNBNwVr4ODPhzQoPYytQzparCSWHFlswhbiwPsPbk1SS+AEMzYWFMOysHo2lmeHZFoyN1GIIMkEZZBknYMVH2Y/LIWND6rXFGxZFYrmj+H1NzHDJyYCCisbCwnnpJv0N1wApKgMwzz22ji33Ns9+KgqK6NK799Y+BKdBpteHk7VbBTS9Rh32jEvklIRmrg24GZ+OrIrQSFYCwYmKZ+293wFcLFmbBCr/ZpZ9NgCIqw3GrZM+ljXoeINZKmZyeiytjj+/XDs7RUYh4dE57fIG5UACrcumfdfjd0WFTMckmJh0DqS/PP16pRYFZKBvyQgs/BhQ3V6gZGfIGTrAZMzpNlg6nkSzLLBR1DvCn8b0t2ZDsK01aMATM7Kf+4wGWRK0kM2ify2uVttCty7YcEHi9oWY0QRka6He4E+fzzwN/fJXxPeuddNzKvUhr3/yPijitFkC3V09LgyV4UNO8+RCgDyRK0cQwXyYxroultyp66HVKILnhiHd/kZZP+3kPvd/rybcjHZA46CVWK8yQHU5r5sIdS6Lxct+tqXTZgl4+iFIzRtVYD8onBMjmI= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: a175d777-f1b3-4e94-e695-08dc51df82a5 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Apr 2024 00:05:59.2597 (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: Xtu4pNUQeOomlrmqQrjmSzDAZ0RcPMBte31cLGk4RleQGBj5EGBjHMUnyqWe7bnUbCRpsj0w1+EtKaWfEPEH87jUDwXE25qY5s5yp317GG9s1hAXXPenc5KFKHrsCvWm X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB9325 We already have for_each_endpoint_of_node(), don't use of_graph_get_next_endpoint() directly. Replace it. Signed-off-by: Kuninori Morimoto --- drivers/media/platform/ti/am437x/am437x-vpfe.c | 12 +++++------- drivers/media/platform/ti/davinci/vpif_capture.c | 12 ++++++------ 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/drivers/media/platform/ti/am437x/am437x-vpfe.c b/drivers/media/platform/ti/am437x/am437x-vpfe.c index 77e12457d149..009ff68a2b43 100644 --- a/drivers/media/platform/ti/am437x/am437x-vpfe.c +++ b/drivers/media/platform/ti/am437x/am437x-vpfe.c @@ -2287,7 +2287,7 @@ static const struct v4l2_async_notifier_operations vpfe_async_ops = { static struct vpfe_config * vpfe_get_pdata(struct vpfe_device *vpfe) { - struct device_node *endpoint = NULL; + struct device_node *endpoint; struct device *dev = vpfe->pdev; struct vpfe_subdev_info *sdinfo; struct vpfe_config *pdata; @@ -2306,14 +2306,11 @@ vpfe_get_pdata(struct vpfe_device *vpfe) if (!pdata) return NULL; - for (i = 0; ; i++) { + i = 0; + for_each_endpoint_of_node(dev->of_node, endpoint) { struct v4l2_fwnode_endpoint bus_cfg = { .bus_type = 0 }; struct device_node *rem; - endpoint = of_graph_get_next_endpoint(dev->of_node, endpoint); - if (!endpoint) - break; - sdinfo = &pdata->sub_devs[i]; sdinfo->grp_id = 0; @@ -2371,9 +2368,10 @@ vpfe_get_pdata(struct vpfe_device *vpfe) of_node_put(rem); if (IS_ERR(pdata->asd[i])) goto cleanup; + + i++; } - of_node_put(endpoint); return pdata; cleanup: diff --git a/drivers/media/platform/ti/davinci/vpif_capture.c b/drivers/media/platform/ti/davinci/vpif_capture.c index c31a5566fc5a..3db4e82c8a80 100644 --- a/drivers/media/platform/ti/davinci/vpif_capture.c +++ b/drivers/media/platform/ti/davinci/vpif_capture.c @@ -1517,16 +1517,12 @@ vpif_capture_get_pdata(struct platform_device *pdev, if (!pdata->subdev_info) return NULL; - for (i = 0; i < VPIF_CAPTURE_NUM_CHANNELS; i++) { + i = 0; + for_each_endpoint_of_node(pdev->dev.of_node, endpoint) { struct v4l2_fwnode_endpoint bus_cfg = { .bus_type = 0 }; unsigned int flags; int err; - endpoint = of_graph_get_next_endpoint(pdev->dev.of_node, - endpoint); - if (!endpoint) - break; - rem = of_graph_get_remote_port_parent(endpoint); if (!rem) { dev_dbg(&pdev->dev, "Remote device at %pOF not found\n", @@ -1577,6 +1573,10 @@ vpif_capture_get_pdata(struct platform_device *pdev, goto err_cleanup; of_node_put(rem); + + i++; + if (i >= VPIF_CAPTURE_NUM_CHANNELS) + break; } done: From patchwork Mon Apr 1 00:06:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 784970 Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on2138.outbound.protection.outlook.com [40.107.114.138]) (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 41984385; Mon, 1 Apr 2024 00:06:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.114.138 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711929968; cv=fail; b=kVFoG/ONbtfIou5fBZYmnH0sqD/Oy9oBsfmMmF8CXbzeHSXFe8wrtXK804vVvZj93PfAysivNzmGsOvIjVkgmbw78B1LZM+xJ/vPbRyqkFrKwCRf6Nl9JKi41Q0bK/es5/tFHDpZHORk4M0CTZwXkVjoaOIGsTG6qjkvRyF4lBs= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711929968; c=relaxed/simple; bh=ZINEtZHIguufYRnxIhkuLtY3uOIc8zpwsh3fHgJhrgs=; h=Message-ID:To:In-Reply-To:References:From:Subject:Content-Type: Date:MIME-Version; b=CJF8ACjrxCAyYHPykq/OOjbsS7T4s5f/Lot/h3u8eebV3OU+APNfP4p0xd6JyEzt3aSYHT50VDh2sPjTPnPWKM/1lBW21bNZnRBVD1LhZZFHe9i3Df9jXDqNxyJ/VIr4JC4oj3pvCcurvaFpRAQ3UUBSwa3MRGmZoIxl0JOPiuo= 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=o7Vz1OSN; arc=fail smtp.client-ip=40.107.114.138 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="o7Vz1OSN" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mUmp6Yy1xAghssIHcNdj37atpF2OQVwDdjmAOobIi9yX1um9El/QzljqMHD539mNSPEH753j30qJ+iTCqPtsDxE+QVLy+3zBUyG5qJlLbwPLuq3eQ6MBoc4xr0mJoZ5BZxi6k6dCst6ZaehfJnT6nLR/ypbrreeRyUb2c6e7KO1k5ct4JHY4mnXVWT7Zdp9nkHXTAKf5QMR8JoJJpbEYLIZPu4TvjB7nJ1HBzNUxxAvAAJaCaVR7Ul0gxgt+0Jzathc902QFID5OdXzsiT7xaY7pH39JcN0U1Ze8XDY7jMi1ywRHPifpvoh9HjLZA8+eHHJyBaC45321JkYeEGTBIg== 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=0jldO+sU+/sBHPSf1MLXLnSJ7p7Zlxtt6VMOzEH9xjg=; b=XFBhqYcU04ydo0UUiTCvOqmOjv0vNr+Z94NaIF1+1dko1ChAf8uA0TIgpf0tfP5ajuXjSUAsr0LTtIReHHUyYFxDOjyLsXIBdu8ssbxLzhJyGdUyR4OmwU2k6+xEpJBH9hp0rZ8pySbe06QAGnrAFZ/YEeF5ZUg6+XNpmclc+f49YA2qv++m3i/3bT6Dt6y1brVPGgy/QhBw32XuuBy4AKSaP6rGlX5dJJGH6YmeZ2jGtqt6etGRhQnF+Jq9N3rqy6zu8MHhWQIxP4uY7FZRr99Zh2uTaewbwPl8bqsJy0t6f0vfkBIkwfFi/6S2rCtwhIFfElRfH/up77Hk4N1Qcg== 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=0jldO+sU+/sBHPSf1MLXLnSJ7p7Zlxtt6VMOzEH9xjg=; b=o7Vz1OSNBI4o1H79eQ4k6Y8qH2PCi0VVoZPDYRUzRYxohMn8kWgOEa+g0nysfNyz+yW01AGTveAEGf95ldbph8+irxsWBtyVIyd0UcPVT0m0lNvkTemUp5NXtBoEQj/CE5x38jZoH+4JadHkBm2RWO4VRNMszOANrgJqT5hw5is= Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) by TYWPR01MB9325.jpnprd01.prod.outlook.com (2603:1096:400:1a2::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Mon, 1 Apr 2024 00:06:04 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::131e:55c0:a4a0:713b]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::131e:55c0:a4a0:713b%7]) with mapi id 15.20.7386.025; Mon, 1 Apr 2024 00:06:04 +0000 Message-ID: <875xx2uetw.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 In-Reply-To: <87cyrauf0x.wl-kuninori.morimoto.gx@renesas.com> References: <87cyrauf0x.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v2 5/8] media: platform: xilinx: use for_each_endpoint_of_node() Date: Mon, 1 Apr 2024 00:06:04 +0000 X-ClientProxiedBy: TYCP286CA0268.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:455::13) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYWPR01MB9325:EE_ 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: CPc6S0D3lBo2IsoizOVP3adydcA0O6H58RvrwRwfOwQpnLIVn1Q0A5tfCV5IyUsP0NZptyqtutkzI0ZZcezOCZ3gLwNHwsaLMBSDKdCiQBJRDHeJDhRijMKBdrckIgvZg3tg13gNjpEufqhaEMNO5Brrn1SapgaM2kCbH+CZOwqR1rSG76Ytva67qYMA6/5/a8Rzj6tb1Bc6Jms9gA+lV4adz/inRKs8hFB/WwlNQRD2eOCVyk+eKLDSZAEV9Rydz8SAQQ1YUlOr9cp7NWwlwPx5UEB6ao+x8ZSVzucgIFcygRCAgCs42R14ARc1ZOq64GIc+j4VGtJb6/Hj0P1v1m7F8Ye93iSxoY+YcGcTSgdfg2oXFZBX0uAA2gOG+QsBGew2WvZ8xNh2bKuSY4eAWolVvrQWcNTyEod1pwb4l91St/eirUAcLgsVTTArn6dXePzmicWRgu7b/OX/fSWUsuKguo2GqlcQPHneBLQDtPtbJCo1bbkKSOrT+86/dD9ZO0yjQdjkr7KjyyZODUCR2gOpuu15AiOgEvHiyM7K8U9zRGZpkjuZJzV0mJphbjngiionZZts3EMXuIb9FxVreI/wSdOerVdv3+AQ41zKCUf6xGR3t9zndGfU5BHulyyHyLgLQHSaL6JhhM3G2mmRTuXfIBP+xuXHx9LK1kU9VbJgjKHeEzTH+Xv6IIxGOGj2hbjdFzZ/JIL4rA17wuK9pKo+mrFMjEiFtv3oWTBK1e8= 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)(366007)(1800799015)(52116005)(7416005)(376005)(921011)(38350700005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 5EXukNg/qMjjPGtOoSkBOHzHvAFuPPUdKYydBUmT1JHYkFxD5v+tkb86gtsV+N9B++GlW9mG3ZDQgl3FejwgJIPUk56fHoxS9LN+iSFoX9yU+bccVmjkIx6T12G63ABLXsvF8JmyI//PK1gAakoBAyhBDrkI3zUUw+YKok6s5AxiAEPOpbrs48dQIHxJnF+uf5nluQufKlQMB/7VGYIyDFyKHhXxQ11iHJ8cOPvo1wP2VfV9fTyazpxvVy31FEOX1wLrDu8eRFi5yRWq7NzRJ2pMOkF6IjaEFMKbtav97/uyENZ7n4Q8smkiV7IHyZ7ZrUXWHyXcehD0H7B6lLKZnC5cJe9kiCtoXCA1W25R32Lkms3iEsOPFjoMCWa2MYI+k9/kQkxn7TkwgkWodMO71CKd4Ro2JKBJp4StkQxRBjFLGMUwGzyBQdpUzjxJImdQw78b3gRYI++x7WW+S9g0EKnsOn/ivrGfgz7EUuz/g0TQNfROvGqL/NsCXfvgXmp+Qg8q/j3rdeOVu5zGvOF6FGp4lLvaNFVhbNMhLd3YYgzT4GLvHV6FdPuM6ieo+iKSmMrxAtKXhdwTKE75/iVNtEmQdBM3HniSfoFtpwFToCq3vP47rkiP1T+1t8IsmThkN968S+du2WQy/GqVgNsGx08HhkTY8N6xPHNMTH0GHOdhObCzCt1AXZAJoauiT3jdD2euM5nIIjbuMAqiMhJ4LbDlubLAL+AShGxfnZiPm9Z++H44AV9yPeXKmvHVOTqn9z4B4O37rTQvEjP3Mqjq1WbT4JfRKZizxkIwat7SN3m/ZXjwOLGn4C7sOUJSc14A1umv4f3+nUzXcE0q5F2Fz5qeDhUNJH2jy8G4R+Wv6tWFeliorSZYaVK3MCZGs5uKh5En4Sn9BRJKKEv6umQvj4bA0x4oLG8ZBoXNMiRX/69RUuB55habbx+HRJpvEUBnr9WxO87d47eL8uidGgU9OXAhmP+83XIKO4hplDHpjzxlB7Zo0TC9nxLHqnOmM43Owwy83NZvFwF8h9u247i7H33yJIaXYACowJnVMzaYZg6ALqxSd7B8pLc/ytsRxXSsrWIhN8YKv2mgWqF4saALEv8wwPP4nGCCn3ku2fCotApXUdMvLwBsnrjFjmcZJpVOF3zRAP50qjzaNuMMsq022tL1K6PhoIFgCqh+R4PF+dgCOxyzx0ieWI6KW7gekLGQpE4+ELPoXSz7fy+CvgUYB6n573sqeXMFRLLmZXZOvSyFWopVybplk85NpqjcFkGcwdOPWE2GxNlq3qIoF08D6lsD66k30bsm7Ag1J5YuG3Gar3H2yMKAP6vxal1m97b+Cla7MtPxwyO/oljLCrDv3bGeqQk+PhoknUxS63SvuOe3zNZj/IrZeaHLP+uqkVILY1bUvHFjMAmMRsQKL8nw5x1p097K2O0ZbZoDCvh+ufq8I1RUcpJTXZ+LxjS/zyMO36dgYLPNgOp2l75Hl6LcXQrXsSLY+YwFFeRjMtIojpoMQyTSkZc9zEzqa4ow8JOpvDsm3LkCEk7SO7UJKEbDh3bd94rl/n4r2kBUUP6Q6rN34NhqTqD9ESYvf2W+a52wMwe12qqbHEzGehoaQ6KGGdP7IgQnQEifwc/OwOme/wk= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: f3476b72-21af-46e1-25c6-08dc51df85b1 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Apr 2024 00:06:04.3407 (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: m2oXrINXgryTchUmdB6V/dgfJd/WMF1TBBPCO9Ms+PsQ0NEuHNlV/DAameHrm66nSjTkFsL2OkLgRS9Ar/C8DdscA+VDB4gBBPk+aYnqX9uv/fHOybum8VmavpMrybD2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB9325 We already have for_each_endpoint_of_node(), don't use of_graph_get_next_endpoint() directly. Replace it. Signed-off-by: Kuninori Morimoto --- drivers/media/platform/xilinx/xilinx-vipp.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/media/platform/xilinx/xilinx-vipp.c b/drivers/media/platform/xilinx/xilinx-vipp.c index 996684a73038..38818b82a575 100644 --- a/drivers/media/platform/xilinx/xilinx-vipp.c +++ b/drivers/media/platform/xilinx/xilinx-vipp.c @@ -205,12 +205,7 @@ static int xvip_graph_build_dma(struct xvip_composite_device *xdev) dev_dbg(xdev->dev, "creating links for DMA engines\n"); - while (1) { - /* Get the next endpoint and parse its link. */ - ep = of_graph_get_next_endpoint(node, ep); - if (ep == NULL) - break; - + for_each_endpoint_of_node(node, ep) { dev_dbg(xdev->dev, "processing endpoint %pOF\n", ep); ret = v4l2_fwnode_parse_link(of_fwnode_handle(ep), &link); From patchwork Mon Apr 1 00:06:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 785533 Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on2113.outbound.protection.outlook.com [40.107.114.113]) (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 DF11D7F; Mon, 1 Apr 2024 00:06:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.114.113 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711929973; cv=fail; b=W0WbtGFN9wVGKIw8GbfK1qGj225t7R8LqIfax11IwhVCsh0sEEbXckjJD76k2ZqclHVrOmrdz6DPZoJ9bh6qKH14bA8u2ikzNllysZhZK1n7inWk2uKWV6jyr+ut7wOJBTRdbVdUc4NwAn8YJMnm+EzmD8KlzmxPzLMrWdppiS0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711929973; c=relaxed/simple; bh=Bmdrwhin18k+Arb3Qkz9vUbWfYyjQskPJMiCOHOlxq4=; h=Message-ID:To:In-Reply-To:References:From:Subject:Content-Type: Date:MIME-Version; b=XxLmIzAo8Rkm8xHQi5nP1d3mbiKY9QeJDXYmUgxAfIfLZ/8lkn8pcCGR8kuBq8FohyTstcRqEhHw0wvwHUOE/vgBBwsaVB2QAEgN5xoEjBuH/j2kWh6MMqoLsNQvYtmxbBZYPfnJ/XFoCjLHZniKmHPAdFubwk6bgQLME4/1Df8= 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=W938LlBm; arc=fail smtp.client-ip=40.107.114.113 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="W938LlBm" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mIJgk5QZNpQsbECVnWKJV0v0xCMc0pGvw17EGXpJNpWjduSKKvdzKujwvk5DmAKI6GeRhQS+FMTPccrWL6E148VZQ7ZJFOAXj301elW+dcMq6N4452WPuh+EJOdpnu8SbPcXEyygXPVQl6yaCGkDmjuou9Jhv7dO4rx+wMeEbI9C+g+ab7PaSTh8IJi8EUqMRy88eUgvTjd08vB2rt3Hx+/S+sGE6lsigY7Z2nQHA65e+lJf4gBTSDEjz5xi8SbPgcP/Q+P0wop0SBf9ULSC+6SomBOXeWdkZcsmKvcdyUQ4gdkN/wgoljdXhZ8nsUnoFrdfpwDpKGrvMz6L54noow== 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=WhWU5pMTa0RW9lB2L2jViSSAy9x86pATn/ADdUCQ1qs=; b=oJtq77By+efye2jkrNHZHxhe5+Myf7jFtA/Pvsh0+ODt9HzfXegyR5+zTys02tM8BMKhu6A6jC3JwIHbPgiTiI+8KyMjvyK4KrIXR/yyypyuPSQexEyTfDua90eiUKAdBgkCSGNtsdrJbPuxRtA2ddfjUykaoUl92qgcTcaaIPHskyLYlbHyJ/zg7Tc56SO0vjXILeMTgMJqHjz0ZQeEpNspJoWnoRbJ/ovWKzzlGPyPjDFW34x6F1c12DyNqck+1OebBnO95B92mebkWuaegFCcrpcwy/DKSTrMn08l/fjLp0rNcYfZ0Ci9qxKvALaxUUhv/fg1ZKSsKR247jEvsA== 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=WhWU5pMTa0RW9lB2L2jViSSAy9x86pATn/ADdUCQ1qs=; b=W938LlBmiwZH699t+FHsdhwvbbIkbovR3o3AflricCbfNDLtd1Rgwnji4Fy2DlW6T9ESwjnF8P9qDtdEXDinld/eB30axmC4KNXd/YQ5B52tR9kZWdWJxNumHV+Gb/hMuIe5TSJX2Mn7eVSkZppWZhz6FzTecvTrqU2N0gfaQbw= Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) by TYWPR01MB9325.jpnprd01.prod.outlook.com (2603:1096:400:1a2::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Mon, 1 Apr 2024 00:06:09 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::131e:55c0:a4a0:713b]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::131e:55c0:a4a0:713b%7]) with mapi id 15.20.7386.025; Mon, 1 Apr 2024 00:06:09 +0000 Message-ID: <874jcmuetr.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 In-Reply-To: <87cyrauf0x.wl-kuninori.morimoto.gx@renesas.com> References: <87cyrauf0x.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v2 6/8] staging: media: atmel: use for_each_endpoint_of_node() Date: Mon, 1 Apr 2024 00:06:08 +0000 X-ClientProxiedBy: TYCP286CA0265.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:455::17) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYWPR01MB9325:EE_ 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: bVmsKeXM34HrmWfyR91eaGYnFOpQhdmXGvBq8ueLXUsNQRhU9V46UMoIfhu6WMCV/o59vAj1cVvp35VPd5b6DFeCYx4Kfid+chdnwOCZYtlXb7wQXIUgKXtToqbY28o/5QoE3p4PsyuRcHVXRp9Bw6//J+4m2jWVwcDXZEPZyfHUTOaTabjJO7zOrfeF0riZSuL9SDBG7clg0W0EYXiZ62M0PwaoM33lpoxbp21IFpBQPmMc9IewRDjl27mdHJEzZq8/Ojyl6SoBgZ8kIvWM22oah/hj2acd5dpbjUdvTz/5gYCLHIavTv/T6jXmGTg/WN6GEqD+n+ci5muXS0FiEc5KiA63Sbeyec84puuVIDfOgNyYgs6jHpoE+2eYDATs7eBHUb91NKJw3Zgjq9l2i18wym6j4gF6ZAFJ9FpVvFHo9WKM5m/65TUukGCMJdzauGNbAgI8C27di26Okn1oofu1PZ5QJ96xC26wQ4mE24OkqiQRpBanUvymYmqGPRIB7cGnGgWYCZQsFbxWEF+6ssuvjYsl91Q180PeBzib2AxIlPQJPnaxjUge93iGWrNOZw1xcV/Jt6zkjnWfu1Dg4YYgSF1oiUajCk66ucnLSWNXL/t4P58oacdj46mzNhhPkY8kYvpwED2TIe0rQi7CywgvqDlHiGiRpLs+A9SlJ7vw/pE5o9o0OWMai66kS5zfO5HuhFASdyOrpcwBmzjYdzRt5SyuzMjWElaT243rs5I= 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)(366007)(1800799015)(52116005)(7416005)(376005)(921011)(38350700005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: pnyCD80WiKS+nDS6PEy3Gkgx4qbKE7xISByX3Ujjn7Kdn5efqVBDa5YtjQMan/OwabEoPtELuEZuyKasYsLjq0/hhn9N/A6TCN438LGsZIBVEwLv3CVEPqGiDwH5vSuAynDfmjyq+KmU9ulz1cDDhvOdgZCOWMz9fZK1NgGZ1mnISFbs84fo8GDvzYPJP94gqVkdO7+01JnO1E827jHkBLj5dXnNcCBzPHz3KSB+LChx9yaJyFjzYsMcVXXjWWiVc8mOZAImGZnp6Zkvlou6hR27Y5zy56AU7CGxELDaYx9qwovSH5Nvd7zrlp+EbdcP9CUgbwt14SDNLx8kA9JXs2WJ38qTFBl+9m2bFBlx6L15XrK5kDgqqQs5mm6UMYCX7/DS5HZzCkp17kXcpGt1Ac0qAOC0mYvJr63O/w3lXQOhKwvWAf/dvKh6DynSwOGuCdg86v2krxi2TwhguJYDeScH0lqOLoIrbcpet8eOtbtcIgbsmcXx+fuhI6Mm3+7LJ9FaLff+0dDCKKhDaMCZK1kJe90w6+TKTh0Ll4E0ouCM3nr5FdSx0TS0/ExnNPUGfstWNDoYDJsr/ICoJvx0z1WqF8rvu8qD7Ow1M5nboxKbWr9UVz4KdzBt1GKeEmon54dW8UWUTglBZfcuyaRB5ZCW93TLu0HgucQrwoS360yvVx0+tg3QwHCiXhDmQ1OL+ayPN9kcmbfRPYWgVeqxEv2++J/p+Zsh1yM1+XM3jdXKrzuMzAI2xjNA7UUEFAiZsfXvWWou8nxb1esFOLAHVWDBKlHQJsXTUTInVY07/a/QHnMPeEMeJqzoA+yoggKng5svG4A+S1VEGXI4Gi+xroItUcRy3KMq8bq3b08QKcFIpvLT4s7aTwXTGD8z53S4X2O/yexa8NTfopWwA6f4OhkQ+U8FwT6OdQAFMrBPKZZbUckN0gOCeAOWVXtCLKxgtbPfPCTSprEWxkRZs7MAJQMa/QMYWaCUVBKMRhO6Pb0utCJofHb23WVvStlOJgY3PtO5YBKZYKNwLdfZ2EiA3LEN3GH1djmSGaZl8LtsvF8EkPq6VfG8LVNrWguRYfN5Szzsazv88qRPzp4sqJ1I7zZl03VH1LZ2EbyKeyiB+rUJEbDRteQs717/w5hasoyP4ZCH1Yabpl6FLH1oWDpaRPny/YxvnxI4BPJKdREwYC6LrtSV7+Lc0c88yOsYWAUlvUnL7MaSmHLI4Ou23byUi+ewHxVXqq2HsC4Qkihp/749cR9U+G+3VPI7dRhLtZAAUUOAvB2FOiSHE0vzn9roxfqaMMep7h7fp8UdsoVBmX1hvx/8Z6cIwMSN8UStsy7RlixE3RQIv1V6IDT8NG7U6L9p7gNPiYVme4rghfcqOSiFYHu8WHfR+DCMb5/IniicoiouHW2AJd/f/XUhejWTYsF3ykgaQjt7mGiZ8yJPGjqDCNI8uy9Jt5ImSREY6/dWd3TTgg2A4L3Psx6xo/V5CMeCLW5OIdZOiXpM0FvT9olH10oxz9VhUmqAZGYyX1DO6AjVI7JH8pG6zvnKwnEBB7KHwrimmTM9tQ1eVqqcP4zFufhuhASid1Ch8DLEc9gaPASC+LFZh27bupt+BIe/P8Nlm32Nfa5Lt5tLMHkofik= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5adb02ff-7cbd-4a7b-3448-08dc51df8890 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Apr 2024 00:06:09.1612 (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: MDJZiM6oquNrEGFJjWIeIFKnJo6U5K2cII9g3VUY+WuvzV1dZLSv6kN8Whhe/iQdVRZHEYEjwztx15G9dg0d+KoBkFEuCqDJlYUmZ/xAa8dJppP5Wu1Ey46kw1bxnNj1 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB9325 We already have for_each_endpoint_of_node(), don't use of_graph_get_next_endpoint() directly. Replace it. Signed-off-by: Kuninori Morimoto --- drivers/staging/media/deprecated/atmel/atmel-sama5d2-isc.c | 6 +----- drivers/staging/media/deprecated/atmel/atmel-sama7g5-isc.c | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/staging/media/deprecated/atmel/atmel-sama5d2-isc.c b/drivers/staging/media/deprecated/atmel/atmel-sama5d2-isc.c index 31b2b48085c5..cbfbec0c6cb5 100644 --- a/drivers/staging/media/deprecated/atmel/atmel-sama5d2-isc.c +++ b/drivers/staging/media/deprecated/atmel/atmel-sama5d2-isc.c @@ -340,13 +340,9 @@ static int isc_parse_dt(struct device *dev, struct isc_device *isc) INIT_LIST_HEAD(&isc->subdev_entities); - while (1) { + for_each_endpoint_of_node(np, epn) { struct v4l2_fwnode_endpoint v4l2_epn = { .bus_type = 0 }; - epn = of_graph_get_next_endpoint(np, epn); - if (!epn) - return 0; - ret = v4l2_fwnode_endpoint_parse(of_fwnode_handle(epn), &v4l2_epn); if (ret) { diff --git a/drivers/staging/media/deprecated/atmel/atmel-sama7g5-isc.c b/drivers/staging/media/deprecated/atmel/atmel-sama7g5-isc.c index 020034f631f5..7c477b1d3c48 100644 --- a/drivers/staging/media/deprecated/atmel/atmel-sama7g5-isc.c +++ b/drivers/staging/media/deprecated/atmel/atmel-sama7g5-isc.c @@ -326,13 +326,9 @@ static int xisc_parse_dt(struct device *dev, struct isc_device *isc) mipi_mode = of_property_read_bool(np, "microchip,mipi-mode"); - while (1) { + for_each_endpoint_of_node(np, epn) { struct v4l2_fwnode_endpoint v4l2_epn = { .bus_type = 0 }; - epn = of_graph_get_next_endpoint(np, epn); - if (!epn) - return 0; - ret = v4l2_fwnode_endpoint_parse(of_fwnode_handle(epn), &v4l2_epn); if (ret) { From patchwork Mon Apr 1 00:06:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 784969 Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2103.outbound.protection.outlook.com [40.107.113.103]) (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 5CC1B170; Mon, 1 Apr 2024 00:06:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.113.103 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711929979; cv=fail; b=mokoPIX7VmnwyPjMen/KVahmpKg9PAuwkvYm0QR5QzSgMlvTAkqyD5XRVd3UAl12T/evEkB0sUsLNAaRrk6GEr7lB7aZR/SCOUG7ocOpaDC0NsWkQdZRa1F52gIasozHBn5hWrrRasXRPbvgofl1FQcXuUNyhN5uWTfzAw5+9kE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711929979; c=relaxed/simple; bh=G5ZJP9H1q9wqi2af/HNlBiy2bCFZPZJG64qn7jkIB0o=; h=Message-ID:To:In-Reply-To:References:From:Subject:Content-Type: Date:MIME-Version; b=CCGT70IOgy4TSHNZ7Gu0IGa1VQS3bnIA0ztVflMaP9snKZ20/DchbxPJBmlWGvKzUBQk35rZyBdxAd/mCl7iWnT+sXENbjTtioQwW9/vKVKIDPxVCheJYWFNyTj3MZmOHsLzhF+6QDmK9TBtMf5v3I0LrQ37N2k//SGvaVU+zEM= 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=YBvIZv67; arc=fail smtp.client-ip=40.107.113.103 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="YBvIZv67" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ejfjO7rmq73IRBwjHopgDB7lXQtq3P4nZ8FueyFuFVnajF6w8JYf/eyEA47lzVlcx/MHDmqwSPX+Kt6JVfOKpzzTSW+DL+RXGH68JX5/nSLLn/UwRmiQwycEZPr2bVy6J+JH+iG4BnAn9hg8KDBbvqiy0b9XYJbj393VPiBNRjsRtVcW0QiuVMXYRhpWubXCzR3TnH2aYWdZmEYpSIiLTq2oSgO/AP5/f/zRyKgr4KCgHSa1YTfTxy9lMIgtX4Spr/oUzmMmSRWi+gYMkhn59SYlm+eoqCG8l5H4hYelpptsJhU7tcUhL+Y05hF/nj0/cvuHVtyT6DXWBhpmyufCIQ== 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=p4brAv8IRjvQv8+uHm6V2KjfYIs6aEml9p7JOjKUA4M=; b=nxctdtTFeQpwYFTiLMytzuvdjf654wNBoNBK4bBf67mBQDV/h6fpvHGYfLLI0BjrO0kwH8l0hSMYFWAa4LotKqG/UDXo80zPpXN+EKkmwsv7ufHgHvbyyB7XKJK5tWECVogVlhSS97/87AIsBN9e9zJP8ba/waulJAH8UNQDNKCbRdFJtOULDP2ZEGs3YmQPxHFn/EbHhmUnkQG75Ntc2wJZJOwQPnL75tLe/wHrJlyAWhCsMn9/biflgxTcn5a7beTTzbEv/TmtHo8Q0DV7jM5s5NiBOlcU7qQQQTNHkgPgfzzrEx++30vbw3qYu1TpnWXYA2DnzsCFwBL+DBi/RA== 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=p4brAv8IRjvQv8+uHm6V2KjfYIs6aEml9p7JOjKUA4M=; b=YBvIZv67fUOFhQIG+/RF/lEA8njKsP9g3q2ftyfB558rvGosHcwjAPciNz5t+ZsYEFAQc11ljShyvd2s7RxTFSDNyntx8tEfp6B9cSIGHL2FJqP8UtVUNcCtGLg/XBluMHw75GKpHgNE1CjbRzyywHYmvgQD+ZJoNRpfbWT8LeU= Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) by OS3PR01MB7826.jpnprd01.prod.outlook.com (2603:1096:604:177::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Mon, 1 Apr 2024 00:06:13 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::131e:55c0:a4a0:713b]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::131e:55c0:a4a0:713b%7]) with mapi id 15.20.7386.025; Mon, 1 Apr 2024 00:06:13 +0000 Message-ID: <8734s6uetm.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 In-Reply-To: <87cyrauf0x.wl-kuninori.morimoto.gx@renesas.com> References: <87cyrauf0x.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v2 7/8] video: fbdev: use for_each_endpoint_of_node() Date: Mon, 1 Apr 2024 00:06:13 +0000 X-ClientProxiedBy: TYCPR01CA0146.jpnprd01.prod.outlook.com (2603:1096:400:2b7::14) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OS3PR01MB7826:EE_ 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: MhQVpogADwHzcfjKpuLNkDVsTiRJLLROF7QfqJTQOWUBIv4f6EnIREF4q2BDfpwzuA+AXcucNgosXCw9yo41jQOXFOg+0d4gB/DSqas4dlcqct+mTGIN3QcGn6ToincNjFjYTEbvC1ibEuKKoNzPlczA4o9q9PLhD2Du6mm2J7Uw2Y/ZR2SMmmpqZyOztoHdzX42mwFr/k72xS4/cnxeTcvaM/QnjeiQi/YuoPBbC+8xAh4/rzHdp+WN5TgG5ur7/CeHcp6cW0SjosormegcEMblV2iz1R8LlTGCEh8BLJqqE84rWsUP5DAcON2HDpY1dRjbDkkSzUFocJBcKXkp5aLHVMDh1evZb/SYDpk+TvHMG8fNd+i7thOHunEur0LAXlK8xpzTQfCexf51JFwUbrsYRS40y4sQuvYvYbiK5GY7gAoqCAMkSB7dtSo+M8NbeW44APFz19QM/xrn4BtdbBBNwc1vJEcTlxaag0Ykn7Mlb7Gp8/KcwB0c7Bv6Fr5UZmn5DlcSfOJovWE1csRgFowk08KlO/Ii/BM2Nw33ZMqJpTLs4yXT4Xt8VG1j4AjXEbkVnHMXnWUuPT7ni3POfQ15PdiOJZC4elcluZsdWIQCCQVKsKENQrQp2YnfHG/UAb1RYYtCCRF8a+jHT0HAKWWEWgZt3Lm0kPacpEfy3l9/9w07SGaJZNfOadW3Koo2fFJIWq8N/ZrdLLsfdIswcypaRlpranKoniPef93Vpos= 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)(7416005)(376005)(52116005)(1800799015)(366007)(921011)(38350700005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: kIjJNbSukdXKVTPCPuDIlvf32ZOpDtGp1rr7mQOVJYGuJ58ULgHGiUO1kAsnQizvYEzbLCESrIWbeuG50kR89R+OJiRVBaefbdYszdsee/xStmC4ohM63Hp9VTFtifGJ8QX6PwgIBQWKdZphYkniyZLOvYP0VwvgLNMh2QETl1VWDv7CwZI2pONiLmQUsalmhzOdiU8Ojb/obxM9ydw+tAdNpVrWpnQ6Ok4JqmoIkIDqxjE+ezzmOnl6348yd9GbOMRcT4bwa/+FdHg8pPST1BFgyA6CKY6hoyod2jvu0insXYKOd2R0BmlIRnhinMHOj3W7fLP/ZS0aNg13qm59q3uuHim+O750+t1t8sLTy5/v8aMtMlTTeQrf6pxk2jrWM1dN2PttAXvZW44pLatxOaa1tfvADR4/ma70HJZQt9xiFyq8WmMTvZk27wX/6PTRg/RY/8AXjCcFGy19ZN3+lXwF7a1FzTibnAwBY60Mn2PyUxMyASdifSfcy+DdMFQ7rH+8y5LXE6S14omASQ6mGIJN4t+wu1cWvCl6XIYtqagG7MbmfXGdKlQTNc16KD/wOs5NJbNr7bDBPOZ3NEIedW71FQRUTtT8TrtQgHx8CT2bpkhLY1+X3A6LVuE3ljbdv5JpKjsDx1svpIhnZSl4MZn//d1Zd4YK7t2lNAkT68Bqdh/ccwcNb9ML/WsXZCsAySIRx1tJYIEIv1ctX6gAPBGmps02S+OXx7tpk0l2pA65CWTGWH400M5wqVGoS20bTkwKocE2bCkgcXYDjQulYJ9ICD+oE5z5oeueVaCmsuUnNAEHW78f9pCm+MIVSpK5SfioyMait0S1lC+3ixADiCMQX2hk/NBoYWCiBXXGRmHLL7la8zKhIboo4jECXWacGe8IBovorlll/kSJx8U+hXyVdIHqxJgjPfDcJd//Ebo13OyT07bMxKp27xRTckJB3MJS/vCRNXEgRzYXlioFTKipdyJytEc10IgUjY9QZiOAY5YENRFHSIt3vAuq1rqlDsHgU9fCeIUzXEOKa9gM9CfM93WkBNpl4n7Mo890mxLq0vozzVb5Baxi8eAlIGjBrcc0QqCxmdbTbhoxNtSndzPscEc0ZMjuKqg6x1qoJLSZ2f7OmSbHtNYS8l/Qdk8o0S+k6jPdCEngHNQacsHLfElOVj83/zwLlaoOk9KcrlQTAty4gTNv/lGENMnjuxjUxPGgwHTt0ZwJoVt0YVqiki0fT2hPCuz6cBBX+cej6VorCXZd1DyQPRTPFVbQFLqyDkfUUr8dvCrDOuIZtGQjLyKhqNwL9Kjlpaqr8nvPNfCLhO64PGCfVk/pBMqqKs+BngzL+fYJfxKZSlcg+xpPOWZlwy0K7vS7wCwHZaYjez533wCLM7+RAQdNT2l8EGdCBHxMy5uHt0e0fxqdCa51gZKlhafqZO3YGNpFQgoj8sMP2sTsKlczNANHgjIHvoJOc9CvdQPWhRXWgBxL+HWCQpViWAeUZaQkxvazmNw2XC2cuZvhEK5jNIP/i2glmQj+ZLAPMEtHUHvebVgktm3iIl4SVF0e9hsVoVHGCeGp8pkgV4tthXQYtYez7fy03x8cq642X4lNrUCJL3QJDbrOUb4xXTRN2/wVQnFEGqByPUw= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4b6e55bd-ae94-4651-0fd4-08dc51df8b48 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Apr 2024 00:06:13.6865 (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: ZKjX39mHI5XdK1FR0FrO7EKA14tQDxvHhjgWlgj993tH0kSKqcv/y9+eIosuKM0cf4HC7CVxJ6df1Gge91242kA7HCsxzFJO6hnwWeq3twfDIUDYThcBvj+45yhrqqsI X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3PR01MB7826 We already have for_each_endpoint_of_node(), don't use of_graph_get_next_endpoint() directly. Replace it. Signed-off-by: Kuninori Morimoto --- drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c b/drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c index 09f719af0d0c..d80720c84323 100644 --- a/drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c +++ b/drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c @@ -149,8 +149,7 @@ static void __init omapdss_walk_device(struct device_node *node, bool root) of_node_put(n); - n = NULL; - while ((n = of_graph_get_next_endpoint(node, n)) != NULL) { + for_each_endpoint_of_node(node, n) { struct device_node *pn; pn = of_graph_get_remote_port_parent(n); From patchwork Mon Apr 1 00:06:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 785532 Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2125.outbound.protection.outlook.com [40.107.113.125]) (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 EE4A17E6; Mon, 1 Apr 2024 00:06:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.113.125 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711929982; cv=fail; b=loCGj4VIBXGjfIJatBmFdutKHAKMsfC+iejhmK622eVS/fZcLXd6Y+4YCc74Rpd7Z3hJjEBRlDNwsbbPspv/XvDJi3IVrcdL58amjLrW6/XVzSpZ007WAQtG9GP2c0EGb2NHCPqe5L3DzbRnRW4V3/9ZZQmD4YISU7KglGeSSbM= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711929982; c=relaxed/simple; bh=MiUpDz8lcoTxKFsuFJyr3KqsbS/xFRnCWmcPywIV9ck=; h=Message-ID:To:In-Reply-To:References:From:Subject:Content-Type: Date:MIME-Version; b=se0wYXDs65UsKgsStI1VY2A5CPfaqX9+XE/d1NtiplzB1ZSBkqcGuTCwJz+newBkkDjE1ZGdeFjwMT4yGWyQJdUEZRskSKEYY7KWZTFJzf5RdoowwGaZfBLEpJa7zKLwYguQDai798STidTXRQo3RcmJSQmJsMKtFYzKR8R4qEE= 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=ajsi5Qo7; arc=fail smtp.client-ip=40.107.113.125 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="ajsi5Qo7" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GGd04lIRmHTwlKVah01q7DBjtB4sIhSstIt+1P2vs3SQX/HmoH3HogWUb3YffthC1IOCJh9z4IkFvQLpo4Ume7wxakf3f+UyatrFt6cU9YpAP2c8BbBzfuzz7Mop3UShSWY3c651tWa/I7RTCvt8sOPNFbi89fm3jSwfliUYB7Lm8LK+CEOPqK+8uYqvbpQffj/avO8TmX4FZ37pwtPzZFq3hwEEvYT9l4Iu9RuvMd1FERu0NHFNstwIV31S+LXlA1z/I3KQVs9ljSp4mr0Wf+LPpeTCcwmfwsfrQY1PSBGpSWLhKgOlaJumiUfLDuU+7Iz8zsUf4ibfe7598rbbKA== 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=y8t4OQznVBGLLmBFnjQ/lO6G9QF4zCO9P6FQQUWVcwE=; b=mZeEaJWRLA1/yJrl/l67CabKsWln274sdiNl28r3padM9B3tD846QhW6gOplFs6wzwJ6rnK4me2AZx5Jev49xrTKOd9dxWDymzIGC+SnuZL7Skp0IgmOR/AYqOc4qE4Xtlxn2wucumgkdJAfbFe+Ov0Gz0LOlWxg+04+1FYqFgP1fuybF7zpG1hGC/k4epucYctunyCLv5sn5rS7hpLTDzK591imkgzuNl1zYGtzRy/Bs+o2ubU1pOPlCXYGTiGaUn/agiZ7l5rQNSQiql6LCH9OcDDKSUMqPpQ9M/a6LRjiUZB2btqcXl30Q6HY8KpN2nHVefXICIHyIgR/MeXsDg== 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=y8t4OQznVBGLLmBFnjQ/lO6G9QF4zCO9P6FQQUWVcwE=; b=ajsi5Qo76m1robVzDnHCP+mRDDZs8ps+23iGfUumj2k/FUGPhK1EF5mAmHEJNZQVK98ZOLLTTKbVfqoQWoMJfpV+K6jt17D4wtG6yL/ZJ31e7ctQEOc0+1xOIW62/xArpFDHmz9jy9yq31uynl+3iVcQJh5079AOCNC671QpxeA= Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) by OS3PR01MB7826.jpnprd01.prod.outlook.com (2603:1096:604:177::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Mon, 1 Apr 2024 00:06:18 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::131e:55c0:a4a0:713b]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::131e:55c0:a4a0:713b%7]) with mapi id 15.20.7386.025; Mon, 1 Apr 2024 00:06:18 +0000 Message-ID: <871q7queti.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 In-Reply-To: <87cyrauf0x.wl-kuninori.morimoto.gx@renesas.com> References: <87cyrauf0x.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v2 8/8] fbdev: omapfb: use of_graph_get_remote_port() Date: Mon, 1 Apr 2024 00:06:17 +0000 X-ClientProxiedBy: TYCP286CA0258.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:455::6) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|OS3PR01MB7826:EE_ 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: opXV4EKHvPqWxDO9bNiaozBSMAKd58IgIKRmhLsW0QWJzcfAxzCVoHeFbuVFMj5QTFoC3ZAKNMG/plu8g871uP2MxNRqB1MDfocZKMiKDB2V/f1gEpa4gQkeTKISrDsg5LwU65NwVL9a3wpYsWHbvV5R3X6irbgbIvYPsmHumG2TrfzgLZERkjBm+ci/0rpesV/7sIG+tV+N7t18JolBKE69VSU3ibvvPxU1th09/JFP3q5s4YlGwPGTMT2PaJkH6YyHB9v0Tz0VoNtcon+F6wu1mqVLgQfFvWWNhevFPB15oG64GS9d9/5c5zlS+tlUT6hPqo2K48prcV28O7d/L4+uGINScoa/pOvyDdkSzLGr6D/awN66gQGqYDlC3BNTiqToX8Wgt96JkTQ8sRt6P2Qq+vl3y6/SbRh7GL1JtM2H50w7Uvifp5wO/O1AWis3bfnK7qqV7FYMquTNHkAdFk7GkJSKHnCIYqJdJZ3oAoXRD3vqwshhraiWLMv7fMRjlMA/XXFBH4534UIk95xmPt6eap2M1xjTVTURW5MaQLZfvWGdXZsfZwXxB3JGyue0ZoqNVkS0BgCVDxvWNhQya9E4zbN1tewnxRbC0a3DlYSFuL21xrLW1HvbSq9teT6rmrMT8pIoO3WCaiaM4h4JsXm2QO+qrQi4di8qF/5KlrftiUBHH8JvBhY4C03gZWEme0SuRIst0lYxOCDZnAyosy+dynKTQ9p1PqIC5Kc7qic= 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)(7416005)(376005)(52116005)(1800799015)(366007)(921011)(38350700005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: EXXeE3LkUYxCaNUoKT858kGzkMZ5gLi4nxKdLhLuNkPjznRfPw8ozJ1aYMBvO0rCj+fkezs5/+SgXifa2fLBOwPIc/TrrJByvN7+pYgfV4aeeLEHd/nigBMcpbfRfInc5YNU0ejcFr4RsenO2LqwlDj8BRbRjVd5WYib24GFrVm7Wi+oBeoYH2b0htFyEHYkhWrfRpkvRRy9jzYOvOdEnfuC100SIIJPIrSDjUMAREwkQsma/EYNhyvFli1WonmzIZEDyFUa3fRcUcQ6sSo7lZ+Nty+lSp/vF8fQYBVg6uKqPXdlnR6KFr3cS8FHjGozpfZnTm3Ah3Wyf2BUmoHKMXSC7H6CujxPY6wl1RGGcMKDj3t52V6rNDqbjktGt5kd2odOXenPiH7NZUScqSwRFXM8WOl9OXD9UpPuXicxddWfXdSV727xLz2xdsEAnjlNzfwDptPjtR4jJKk/W0FyWtZcz+6AzGvVuV/K9Ga3uA6xZfK1djtgYYUlI87Hd5xqmrcUIx0sX77w+32AyYjZ2q4AFPZDpxXVMDU5QQADISoERhFDCXOwrapBros1P3mjVnlaVUidB8oos35eZbtU0+/spZaOQUR1CSaXIIoFBNfBWQbJ6l/GQEiKmGKm3s2ls2OBNwacm+6vhF23SdHOb60l7cCGc9EzIZnDdBumKN9n2WfDpWm6osRjoAcF5ghbG4hvtb1DcceIHfy/s8KI7lp9+n56nRkt748UUm8NieCVGE+cql0py2azQfgDcjspN1sNBja8ilXMZ+9cQK3wFMwHtU02SCPIihqxwgviaN6+NflO4WJWApRY4mo4ASrtzvZBM8rKHCAPLkGvvxWmMAQjVDMIeVdXCQPHfgF/V662NZELz5emAGPtBueutT46dIRmfQt4aP3VAz69lKnU3FvIy6WVcDonNd2vxO+ShjPX9B9j4OlfIHVlq385HUGCcRr8Lr1lEK23H/+LDYkLWImmKl9yBgFP0Xp9tlr5ZMozwn+gl1pfXtmIEtGX7b1/SJ+Ir62T0Md9TiDbjEDrurVrYK+UhbT41LOh4kMmL9wfLfM+DnU8Dnrjrs2lQ/hIS17PCJfjf3BQnr8lS7xH1GmzbXkXMcj5ZbX0bbK89QkiOCJViw6ZyCaeeI2yTqnHiKuUXZ2EfZ37ftxs8ksK9ZIyDxTYayCEzHhN6uV4galDTF5g+7Uue81IoUbmQSNpZzBR7MWLTptsn/A/S2vLi8G/Oc1H8pLQgjOyWGNoxaJTomPMNfUckFMlV5tUBnlM9iPqqAR4UrA6wmvknOeg6YU7CAmI5Hr95oL/ZfDsEWGkiNP8FqgswWjznx/7a3vupnCOPt2NYsVu+Cud41e9n0+OvC+27ZXFE47c0XKFj3mNvj3Uflm8vz/u69Jwu7l8ZkgBbJV1Qhreh+Xi4mOtdM5+ZT3kc4VX1KFcVDIvZ/BaEOiA3RQ+RpOuw6DKTEzblNQPfcw7Eyi3wFICu/XTkNme8b+Fiw03aDaV9uN/4R53P76zkQK3EplJBWI5D+AkY75G2KuCugBtjtY88UwwFuOK2yCQIQxUzH4DUZxgVpZ5W7Wb9YEgWHtFkBs7O0jLa55SjE6MMQH8RuuOYpbiwdntqZUkcjMCx7X/8umcbZg= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0e43baf5-9ada-4da6-1068-08dc51df8de7 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Apr 2024 00:06:18.2112 (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: PpI3xk5flFnl1rsJ9sjnLhGOGO+XZ3rhoW5qE8puW9hyjkcSPCWye4+RfdY+mVTRwtlkh6YCgr4CzRSS60HL578ZeRl5ZNclYzFJ/YLAcoYhG1kC68CGqEtwoC8OPhkz X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3PR01MB7826 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 14965a3fd05b..4040e247e026 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);