HomeFreeBSD

ACPI: change arguments to internal acpi_find_dsd()

Description

ACPI: change arguments to internal acpi_find_dsd()

acpi_find_dsd() is not a bus function and we only need the acpi_device (ad).
The only caller has already looked up the ad (from ivars) for us.
Directly pass the ad to acpi_find_dsd() instead of bus, dev and remove
the extra call to device_get_ivars(); the changed argument also means we
now call AcpiEvaluateObject directly on the handle.

This optimisation was done a while ago while debugging a driver which
ended up with a bad bus, dev combination making the old version fail.

Reviewed by: mw
Differential Revision: https://reviews.freebsd.org/D35558

(cherry picked from commit 945eaca155fc0d48da8d11fc41b8b00f17254d90)

Details

Provenance
bzAuthored on Jun 23 2022, 12:17 AM
Reviewer
mw
Differential Revision
D35558: ACPI: change arguments to internal acpi_find_dsd()
Parents
rG67c01d848bf7: file: upgrade to 5.42.
Branches
Unknown
Tags
Unknown