From nobody Fri Dec 19 12:06:25 2025 Received: from out-186.mta0.migadu.com (out-186.mta0.migadu.com [91.218.175.186]) (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 EF9321714B8 for ; Tue, 27 Aug 2024 09:51:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.186 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724752318; cv=none; b=NQCMsSGsOygr19tsjwgn9q7CapeuKrSAttqz7E/M+4bO8HhwcQI7mTppVBTP5KbJvamfH46RTwPZ8/YXH3bG9gFC23xl0LfZoC8GpiM1sGVlnzy7N+x1w7nIj1dPbCl9mnWCQ0B0NoBFLZDDRhOb0IO+1fZkeGRzRiaIjV3JkLM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724752318; c=relaxed/simple; bh=1p6pmnqI7EqVba9pVVN8kdlQYzKrOCXpB5NqkCr/MMU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=aCwMC18bV+9zh0G9fZUxOMHqY3zdSMh/mZY/Ul9PL1mRC/+lj14Y/48AK50ypp+qQ3TdF9dno1wxz2UXUZvxAJtxgdv5eNBGFy5CjZAAceW1frgqydCJ72RVhs9IqGUuo1jwGa2hBNtDXx5PSC1rO4o6ZmI3zx7pFTCK6IDo75Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=Wi8Pv6Ke; arc=none smtp.client-ip=91.218.175.186 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="Wi8Pv6Ke" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1724752312; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=vwiC4I+wNAddjc4LjGQaDlHdkw/jV1rVA+GTUj5UF/c=; b=Wi8Pv6Ke2VGeL6TmDsMPzkzXQZAZ/EOXh8aPujr3uQ6ZpQEZS3t6uD8pI1jDgf47t2p+eA ThlhIF9DPKDMj/N2hjs1UK5/R5Bcn/v83rlVZEFDDKX9HOtYfVjUubXajrUiDf0SdckS4R uJSTyn6eevP6rCXNiWArJO15bzrkSzk= From: Kunwu Chan To: dave@stgolabs.net, jonathan.cameron@huawei.com, dave.jiang@intel.com, alison.schofield@intel.com, vishal.l.verma@intel.com, ira.weiny@intel.com, dan.j.williams@intel.com Cc: linux-cxl@vger.kernel.org, linux-kernel@vger.kernel.org, Kunwu Chan Subject: [PATCH] tools/testing/cxl: Use dev_is_platform() Date: Tue, 27 Aug 2024 17:51:23 +0800 Message-ID: <20240827095123.168696-1-kunwu.chan@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" From: Kunwu Chan Use dev_is_platform() instead of checking bus type directly. Signed-off-by: Kunwu Chan Reviewed-by: Jonathan Cameron --- tools/testing/cxl/mock_acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/cxl/mock_acpi.c b/tools/testing/cxl/mock_acpi.c index 55813de26d46..8da94378ccec 100644 --- a/tools/testing/cxl/mock_acpi.c +++ b/tools/testing/cxl/mock_acpi.c @@ -18,7 +18,7 @@ struct acpi_device *to_cxl_host_bridge(struct device *hos= t, struct device *dev) goto out; } =20 - if (dev->bus =3D=3D &platform_bus_type) + if (dev_is_platform(dev)) goto out; =20 adev =3D to_acpi_device(dev); --=20 2.41.0