From patchwork Mon Jul 1 02:32:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13717504 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 4B22BC27C4F for ; Mon, 1 Jul 2024 02:33:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Date: Content-Type:References:In-Reply-To:To:Subject:From:Message-ID:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=8qQYdnzwgiJpwqNy4G9/w3ekIk9sqx4o5YOeurQuIcM=; b=1gjR4AEdQt/VxWAv+byebd7J3p oY5lEyXhjhDK4Ex7lrr69d+Y0e7ooRfzlGq/cwOjIQwd7eTcEvEMtlXcwoPdPo0VoqVHFYV/BPcCD MJR1swwDBWj14S1KXq/+vSfArjFDYIdu4YwvX8fZBjzk+Lowh7sjprBN/ZJguxsBMwNvZpjJULCh1 difUcdWhjRe2UOd3DMzIY/U64qakC/WCVkEEBoqwkePOngD74QRAu4LBaAwBBNeGkiqZvY1+tmFMb BBeSuYKgZa8uljcasrZPi3DgbP4cPVbv41zWrAUfkXSsHPB0XisXl+SuiFb9ozBvk1Z21rQOVWpg1 mjzGpCEQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sO6qd-00000001TnQ-0C5f; Mon, 01 Jul 2024 02:32:55 +0000 Received: from mail-japaneastazlp170100001.outbound.protection.outlook.com ([2a01:111:f403:c405::1] helo=TY3P286CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sO6qK-00000001TgD-0AYn; Mon, 01 Jul 2024 02:32:38 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B/vNI27WLfZ+Kkcz1GNgpsxBMC8F/G97qZG3qTd+cR8gOolooqMJLwmml6kpmXj8cyA8xGRLhRYRikVx6wmFjbPb7UMA7QiAXYBZPTS2swCdx/edJrwhrCS4pYaTulwCPh39zwlEH1OBpZvC4iDI7LLiiUFplPPHr1LOQX63Nmcc6vnhQekPG6Xkh7p8iDUzsZUb7jL6CjuGvMZ9f1hvPPW5t/R0gzjv3u6s+Ydm5wzEu2uVaXoarEGZakBRrjP/+995YS6xAwl+getU/PIO3UANqh19+DdxMQSUvAGiFsPqYv1FeoFOvpc0ajHwHpP0Zp0b3MWJOv0NmvZzVVZRmw== 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=8qQYdnzwgiJpwqNy4G9/w3ekIk9sqx4o5YOeurQuIcM=; b=A29TMtZZHEFaO1qX4sxXrUmMgTNzc24IB/FMsxcHHxFpkVnd57VBq6b5GiX/3Xhskx2Jo4gi8N/PniD2rojyYjCHAFPrDzqqkX7TsPn117jsxHtAhPG+VcSfGFGPPL0/l+I2ADa0ftQISWg/tCtW8vUgLSyG80jtpzRslHjI+XOok1IoAAyq1TCVqwtbly0fWoYVtdD9PMH8WfHLQ6YdzfMOy1hxXaeX382Jy6WJ8knTm/l/qFqiYQYwWONz3vJGcyZGwvmPQ8UHILYS8ODtKyCa3HCvR0OU/3PRFV7Udlrjsxt2GVu/bQf2Rto+mjUj/OwzFmPzbOYfF82qvAsCmQ== 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=8qQYdnzwgiJpwqNy4G9/w3ekIk9sqx4o5YOeurQuIcM=; b=PJn9yCj6VKFrYrkh9ZLZzCXkKwqu/ayld82P/DcTKd1Bp4Y4p/dVp1GnVxrjNHrROlpDMCdHvKiI9GnhGwsu/GJWL9I3DJVJl2hYt1MEM3vU+zuSNtv1p7PXFpCQ//KfQefeL/XYmNMdwzBLpgSToc1sYed2mMd6+T9PtxScR4k= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) by TYCPR01MB9627.jpnprd01.prod.outlook.com (2603:1096:400:193::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7719.32; Mon, 1 Jul 2024 02:32:29 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%5]) with mapi id 15.20.7719.029; Mon, 1 Jul 2024 02:32:28 +0000 Message-ID: <87a5j1970j.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v5 2/7] gpu: drm: use for_each_endpoint_of_node() To: "Lad, Prabhakar" , Alexander Shishkin , Alexandre Belloni , Alexey Brodkin , Claudiu Beznea , Daniel Vetter , David Airlie , Dmitry Baryshkov , Eugen Hristev , Florian Fainelli , Greg Kroah-Hartman , Laurent Pinchart , Maarten Lankhorst , Mauro Carvalho Chehab , Maxime Ripard , Michal Simek , Neil Armstrong , Nicolas Ferre , Suzuki K Poulose , Thomas Zimmermann , Tomi Valkeinen , coresight@lists.linaro.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-staging@lists.linux.dev In-Reply-To: <87cynx971l.wl-kuninori.morimoto.gx@renesas.com> References: <87cynx971l.wl-kuninori.morimoto.gx@renesas.com> Date: Mon, 1 Jul 2024 02:32:28 +0000 X-ClientProxiedBy: TY2PR02CA0031.apcprd02.prod.outlook.com (2603:1096:404:a6::19) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYCPR01MB9627:EE_ X-MS-Office365-Filtering-Correlation-Id: 016432cc-ffb5-41f7-c588-08dc99760d3e X-LD-Processed: 53d82571-da19-47e4-9cb4-625a166a4a2a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|376014|52116014|1800799024|366016|38350700014|921020; X-Microsoft-Antispam-Message-Info: DGlB2Z5dy/F5TDMFr3wQq6UOoRJdAYDq4iB0VWumF/Vk7JIq9J1piDwk9UqI//apQYD/nFvi73/tGLCWt3iiTXE3ttu2hVpJeTE3Ra/Mc5rS9Gag+/b6BMsaxx3xitsZqIv44eCGMAJSADAhhKrTNFWwX60a8Dw9C1y4yUhOFOOcdQaRuembAgulVvaZ+pkhTCPwftsoltWCLamUxyhE6f+lAddzuISPd9FEmEHyL7vczb31Y4tb/rZLsK7myjFtLEq4aNZs9VC7t/Te/0zw3MWATfqYGBRasPofPPCYuGRR44hmQ/A+0JjOFYQz5rNWJ9M52wJ0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KrgbkTp+WDTIA0FLyYgLsYzti3sWXYihYIg5jFHbhofumFKKQVXDERW4Jlc= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYCPR01MB10914.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(7416014)(376014)(52116014)(1800799024)(366016)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: SZEAeq87b6UMmxlkQ2+fLKFdeznc9q5MFAKDfRoZz64axSUdoIG76wWEBqkBu2FDevHf6Lltl8ZfqeSb/uNZ1vNOY4zdnAMHyJa/89YFMdWbaDZ5y/VIl2D1C5E+zpNqlSSnUXetsX0mSyA7HtH2cYHBiBqVemCRcGaOUyAu3nyI+MrQZX6HAcYl0t1m7bSW5uHGIHIAQr9xI4VIDMYeZNaHJPOyqG97bexf3+JH9YxI5kwYyzIcD610NaZouc78M401S8/j5qQqQJ6ciaCX+v+NdzB3QNQ8NI3YOuPpM3Af614IwIr2nsQELAZCH/UNoJ+3hfoyeHAGmBk68AG0w77hWS3qLOggqg9ac5R8BwuDg40s99HMnDngqVlQkjxRKRkbesI3mba4mz2XeWQwiCWjzH4RBG1l388/7CSyKsNVvMwGd2BWAIkouLuXvt4S0+wzQX44/z+J5LM/mOqGMlgX5D3Ii8w8BQGOyV8ZspDIff+2WyzAYhy8S8E8CFc22MODHX06bIVmBmCuka0VaM/643Fg7lejUc11aGnQRHlZocr3MYjCtj0ehzc4vjn+AfRSxyxAe9czaQFY/4DpjT8Y/lxxoNzhsM03lwtt++PehUGvyEGKV41lyo/T+SQaQL9l5DgwaFQzlj9cnTgXOmz1015sZ1iH+KfD8639AXSIz9ZKX/IEtnciAradALfRIXHzEymserPcsGZ0a4P+bton8jJPcOOGdRE3eST+N9HmixaPNmx2xGcr7sXytPdj0Fk5wKY6uOSBEZyIAevMQgPVXtJAH/03JJW9TUOByWnYQPUgbMnxioeNVe7ot+8V/kU5ifUW2eati4MJeCVeiFGX3y9N3aBX12XfAw06Nj+oxZ16mHQ+QhLCneYOMwZFFlFRSrlEWBnjNvE11awFIjk232brlhBGk3qUIRuJ0aB1uMXBpJIJLCwrtIid1+bornW+MVVW8vpWP/2ZHSNMAr1HRXliX/O9HNCMuNjCdSZIAsMpHAnbs7D4fukB+M/mXLPogSxZBOLl0eH3iqx2LkBczzaj3DL4VmdWN91B6U4kaolwB6IVbEFDA/z6i36DdD8dZFEetoyyYAv8N5HfPobCSnwuLQ1HdcSqMLqPGXmVsRmNDg5a3TRHgmG4cQsCoMvCJLuHF3mojLeIb8V4tGD3b42JLhrTZNj/A3ZHhvbYxfm6ki2bJhwIByG+TotahQ8DD68zRzES2VOwUD+KBq/XwY6fQ8dS55OpEaopRVEbdgGVO3SpYEZ/RQrrqAXj7FOvKQG+nqS09GYphcvptHD2Zvn/U0TZ578st3N7oZ8/jZj7pcPzqED6DdmeLEo6v9jgiN7HRIlpR7W26BczKvakJQ851HZONmnNiXHBxDmq4cLrTDU4GPEtxyGm54ToSHPH4t6G3x7sdwGXeWsdjom8zD3848qz2Y779IqfrDQ04UZDmi9BtgelGShyzo8r4Oo/qvRPEpErgqJx1Z7Sr4d7DXx6iqE2vf9IeYRRdSx+X3G7RYLT55p7S7j1x2OeFsP1c8TG6GbI465pMXEX2x29cGcKhtcDDOmqCzUqgFc/9Mo4nCFMKxs6k+FgV9l3Jfn8GVoaeuWoidx98aftuxvnGxK/RRswrwk8QwL7OcQ= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 016432cc-ffb5-41f7-c588-08dc99760d3e X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jul 2024 02:32:28.8736 (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: pOikd2MRU6dQEHNHvwk4MKhzLIgCdpl7WPC2RcAI60Jyx6A4H7UfDc3dQoWetHeVkCktqXYBTwArusI4whw4TXfxz7hmw6EA6lK/SaOXXxN/DDmIZ3+IMq4kIKJI0G2c X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB9627 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240630_193236_176552_ADF43932 X-CRM114-Status: UNSURE ( 9.37 ) 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 Acked-by: Dmitry Baryshkov Reviewed-by: Laurent Pinchart --- 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)