diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2022-08-10 18:14:22 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2022-08-23 18:19:27 +0200 |
commit | 45e9aa1fdbb2ebafec88c64bc53fe45cf8935b49 (patch) | |
tree | c0db8f995432cc38b0928c143666ab12add866a8 /drivers/acpi/irq.c | |
parent | Linux 6.0-rc2 (diff) | |
download | linux-45e9aa1fdbb2ebafec88c64bc53fe45cf8935b49.tar.xz linux-45e9aa1fdbb2ebafec88c64bc53fe45cf8935b49.zip |
ACPI: Rename acpi_bus_get/put_acpi_device()
Because acpi_bus_get_acpi_device() is completely analogous to
acpi_fetch_acpi_dev(), rename it to acpi_get_acpi_dev() and
add a kerneldoc comment to it.
Accordingly, rename acpi_bus_put_acpi_device() to acpi_put_acpi_dev()
and update all of the users of these two functions.
While at it, move the acpi_fetch_acpi_dev() header next to the
acpi_get_acpi_dev() header in the header file holding them.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Punit Agrawal <punit.agrawal@bytedance.com>
Diffstat (limited to 'drivers/acpi/irq.c')
-rw-r--r-- | drivers/acpi/irq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/irq.c b/drivers/acpi/irq.c index dabe45eba055..4db5bb587599 100644 --- a/drivers/acpi/irq.c +++ b/drivers/acpi/irq.c @@ -118,12 +118,12 @@ acpi_get_irq_source_fwhandle(const struct acpi_resource_source *source, if (WARN_ON(ACPI_FAILURE(status))) return NULL; - device = acpi_bus_get_acpi_device(handle); + device = acpi_get_acpi_dev(handle); if (WARN_ON(!device)) return NULL; result = &device->fwnode; - acpi_bus_put_acpi_device(device); + acpi_put_acpi_dev(device); return result; } |