summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica/exutils.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2021-01-18 20:25:37 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2021-01-25 19:00:32 +0100
commit83e2c8fc7ab89458b805e96ab37bccadf84f932b (patch)
treec94d72de3749fc25849837392fc2f11a6d2b7f27 /drivers/acpi/acpica/exutils.c
parent5e73c5187cf4f40a5e02b6c8e4dd0fcf9686c006 (diff)
downloadlinux-83e2c8fc7ab89458b805e96ab37bccadf84f932b.tar.bz2
ACPI: scan: Rearrange code related to acpi_get_device_data()
There are two callers of acpi_get_device_data(), acpi_bus_get_device() and acpi_bus_get_acpi_device(), but only one of them takes the int return value into account. Moreover, the latter knows that it passes a valid return pointer to acpi_get_device_data() and it properly clears that pointer upfront, so it doesn't need acpi_get_device_data() to do that. For this reason, rearrange acpi_get_device_data() to return a strct acpi_device pointer instead of an int and adapt its callers to that. While at it, rename acpi_get_device_data() to handle_to_device(), because the old name does not really reflect the functionality provided by that function. No intentional functional impact. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/acpi/acpica/exutils.c')
0 files changed, 0 insertions, 0 deletions