• Rafael J. Wysocki's avatar
    ACPI / bind: Simplify child device lookups · d9fef0c4
    Rafael J. Wysocki authored
    Now that we create a struct acpi_device object for every ACPI
    namespace node representing a device, it is not necessary to
    use acpi_walk_namespace() for child device lookup in
    acpi_find_child() any more.  Instead, we can simply walk the
    list of children of the given struct acpi_device object and
    return the matching one (or the one which is the best match if
    there are more of them).  The checks done during the matching
    loop can be simplified too so that the secondary namespace walks
    in find_child_checks() are not necessary any more.
    Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
    Reviewed-by: default avatarAaron Lu <aaron.lu@intel.com>
    d9fef0c4
glue.c 8.64 KB