Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tools/testing/cxl: Use dev_is_platform()

Use dev_is_platform() instead of checking bus type directly.

Signed-off-by: Kunwu Chan <chentao@kylinos.cn>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://patch.msgid.link/20240827095123.168696-1-kunwu.chan@linux.dev
Signed-off-by: Dave Jiang <dave.jiang@intel.com>

authored by

Kunwu Chan and committed by
Dave Jiang
1c1d348b 1f9651bf

+1 -1
+1 -1
tools/testing/cxl/mock_acpi.c
··· 18 18 goto out; 19 19 } 20 20 21 - if (dev->bus == &platform_bus_type) 21 + if (dev_is_platform(dev)) 22 22 goto out; 23 23 24 24 adev = to_acpi_device(dev);