Re: [PATCH v1 1/5] ACPI: Rename acpi_bus_get/put_acpi_device()

From: Guenter Roeck
Date: Wed Aug 10 2022 - 12:30:31 EST


On 8/10/22 09:14, Rafael J. Wysocki wrote:
From: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>

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@xxxxxxxxx>
---
drivers/acpi/bus.c | 6 +++---
drivers/acpi/device_pm.c | 4 ++--
drivers/acpi/irq.c | 4 ++--
drivers/acpi/scan.c | 21 ++++++++++++++++-----
drivers/hwmon/acpi_power_meter.c | 2 +-

For hwmon:

Acked-by: Guenter Roeck <linux@xxxxxxxxxxxx>