Commit 91438aeb authored by Rafael J. Wysocki's avatar Rafael J. Wysocki

ACPI: scan: Fix up _DEP-related terminology with supplier/consumer

The ACPI namespace scanning code uses the terms master/slave when
populating the list of _DEP dependencies, but that use has no
external exposures and is not mandated by nor associated with any
external specifications.

Change the language used through-out to supplier/consumer.

No functional impact.
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
parent b36b1e9d
...@@ -51,8 +51,8 @@ static u64 spcr_uart_addr; ...@@ -51,8 +51,8 @@ static u64 spcr_uart_addr;
struct acpi_dep_data { struct acpi_dep_data {
struct list_head node; struct list_head node;
acpi_handle master; acpi_handle supplier;
acpi_handle slave; acpi_handle consumer;
}; };
void acpi_scan_lock_acquire(void) void acpi_scan_lock_acquire(void)
...@@ -1881,8 +1881,8 @@ static void acpi_device_dep_initialize(struct acpi_device *adev) ...@@ -1881,8 +1881,8 @@ static void acpi_device_dep_initialize(struct acpi_device *adev)
if (!dep) if (!dep)
return; return;
dep->master = dep_devices.handles[i]; dep->supplier = dep_devices.handles[i];
dep->slave = adev->handle; dep->consumer = adev->handle;
adev->dep_unmet++; adev->dep_unmet++;
mutex_lock(&acpi_dep_list_lock); mutex_lock(&acpi_dep_list_lock);
...@@ -2058,8 +2058,8 @@ void acpi_walk_dep_device_list(acpi_handle handle) ...@@ -2058,8 +2058,8 @@ void acpi_walk_dep_device_list(acpi_handle handle)
mutex_lock(&acpi_dep_list_lock); mutex_lock(&acpi_dep_list_lock);
list_for_each_entry_safe(dep, tmp, &acpi_dep_list, node) { list_for_each_entry_safe(dep, tmp, &acpi_dep_list, node) {
if (dep->master == handle) { if (dep->supplier == handle) {
acpi_bus_get_device(dep->slave, &adev); acpi_bus_get_device(dep->consumer, &adev);
if (!adev) if (!adev)
continue; continue;
......
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