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: 13612358 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3F9A9CD128A for ; Mon, 1 Apr 2024 00:21:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Subject:Date:From: References:In-Reply-To:To:Message-ID:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=P1Pl8mcAqzGTiT1I+amU0dkHBiUnBSMwEvfHJP85fUQ=; b=andQUHanwMF1x9hAlEngLEO5KM kMsu+KxqEuYaHJTOnbSlLnfFiz/EKV2s0SI9cEkFqntcXql8TcmRAZ91Xqff+eEy45K5UQCV01RGx Wy9nKBggM2QVbpWur474WHWI5/PryAcFZFe/xRwu8uuB7X4lT9PpgJU0qf4ESTyOMgZ2mg0gPm4bx aW/mPR6yMAkhzlV3tnQj8xCCELTbm7ZLJSAf2o4mgKHlyWYiK4Zht7+bNp5jfpmWEKhEj8vH0Gkti tWSI+gRgWlRu/okkkqYYwnIn3lhydXddYI2gYlpwVcCAnxgFXwEdtwBngP6hXs2BGDzm77ZRPlQ8x qTCOGsVg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rr5QZ-00000006Xgu-2fjO; Mon, 01 Apr 2024 00:21:31 +0000 Received: from mail-tycjpn01on20701.outbound.protection.outlook.com ([2a01:111:f403:2019::701] helo=JPN01-TYC-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rr5QW-00000006XgN-2p9F for linux-arm-kernel@lists.infradead.org; Mon, 01 Apr 2024 00:21:30 +0000 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) 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/6CRTIdFdJyDhAIHa7rxACfvSztKQnUCPAMy2HtlEs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ange-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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240331_172128_849686_D8E19D2D X-CRM114-Status: UNSURE ( 9.90 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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: 13612351 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C249DCD1284 for ; Mon, 1 Apr 2024 00:06:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Date:Subject:From: References:In-Reply-To:To:Message-ID:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=zNhI2fyKxVXHS7W3ISUvDVpQ440ftX5M5xVioZH43HA=; b=VnJbGhA+v5tX/j+Ws2Y0gJvEde wLVmfNMCzQ9rEeHnlrOSIsDRYW8R30bhsaYEhrLEybJ0lzfRQ3CX5LVSYpa+xF/RX/POGu3vfNQSB fuC0F8CpMVc3XqQjgo9phTQ5mmPposY9abW4/cuZ2YPSaGZLPzE7CWdI5BBEZlkQ5iSg0gTWAp53U 71F9d1+64iGffYrBxgGRI6yC0ZD9CqGMvg1jLVto9xfT3duaOPO7I3nCTKB7RV+LIoeoPtBU4h0oL daamIZHiTX4B2lGRj3zqre6zObPnu+yurb1oiz3q1wJ/8MXmd52TxeB8jOpzkNylFbnsLl4h1/U1H IZYosm4w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rr5BR-00000006WAi-1BmB; Mon, 01 Apr 2024 00:05:53 +0000 Received: from mail-os0jpn01on20701.outbound.protection.outlook.com ([2a01:111:f403:201a::701] helo=JPN01-OS0-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rr5BN-00000006W8m-2GB2 for linux-arm-kernel@lists.infradead.org; Mon, 01 Apr 2024 00:05:51 +0000 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) 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/S5oXBoWiYbDIlr1jfkZ00PMVklrTGPlYMpHReVJ1DKFs7GOEXM4wx8QgTKhVQ2n8izpt2iuyssk5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NQSil/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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240331_170549_647860_0CE71BAF X-CRM114-Status: GOOD ( 11.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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: 13612352 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C35F3CD128A for ; Mon, 1 Apr 2024 00:06:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Date:Subject:From: References:In-Reply-To:To:Message-ID:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=2fQejRBDlktWro/4/mxNQbsLe4kF0bieOl2JjNI+UFs=; b=lMnyTRBM2hQXrQD6RQ3UM0Ffsb 2cibgCS0n7hn2gejBvy5tZudhY9++LiPUTI448iLy0NbYQU6udpk1bP3oG2T33biYfxYeJheVc7sy 1/nJeevmq+HUtFo5uMY75zDr4RdBfj/fYnmvXe8YFARvPBm1y9y86cq20wFhmcZZGEq2s+97uULAo Ym+ccp2YegIQ3DYGHgqFJQkC8ht/MQrTdGFE89HRQ7GqwIb/5lAagCO+LzkvSRz9Yk3CR7cZckOJ0 e7AL9d9xQziOWO+eAWf6q6zQbLfAhFSCb2oUG+Oas28Vhb8sNNqgAZjI6o+BgxrFkIK8sqo9vu4E4 +S4aWX/w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rr5Bb-00000006WDu-0ABf; Mon, 01 Apr 2024 00:06:03 +0000 Received: from mail-os0jpn01on20700.outbound.protection.outlook.com ([2a01:111:f403:201a::700] helo=JPN01-OS0-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rr5BX-00000006WCJ-3reZ for linux-arm-kernel@lists.infradead.org; Mon, 01 Apr 2024 00:06:01 +0000 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) 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+C7VHEWMnBYaP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0SvJFs6mGcGKPA/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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240331_170559_978430_CA1452AA X-CRM114-Status: GOOD ( 11.40 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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: 13612353 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6D3A9CD128A for ; Mon, 1 Apr 2024 00:06:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Date:Subject:From: References:In-Reply-To:To:Message-ID:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=gLTgAn8mLucvnffqFDjQcx+bH5/5xFO3HZ6bP+CWqJ8=; b=nBb6JKxCYW2y0ifs9cV0WYzsjt DrTJnF/sP14GGRPov/LqHmLZ+YS+T5u58m5CAa7Ceh7wcaXeLEHSbXduDrPjwdMYtOWQaAhCNC4CJ dHDUw0ofFkNG+h/cZ/or9EKw5Cmbm8bR8zxwuplYjcW840yBFwE24PbEpRND4vQV4mYq05ggSlQmy nkm2qMuQRGbsblGoBBD3rizejHwnWUGnbKFufHOZpOOuni2M0rgE61J80mxRq4een6i9+Pz1b9xOH df4zdWCPP0486KRU6Ilpy3cDNLqeXpLUH7goQtb5P6lWonWEUHXKZKPNM+bvIcluI5axDKaLailaG +XeXHo8A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rr5Bm-00000006WJy-1AWD; Mon, 01 Apr 2024 00:06:14 +0000 Received: from mail-os0jpn01on20700.outbound.protection.outlook.com ([2a01:111:f403:201a::700] helo=JPN01-OS0-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rr5Bh-00000006WGK-14g8 for linux-arm-kernel@lists.infradead.org; Mon, 01 Apr 2024 00:06:10 +0000 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) 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/ClHXdUTAif17MEHKqsQQM7z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2lmeHZFoyN1GIIMkEZZBknYMVH2Y/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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240331_170609_339179_A0633DA9 X-CRM114-Status: GOOD ( 14.94 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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: 13612356 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 25B3FCD1284 for ; Mon, 1 Apr 2024 00:06:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Date:Subject:From: References:In-Reply-To:To:Message-ID:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=sE+CtRlMvUGa8K8/jgHQCk5lvi8Xd3+zqoyMgYD2RVU=; b=SbmWXtpw9wNYErHPBSngwnejaE QQbTrborSgTsynbHAqbgsx40m7oQYMECFQmgy983kaJV3OuADjlkpLwVbXUzASrAluITr58yMAewD YThisurL/35lEy7JEFEdfGeSVochpyQpXgDdbwJvs+nkvRt/2/6huStahvPsWERSlkqsZptFoIQvW 80KUMlzLlVKNu/oMXS1nivuSna0babZWMA797oxUfJvIQJ/ATA99kMZPI+cX0JZ2dkE2fKwdLTCMB gr48QCGD14pgg0DeqtnJKO7FqYB9nBOo5qU6I9nw+ebbDB9TwhYKfrphbl/0K/6sKXw61PdE8xuOS UKd4ClYQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rr5By-00000006WQz-0DVS; Mon, 01 Apr 2024 00:06:26 +0000 Received: from mail-os0jpn01on20700.outbound.protection.outlook.com ([2a01:111:f403:201a::700] helo=JPN01-OS0-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rr5Bj-00000006WGK-0ieE for linux-arm-kernel@lists.infradead.org; Mon, 01 Apr 2024 00:06:13 +0000 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) 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++G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mcZJpVOF3zRAP50qjzaNuMMsq022tL1K6PhoIFgCqh+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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240331_170611_638731_6B2D732F X-CRM114-Status: UNSURE ( 9.27 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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: 13612355 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0611ACD1290 for ; Mon, 1 Apr 2024 00:06:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Date:Subject:From: References:In-Reply-To:To:Message-ID:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=HR9EwJwMbX3T0Zn8b6vEN9YjFLvTGjkm3UoOPws/Tdc=; b=zHinyPxEY0FYQQ6dp5OiUnhfNh HnFoCtuiHdCBFk7kojN8i7bZX9AAw8KCeHkQKmQqMBGEw99zQTPmBQQ2Focxc+0XADfMh60zBZKY6 TKbcRrs0yFz/ccqhdoCPdpDEQxUtUhr6rKAHUfZFeZ2fQeqhTCqsNja1mNPekv7VM+YfmU7HP+jyh g170sxhYl0GjrwnW9nsSjm7SLFIGGqBbZkER3Ac0anSjkcm7+QYnHo6a91Ip+NvQFpRXOnPsq8THy KI+I+WKLG0hxfpztlGhLbCmgGQ00qskDuI2OwFO3AeWIHPa7ZRH2Sbx4vYsxAQhjlTyITxFULqkyr GcrC+AJA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rr5Bz-00000006WRU-0Ey0; Mon, 01 Apr 2024 00:06:27 +0000 Received: from mail-os0jpn01on20700.outbound.protection.outlook.com ([2a01:111:f403:201a::700] helo=JPN01-OS0-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rr5Bl-00000006WGK-2bbK for linux-arm-kernel@lists.infradead.org; Mon, 01 Apr 2024 00:06:15 +0000 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) 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240331_170613_805973_4CCBB90E X-CRM114-Status: GOOD ( 10.05 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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: 13612357 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C1646CD128A for ; Mon, 1 Apr 2024 00:06:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Date:Subject:From: References:In-Reply-To:To:Message-ID:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=XwgLQpXf42XzU33I3zngI2jVRaEsmY2TKuWLmcqmytA=; b=GLknjbvU+t3msP6zzmNavRz7ZW 2IwIpompMOmnLaTXZMUUNnb2oMwUF45otZf59vGZOx66ymDWjpIpW8KrOtqP30QN982G4UNJwbELR Fv1OufYWhynxrYYXMAWREjWfbzf98Jy1x1jWclXPJBqJsIICwFlxXZ/P3SnfF42wYJ8TqQO7YpYDX F9QUlA/OhJTpx+h3F+RZ7WboQNFeqyGaKVQXDewvGM04x/kaKOGTjYJM/He7wapOOoPbTwKPwMLR5 LV2HnM8WQW+/9TQhWnfvdhilHLzc0RyBAy+u0wzfAzmt0SJTEbZDk1jWQGhQuNDYO/MYeGX4cyF4e q7cjheMw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rr5C0-00000006WSB-39k8; Mon, 01 Apr 2024 00:06:28 +0000 Received: from mail-os0jpn01on20700.outbound.protection.outlook.com ([2a01:111:f403:201a::700] helo=JPN01-OS0-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rr5Bo-00000006WKh-2cvd for linux-arm-kernel@lists.infradead.org; Mon, 01 Apr 2024 00:06:18 +0000 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) 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/+FdHg8pPST1BFgyA6C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K7vS7wCwHZaYjez533wCLM7+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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240331_170616_748372_EBE0C0BD X-CRM114-Status: GOOD ( 10.25 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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: 13612354 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 82734CD128A for ; Mon, 1 Apr 2024 00:06:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Date:Subject:From: References:In-Reply-To:To:Message-ID:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=FgDhdXPVCTFruxYzg8hQqMX7j8ifr6b3gIOVUX5RSuw=; b=w8NsBBk34tsW8yoxzLMgos3FC6 IDMsSvZJE6ib7XDkL8DFYd+fQo4Ik6yc+/d7FgEjTSDZqH9285jgY6kC0Gr3UmwTaavYNTTbsjwSg CRwJNz/xuh5+4eR2bv1TlKNNZsTsTf5Dn6Ke9P6dfHVdSsemj/IxtC7BtWH960teNEjetUOCGjNlG uDgASIu7841iCK1WiITOewU5qrFeMc0uiZ501NIRAI1lUALi+TCdihdeXCXH3t5nWdJf+4UC0d32m HkU+dCKrI82duJM5zeGwAXLjqtOBKgYNQd47e04KmxL4cK00LkwF60zSRG4hRBGbJRHwkLmj8V91m 0mozPD3A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rr5C1-00000006WSz-3osF; Mon, 01 Apr 2024 00:06:29 +0000 Received: from mail-os0jpn01on20700.outbound.protection.outlook.com ([2a01:111:f403:201a::700] helo=JPN01-OS0-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rr5Bs-00000006WNX-3Udb for linux-arm-kernel@lists.infradead.org; Mon, 01 Apr 2024 00:06:22 +0000 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) 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+oBeoY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PMNfUckFMlV5tUBnlM9iPqqAR4UrA6wmvknOeg6YU7CAmI5Hr95oL/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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240331_170620_969221_5756B33E X-CRM114-Status: UNSURE ( 9.71 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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);