]> www.infradead.org Git - users/dwmw2/linux.git/commit
ACPI: scan: Add acpi_info_matches_hids() helper
authorHans de Goede <hdegoede@redhat.com>
Sat, 21 Nov 2020 20:30:34 +0000 (21:30 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 2 Dec 2020 13:02:51 +0000 (14:02 +0100)
commit637b9f1a1194cc671bac0039824cc472a2960b2f
treebca03e0ce8ed9ebe297f8c237290d4af10099e81
parentc1e9735975c05d36ca97e9d39e9b06c3e0b3b0d7
ACPI: scan: Add acpi_info_matches_hids() helper

acpi_device_dep_initialize() disergards _DEP "suppliers" with a _HID
of "INT3396" and checks this using an acpi_device_info struct.

Because in general there are other device IDs that need to be treated
in the same way, add acpi_info_matches_hids() which checks a list of
_HIDs for this purpose and switch acpi_device_dep_initialize() over
to using it.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
[ rjw: Changelog rewrite ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/scan.c