Re: [PATCH v4 13/15] acpi: Add acpi_dev_get_next_match_dev() and helper macro
From: Andy Shevchenko
Date: Mon Jan 04 2021 - 09:26:59 EST
On Sun, Jan 03, 2021 at 11:12:33PM +0000, Daniel Scally wrote:
> To ensure we handle situations in which multiple sensors of the same
> model (and therefore _HID) are present in a system, we need to be able
> to iterate over devices matching a known _HID but unknown _UID and _HRV
> - add acpi_dev_get_next_match_dev() to accommodate that possibility and
> change acpi_dev_get_first_match_dev() to simply call the new function
> with a NULL starting point. Add an iterator macro for convenience.
Since v5, also please update prefix in the Subject here to be "ACPI / bus: ".
--
With Best Regards,
Andy Shevchenko