diff options
author | Hans de Goede <hdegoede@redhat.com> | 2020-11-21 21:30:35 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2020-12-02 14:06:49 +0100 |
commit | 6091b2631032adafa1c8c0bd181aa5d153185c6f (patch) | |
tree | 9c809551bbb2e5ede300d7237d476d7593d455a7 /drivers/acpi/internal.h | |
parent | 637b9f1a1194cc671bac0039824cc472a2960b2f (diff) | |
download | linux-stable-6091b2631032adafa1c8c0bd181aa5d153185c6f.tar.gz linux-stable-6091b2631032adafa1c8c0bd181aa5d153185c6f.tar.bz2 linux-stable-6091b2631032adafa1c8c0bd181aa5d153185c6f.zip |
ACPI: scan: Call acpi_get_object_info() from acpi_add_single_object()
Call acpi_get_object_info() from acpi_add_single_object() instead of
calling it from acpi_set_pnp_ids() and pass the result down to the
latter so as to allow acpi_add_single_object() to use that data for
other purposes.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
[ rjw: Changelog rewrite ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/internal.h')
-rw-r--r-- | drivers/acpi/internal.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/acpi/internal.h b/drivers/acpi/internal.h index 43411a7457cd..68f79e3fdb98 100644 --- a/drivers/acpi/internal.h +++ b/drivers/acpi/internal.h @@ -105,7 +105,8 @@ struct acpi_device_bus_id { int acpi_device_add(struct acpi_device *device, void (*release)(struct device *)); void acpi_init_device_object(struct acpi_device *device, acpi_handle handle, - int type, unsigned long long sta); + int type, unsigned long long sta, + struct acpi_device_info *info); int acpi_device_setup_files(struct acpi_device *dev); void acpi_device_remove_files(struct acpi_device *dev); void acpi_device_add_finalize(struct acpi_device *device); |