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 83A4B463B65; Wed, 9 Sep 2026 08:02:08 +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=1788940929; cv=none; b=LU5vEmTldwWy0VjKvM4vvrRuCRMSIguEiguAi+zjQiVwYLCA2SJ/rErn+14Hl4Ggn6GabwwN3BSlNDU3k5H3LITa78tKmvcHz0+qgorDtS+JzVvu2IOuhetfxlbgg2OW3AhsAE+Ty3H1s4xbFcvLWdhuGZufUDp1fIVanSm8XZw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788940929; c=relaxed/simple; bh=Jbdw0usvOZQDmqbHPlf/XV8ho+MieeERHIVywwe5C6U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=eTBFtltIkkfJNzZstuDbLbdH69WS1z6DKPjEGESiOno/KijCuq12/zPY90iSmrFKCMhZJQs2etELl2cR35InWSW7WeOyiP+/UrzyLBcBVjKDoGwiPDzsEOooJTGUPho4TroPSrMGOESeV1NqVgMCTvL+yTRcOFv7g8P4LYCkKnQ= 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=VEwSHCOC; 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="VEwSHCOC" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id 1551C4E415AE; Wed, 9 Sep 2026 08:02:07 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id DB0F160448; Wed, 9 Sep 2026 08:02:06 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id CAFAF11C7AF69; Wed, 9 Sep 2026 10:01:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1788940922; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=F5ZnkboCOsaNe86WTU/MdyF65AKP+FRRtRNjlyaevJo=; b=VEwSHCOCrbnZrHe0YOi8dDdZHq3L7uyKazzlsJWR8KA/ItHZpOTYTxJ+1vnMkPbFY7VUjM gGVWZrcnMBhE3OEY+151cwGXsL84R2buR4aIkNp/+iunYSirL2OIyxLrauSfzuQaKOBsZ3 FlJcY+I215f9k2FudKedUeTJJMhhWxB/uDWEIxnndTFNHDyEIqldEto9eSC765/8It5h+3 XG+hhl/wi2vZWkKoJT+mfI1gD0Nrphcbnk5gGlo+g3pt3qiqWyhSi2vnPxWu5qR/lRXbl6 vV3QPQTEDvY8kEwSUMWWCqi1y4dAbIg9L60Q9ejvi7nqaQBRXTDfuVglvRYN6Q== From: Herve Codina To: Richard Cheng , Andrew Lunn , Rob Herring , Saravana Kannan , Greg Kroah-Hartman , "Rafael J. Wysocki" , Danilo Krummrich , Bjorn Helgaas , Charles Keepax , Richard Fitzgerald , David Rhodes , Linus Walleij , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Sakari Ailus , Bartosz Golaszewski , Len Brown , Davidlohr Bueso , Jonathan Cameron , Dave Jiang , Alison Schofield , Vishal Verma , Dan Williams , Ira Weiny , Li Ming , Herve Codina , Lizhi Hou 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 v11 04/10] cxl/test: Use device_set_node() Date: Wed, 9 Sep 2026 10:01:03 +0200 Message-ID: <20260909080114.591938-5-herve.codina@bootlin.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260909080114.591938-1-herve.codina@bootlin.com> References: <20260909080114.591938-1-herve.codina@bootlin.com> Precedence: bulk X-Mailing-List: linux-cxl@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 Reviewed-by: Jonathan Cameron Reviewed-by: Andy Shevchenko Reviewed-by: Richard Cheng --- 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 62bd92b3be45..547ebc97bf59 100644 --- a/tools/testing/cxl/test/cxl.c +++ b/tools/testing/cxl/test/cxl.c @@ -1677,7 +1677,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.55.0