Message ID | 87sexu4yes.wl-kuninori.morimoto.gx@renesas.com (mailing list archive) |
---|---|
State | Superseded |
Headers |
Received: from ny.mirrors.kernel.org ([147.75.199.223]) by linuxtv.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from <linux-media+bounces-12418-patchwork=linuxtv.org@vger.kernel.org>) id 1sDwLF-0006DK-1H for patchwork@linuxtv.org; Mon, 03 Jun 2024 01:18:30 +0000 Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id D1DC41C20D6C for <patchwork@linuxtv.org>; Mon, 3 Jun 2024 01:18:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1D5EF4A3F; Mon, 3 Jun 2024 01:18:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b="HsLlZ/7J" X-Original-To: linux-media@vger.kernel.org Received: from OS0P286CU011.outbound.protection.outlook.com (mail-japanwestazon11011008.outbound.protection.outlook.com [52.101.228.8]) (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 7C3EF620; Mon, 3 Jun 2024 01:18:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.228.8 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717377490; cv=fail; b=X/pAngy0n1KxN6BdejdFq5hK8Af+dRmdRvhle6qHHmPOXmmuDxoHOqFMQQO1dvG0QVOsj26vdFZG2cAD0n2ZRViNASLcaQZPb3+UZIfQesfpTw8xKIuWdSa0wV04dtnQmOnAouBBD1EUX+IzVwW+OPNhlpFnX32jTzK2IK0yNJs= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717377490; c=relaxed/simple; bh=APMP0vYrATNc/AwnIWuAiFEij8eWJy8DkbOGc5xhMSc=; h=Message-ID:To:In-Reply-To:References:From:Subject:Content-Type: Date:MIME-Version; b=lfyp/SvZGFiuF4C5iks/nbbPeuHyTkkLPsFNwkuk/yxJhyhpg4TP2wxkcbICXhpl0OFRjyhQAjb4iDcGe6eisqrtgPIwQjEib2PsANnPkVIvIeCrYfziG92Qyxs0BU0m1LQBDLMxcbO6px0qvWzPJ+eWDemeO8aESoSOOZCcpME= 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=HsLlZ/7J; arc=fail smtp.client-ip=52.101.228.8 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 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=l6zLaNaYHLjBMoI0Tg/WRzGzPiWoPnDTaC39q0yvHEH+nNuP403qKg0suKTKsSsi1nd0c7BmGXsD7nFruuYKMsYPCmPEE7twfdj4KSlNkiAfYiM0dRmdgkBsLWC1Jr49VJTAKqNeXyJZdcgH7AXL87LV88HhTIA595d3jaZQBgPBwiwpIggOEYfEvKhJNtQR7WgeSPZx9cwU19oHA8NpdU5Y6NuAsGGrgOJWgn5yWGivgES8VJY8SKCOUw7y0TMEW5NRAwVc4gg4AK1xsh0HNjZkGcDXOd7bEwt2Jbz/LCcQu5iyxypu418tS4pILYF4i5N68DVkBq7Vp93deIfZng== 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=q/hA+X/NDL2DHVcXTjFOx498moK6jPHb9pGdUrBCLk4=; b=b1E/qm1WRTbDaS+inqb86fgsnEUqPdmCzNVl6e/ar06fgi2INewFxavPKdArzqJcJ0S1Lac4cz4v5RuPhIdnwvonZS7AxnvbLM4gkSQpRZAgLJn3PfEVoe81mIkW9ZQgNfxtkFlixp4jrMNLAvI0Ht53Nv4n9QqscAfVukePd6bqAreT76wgzV6jVLLT1aqJDI81ySiFyrwizkp8669qZtr5a9gXOMZinHmslrFgIBpfN/FaqLSQkBNy/YCmrEOCS0hp6o/aE0hZzEtlNDfe1E7HVUCAQwvfhADi8m+PxYobElmBXTlNMrsLZvL4sBhxsSnmank/MtzFZwn6mgNCWQ== 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=q/hA+X/NDL2DHVcXTjFOx498moK6jPHb9pGdUrBCLk4=; b=HsLlZ/7JnGWbEnv2rmDmJtPWTuZ2hvRofSJFQVBAOrIx3pKdj9kdjFDwWwjj51K/ckOXG0etAwrf+1/E7U3SJYStdr8sWZgjDSRFUpwzJT/b5vXVqoSwXLL0n/+MXTtzBRz6eD7gKKArdqxQhXJ8QmDE/bMd5ssyr7O1F/wBl4s= 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 TYWPR01MB9479.jpnprd01.prod.outlook.com (2603:1096:400:1a6::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.23; Mon, 3 Jun 2024 01:18:04 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%4]) with mapi id 15.20.7633.021; Mon, 3 Jun 2024 01:18:04 +0000 Message-ID: <87sexu4yes.wl-kuninori.morimoto.gx@renesas.com> To: "Lad Prabhakar" <prabhakar.csengg@gmail.com>, Alexander Shishkin <alexander.shishkin@linux.intel.com>, Alexandre Belloni <alexandre.belloni@bootlin.com>, Claudiu Beznea <claudiu.beznea@tuxon.dev>, Daniel Vetter <daniel@ffwll.ch>, David Airlie <airlied@gmail.com>, Eugen Hristev <eugen.hristev@collabora.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Helge Deller <deller@gmx.de>, Laurent Pinchart <laurent.pinchart@ideasonboard.com>, Maarten Lankhorst <maarten.lankhorst@linux.intel.com>, Mauro Carvalho Chehab <mchehab@kernel.org>, Maxime Ripard <mripard@kernel.org>, Michal Simek <michal.simek@amd.com>, Nicolas Ferre <nicolas.ferre@microchip.com>, Rob Herring <robh+dt@kernel.org>, Suzuki K Poulose <suzuki.poulose@arm.com>, Thomas Zimmermann <tzimmermann@suse.de>, Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>, 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, linux-omap@vger.kernel.org, linux-staging@lists.linux.dev In-Reply-To: <87v82q4yg0.wl-kuninori.morimoto.gx@renesas.com> References: <87v82q4yg0.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Subject: [PATCH v4 2/9] gpu: drm: use for_each_endpoint_of_node() Content-Type: text/plain; charset=US-ASCII Date: Mon, 3 Jun 2024 01:18:04 +0000 X-ClientProxiedBy: TYAPR01CA0056.jpnprd01.prod.outlook.com (2603:1096:404:2b::20) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: <linux-media.vger.kernel.org> List-Subscribe: <mailto:linux-media+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-media+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYWPR01MB9479:EE_ X-MS-Office365-Filtering-Correlation-Id: f36f55ec-4dc8-4427-867b-08dc836b04f4 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:13230031|376005|7416005|1800799015|366007|52116005|921011|38350700005; X-Microsoft-Antispam-Message-Info: XoFUqiePWocVQ+g4nkODSbme7dzYN8q01x6oPOjj+fH+hHvp0g5julR/FJTKa77dcGABqP+KuRlotT2yRPaEIh9mIwB4jRvckWrTV4EjHqraB/BY2QZTzCamIJZTpCsslSauuXYXjZi853XUD7jPm6QEutYD1o5lQrf+BqGbn1LWXKjPdlgNbw7kkixLjWW0b8DN++m3DS1Bcjn5FIOlEPah6nHNE5KYNw+TV1TJHa5l6gBupogLjcAQHgKAwNNsKrPGIWuQs166j5O+511JPzVYz3YOizdI2l+lUu9awCHA/oLZpJ09vcttjVunSXVz3BXpfphRxtpakG4oTX0mmJIfTMvCRpvYuv57a3S3W+nVOurc2QUhApG2hE86B9iZKEVMhG2fZCS6iUlge9GON6IlqVOt1+UOmlopVgwNDC2fsHQZPl7DXjBmKRC3YZFC0jxyE4YhhLn/jmhny+PVL6gzPB15b+MvQ3lMS01bCDWwgcSkjD2ZU/XS6WH5SHPsUIOIo64RwuKh6btBjkSU2dQYTGqYnC/eaUGTmzuVoCBKJjPnSOLUeYfdf8bGyPQlEwpr2sRBeGPrqHCvxg141M82R1Mh265jABzUiIW3+IcloQCeGYXyoZ3bUADNdOOf+Ye3xhdwZB5cySkNZfD3VZzMKCRKo264Ojhrs2BIMvag4Q1lXN8EhSEa6qyjz4gDR5JEo03Kcmb8iE9qicApFnN5bjdJ9x6viguoDiCM+OPea2oty87YggP+InFH8xCApkFEQrX9ORiVw1IT/75AyY2c/Y+JrNP5jSk4Xd/yheWE9TZT50YuQq8f535b4aKQ34kKYiaaoVxFgiR3h0UDjyNLZ2xDIUN0+9C/Fg0+xsA3wKqFQU3QV1rnogYrdO+kuZU4kbredQCmg8vUkKn/W54T6a/WVCw0hF2DV8GbEOFhB7etbgCdC4Em19lOqOTW3Vp9OXKoh6id8W68tnBZFeKKth0y2SVQxTOCgdYl1RQWXQKf0VBwkU4j6t3iVYSEubHZRZDhBWOYqGi9QWs0Y1dZ4hrTn0iIjUrqC9LfQYWe1dWb2sho4ImxsAVstbG043oaLA7n77VKuG9VWrj03ChhStUS6utVy+UMMqpMDav3fpwmd7MM7Mu8pV03WYUKlf8NxVeZSAQANRP2jrxMhdUP08QWO9QeFdrEkGZkXRz7pZ2L6zqaKiIL1I5BWefnUlDGVamFTJ1cWXrGkzInieH7txK3fTl/ZGpYgGtD/bdkHb+d8WHgnsVe6hl7yoYa5gRWIacWuA0ULm9Vm0tbU5TX0iU+nPSGnykN8WOAGszv7fiJHwTFTFnLuEEsxLiLuvaROJ+B9C2NIVZxttrdHEIEnpOxUzfNUu4WHMGYCco= 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)(376005)(7416005)(1800799015)(366007)(52116005)(921011)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: m/6/DTqcUK83xj4CrA0UV1R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SkMIMlfPR6xUCsyIEHzVA1CwZfhODqFF1bAeNAeHl+2xQOjcD0whdliHfiRmAdrlC7PXlDTetvvGAhKPCZQ/OG/HVfG9g2gthzt3Rewlsa1RrolN/GXjG4mF2+Z2iAYocrjMznSX4W4u8r4bWWkUfb6KXEdbKrgRYSsxdwxky9vKvoP3KfsRlvMN1Y+d9spCMu6YFwsI11SAcElsVp9FGFWXYymiUz0yNSKz8iHxWFmhTKo1XFsZ9eJSSozK1XprnmvGPVwgHv4GfmzprEuQy1LVhcYjPYolFl/B1CNhLiIV61QW4oFppPDgjbpteIs8RBa4Q4VBXmYWCpnPI9/Ac/h2Jjmt8+rDtN3rknKWn6EK5qbXCr8K2dQtkTwULRnAF9gEUAmHSel1/k6lREf566YZbb5KS7FvU8XEo8dkLaa1YWSXSYdthXRCnOYah75pihOFScjCUZJF+J0q1M3rlN8sNviOe/k2cGEWAvtNnwpBKE7Vcj6ix2KlCNMvyOg1sLDOqh7kFn43GsLsNFfyi5GwVfYXm/1G4B2kAY= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: f36f55ec-4dc8-4427-867b-08dc836b04f4 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jun 2024 01:18:04.8788 (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: ppBV6Z/Suq7JS7PeXrwRQIE+KEPImUKz2dg7JjXskc2JCJLEC2uOzvuIFYnZb8fCGMz5G9nLA0Q5LF4OPRRSNFqH4z+EZ9HVO7RhkGyjGfkgV40Uj51C6EuBIj/ZC74V X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB9479 X-LSpam-Score: -2.6 (--) X-LSpam-Report: No, score=-2.6 required=5.0 tests=ARC_SIGNED=0.001,ARC_VALID=-0.1,BAYES_00=-1.9,DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1,DMARC_PASS=-0.001,HEADER_FROM_DIFFERENT_DOMAINS=0.5,MAILING_LIST_MULTI=-1,SPF_HELO_NONE=0.001,SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no |
Series |
use for_each_endpoint_of_node()
|
|
Commit Message
Kuninori Morimoto
June 3, 2024, 1:18 a.m. UTC
We already have for_each_endpoint_of_node(), don't use of_graph_get_next_endpoint() directly. Replace it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Acked-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> --- 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 050ca7eafac58..5f8002f6bb7a5 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)