ACPI: Rename acpi_bus_get/put_acpi_device()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 10 Aug 2022 16:14:22 +0000 (18:14 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 23 Aug 2022 16:19:27 +0000 (18:19 +0200)
commit45e9aa1fdbb2ebafec88c64bc53fe45cf8935b49
treec0db8f995432cc38b0928c143666ab12add866a8
parent1c23f9e627a7b412978b4e852793c5e3c3efc555
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>
drivers/acpi/bus.c
drivers/acpi/device_pm.c
drivers/acpi/irq.c
drivers/acpi/scan.c
drivers/hwmon/acpi_power_meter.c
include/acpi/acpi_bus.h