Commit f2202f99 authored by Dave Jiang's avatar Dave Jiang Committed by Dan Williams

tools/testing/cxl: Add hostbridge UID string for cxl_test mock hb devices

In order to support acpi_device_uid() call, add static string to
acpi_device->pnp.unique_id.
Signed-off-by: default avatarDave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/170319622564.2212653.1534465446670631698.stgit@djiang5-mobl3Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent 4d07a053
...@@ -68,15 +68,19 @@ static struct acpi_device acpi0017_mock; ...@@ -68,15 +68,19 @@ static struct acpi_device acpi0017_mock;
static struct acpi_device host_bridge[NR_BRIDGES] = { static struct acpi_device host_bridge[NR_BRIDGES] = {
[0] = { [0] = {
.handle = &host_bridge[0], .handle = &host_bridge[0],
.pnp.unique_id = "0",
}, },
[1] = { [1] = {
.handle = &host_bridge[1], .handle = &host_bridge[1],
.pnp.unique_id = "1",
}, },
[2] = { [2] = {
.handle = &host_bridge[2], .handle = &host_bridge[2],
.pnp.unique_id = "2",
}, },
[3] = { [3] = {
.handle = &host_bridge[3], .handle = &host_bridge[3],
.pnp.unique_id = "3",
}, },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment