aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/usb/typec
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2022-02-22 20:51:42 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2022-03-02 20:55:47 +0100
commit3c36fe9302d153283a0cea9e4e25a9e2143ac232 (patch)
tree4136b715eb1f3acd078fcc5dd3e7a7077e79f3cd /drivers/usb/typec
parentLinux 5.17-rc6 (diff)
downloadwireguard-linux-3c36fe9302d153283a0cea9e4e25a9e2143ac232.tar.xz
wireguard-linux-3c36fe9302d153283a0cea9e4e25a9e2143ac232.zip
ACPI: bus: Introduce acpi_bus_for_each_dev()
In order to avoid exposing acpi_bus_type to modules, introduce an acpi_bus_for_each_dev() helper for iterating over all ACPI device objects and make typec_link_ports() use it instead of the raw bus_for_each_dev() along with acpi_bus_type. Having done that, drop the acpi_bus_type export. No intentional functional impact. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Diffstat (limited to 'drivers/usb/typec')
-rw-r--r--drivers/usb/typec/port-mapper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/typec/port-mapper.c b/drivers/usb/typec/port-mapper.c
index a7d507802509..a929e000d0e2 100644
--- a/drivers/usb/typec/port-mapper.c
+++ b/drivers/usb/typec/port-mapper.c
@@ -59,7 +59,7 @@ int typec_link_ports(struct typec_port *con)
if (!has_acpi_companion(&con->dev))
return 0;
- bus_for_each_dev(&acpi_bus_type, NULL, &arg, typec_port_match);
+ acpi_bus_for_each_dev(typec_port_match, &arg);
if (!arg.match)
return 0;