summaryrefslogtreecommitdiff
path: root/drivers/acpi/irq.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2022-08-10 19:14:22 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2022-08-23 19:19:27 +0300
commit45e9aa1fdbb2ebafec88c64bc53fe45cf8935b49 (patch)
treec0db8f995432cc38b0928c143666ab12add866a8 /drivers/acpi/irq.c
parent1c23f9e627a7b412978b4e852793c5e3c3efc555 (diff)
downloadlinux-45e9aa1fdbb2ebafec88c64bc53fe45cf8935b49.tar.xz
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.c4
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;
}