From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) (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 5A55C3164DF; Wed, 15 Oct 2025 07:18:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.85.4 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760512714; cv=none; b=nyw546GTEWNhTHBK/PcGKEk9Tsnb+TplZDSgkRQvuX0iXXbiNUoxRAzBGPOXeDzEHN1LqDxM6Vw9tDNoB7IjmUS6u9hnS8IeUwHEqumrgvoKHsKXAwc/ReMdeJe5LIrUu1HEb1JLRup9qi28Ap5T56rSHQAHE8sb8EG+IrL4teA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760512714; c=relaxed/simple; bh=fsEkA9sT0O+b3+lFDQVYTp2zMX1Y5xBEN9bjcddjg9E=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=B1phRM0CYSIPoVdI1Wmu5EdJbpPpeC+GcQeaWnt10h4N+XotuP3kt+6qnNynbLqNrbCl6D7AP14R0737r6B5CJFAcZgckGNIiXfdvNlS/tyQyLUr6OMwWg1e/vDGj4urO5Vi10gkzzg3fWFE5nDGELp0dDen3QIwe91Mp/JGdU8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=JRaO4bYz; arc=none smtp.client-ip=185.246.85.4 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="JRaO4bYz" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id AC9C34E410C3; Wed, 15 Oct 2025 07:18:30 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 80FC3606FA; Wed, 15 Oct 2025 07:18:30 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id C6408102F22AF; Wed, 15 Oct 2025 09:18:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1760512707; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=XapR7WLR+LqYJDmtqOz+8aG2a7DE7pkUyNlWN34aPr0=; b=JRaO4bYzK+RZhbgcPZkteddx3T4MiiJJ2fig1PU9Scoucq3QZWFuSF28bxmU7k8Ie0ryXx 4+m5jhquyqRjTXjVfK4d11p8Mj2qFwaYI9utyYJXeLmq/9a+wjFsBLQRILJbXGKLjkXYoP ZQJCxWNHK9J9m9kckj9s4xKcZxWkokm18hedF+tx1PSwOMrk+VAUB3HvzgCBZtCnO6MUjx HCEHJQ4xXRNLAFtaf/Sc0ChMDdA50700bh094JolnGN5aVvPAdv6YyvOb6vfrtnFV9pa02 sNOEYJYgTBiGKAb+51IVXqawxJeZi/r7ggleRnXRTp3r4Ub1hOukueOqiq1mFQ== From: Herve Codina To: Andrew Lunn , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , "Rafael J. Wysocki" , Danilo Krummrich , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Michael Turquette , Stephen Boyd , Andi Shyti , Wolfram Sang , Peter Rosin , Arnd Bergmann , Herve Codina , Saravana Kannan , Bjorn Helgaas , Charles Keepax , Richard Fitzgerald , David Rhodes , Linus Walleij , Ulf Hansson , Mark Brown , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Sakari Ailus , Len Brown , Davidlohr Bueso , Jonathan Cameron , Dave Jiang , Alison Schofield , Vishal Verma , Ira Weiny , Dan Williams , Geert Uytterhoeven Cc: Wolfram Sang , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-i2c@vger.kernel.org, linux-pci@vger.kernel.org, linux-sound@vger.kernel.org, patches@opensource.cirrus.com, linux-gpio@vger.kernel.org, linux-pm@vger.kernel.org, linux-spi@vger.kernel.org, linux-acpi@vger.kernel.org, linux-cxl@vger.kernel.org, Allan Nielsen , Horatiu Vultur , Steen Hegelund , Luca Ceresoli , Thomas Petazzoni Subject: [PATCH v4 11/29] cxl/test: Use device_set_node() Date: Wed, 15 Oct 2025 09:13:58 +0200 Message-ID: <20251015071420.1173068-12-herve.codina@bootlin.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251015071420.1173068-1-herve.codina@bootlin.com> References: <20251015071420.1173068-1-herve.codina@bootlin.com> Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 The code set directly dev->fwnode. Use the dedicated helper to perform this operation. Signed-off-by: Herve Codina Reviewed-by: Dave Jiang --- tools/testing/cxl/test/cxl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/cxl/test/cxl.c b/tools/testing/cxl/test/cxl.c index 2d135ca533d0..eef6146a13d7 100644 --- a/tools/testing/cxl/test/cxl.c +++ b/tools/testing/cxl/test/cxl.c @@ -1124,7 +1124,7 @@ static void mock_companion(struct acpi_device *adev, struct device *dev) { device_initialize(&adev->dev); fwnode_init(&adev->fwnode, NULL); - dev->fwnode = &adev->fwnode; + device_set_node(dev, &adev->fwnode); adev->fwnode.dev = dev; } -- 2.51.0