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 73747421A1C for ; Mon, 11 May 2026 16:00:18 +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=1778515219; cv=none; b=Wl7YKPEecCYjkJyu+ps544IvIylwBsl11BOpFJQNDsGjQVNDGBgN4IBoeBa9uH+pxz1dNpGB5DpJPjwy6+gl2780tKeHpZPfZLH7KFEYW0KGAa4ej0iKpPuA/4pDkR8Vhzi26+XwMMAfRelvPPpCNLxTGZhqOHNpKFSD6MGaJJU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778515219; c=relaxed/simple; bh=z1EvalsnnfnJHKLvlZT48/h0ZvCkmPErGXxEfvQ8g6k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=iuU2x6mMj/HCiI8P3T+XYK8S6xr6CUQhf1yIL2UmV2JRRGhR1W8WwWoH9AV6sdlrbFEBjzYlLMojadjcv7gzOI1bBI9XpGvtU0181NhDby2pTArmUUw4rsbeVjIeFmKg87Iju74/Q1QME2WEssKf/2Sgxl6xWWWg+1Eb4IVWhcw= 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=kLm9SUVR; 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="kLm9SUVR" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id 4E2734E42BF3; Mon, 11 May 2026 16:00:17 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 17CDD60646; Mon, 11 May 2026 16:00:17 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 4667011AF9F28; Mon, 11 May 2026 18:00:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1778515215; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=qdWWHNQ2gehGkV3uXL1v/9pUo5+SlY+b61bf1o7T3v8=; b=kLm9SUVRsjtkX7Jx9ffSpiPNoLl2pTYrfbCuMrXQu51nlvYyOSmKS+C5miC8hXx/KUZJuq pT5wL4ZgpA3W42RieVSbpTbyH9kqE0g/1DxLSpd/BIQkxVdlSMkSG8Ai0TvxYX4krsTalO tFSa5gMztiFG3RFDjfjyWMv1RrcoGwrCr0m+4IM0HQ8XvxMF7E5cTI7aeqxtElWdKdtdpz P4rHfkiQ9EC+jxwVe6Cbv/s8AANSFmvag6ZV5Xp0c9L9Oj5F8iS+H9VqwL88ZEwIp9STqz 6SId7kfXYUPcarqnLm1XaQwkmtjS3cvQ7ZLcikiTpN4AK7Ufp2D3FYXWxLNu2A== From: Herve Codina To: Andrew Lunn , Rob Herring , Saravana Kannan , Greg Kroah-Hartman , "Rafael J. Wysocki" , Danilo Krummrich , Bjorn Helgaas , Charles Keepax , Richard Fitzgerald , David Rhodes , Linus Walleij , Len Brown , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Sakari Ailus , Davidlohr Bueso , Jonathan Cameron , Dave Jiang , Alison Schofield , Vishal Verma , Ira Weiny , Dan Williams , Lizhi Hou , Herve Codina Cc: driver-core@lists.linux.dev, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-sound@vger.kernel.org, patches@opensource.cirrus.com, linux-gpio@vger.kernel.org, linux-acpi@vger.kernel.org, linux-cxl@vger.kernel.org, Allan Nielsen , Horatiu Vultur , Daniel Machon , Steen Hegelund , Luca Ceresoli , Thomas Petazzoni , Jonathan Cameron Subject: [PATCH v7 4/8] cxl/test: Use device_set_node() Date: Mon, 11 May 2026 17:59:24 +0200 Message-ID: <20260511155930.34604-5-herve.codina@bootlin.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260511155930.34604-1-herve.codina@bootlin.com> References: <20260511155930.34604-1-herve.codina@bootlin.com> Precedence: bulk X-Mailing-List: driver-core@lists.linux.dev 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 Reviewed-by: Jonathan Cameron --- 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 418669927fb0..2fdf8c0eca10 100644 --- a/tools/testing/cxl/test/cxl.c +++ b/tools/testing/cxl/test/cxl.c @@ -1515,7 +1515,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.54.0