Page MenuHomeFreeBSD

acpi: fix device_get_property invalid return
ClosedPublic

Authored by bag_semihalf.com on Nov 24 2021, 8:09 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 3, 5:14 PM
Unknown Object (File)
Wed, Oct 23, 10:03 PM
Unknown Object (File)
Sat, Oct 19, 11:54 AM
Unknown Object (File)
Sep 28 2024, 1:53 AM
Unknown Object (File)
Sep 14 2024, 11:54 AM
Unknown Object (File)
Sep 8 2024, 8:46 AM
Unknown Object (File)
Sep 7 2024, 10:42 PM
Unknown Object (File)
Sep 4 2024, 9:30 PM
Subscribers

Details

Summary

Previously ACPI implementation of device_get_property returned -1
when property was found, but it's type was not supported. This caused
device_has_property to return false in that scenario, which is
incorrect.

From now on, ACPI's device_get_property will return 0, when property type
is not unrecognized.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped