Re: [PATCH v4 1/2] ACPI: provide acpi_bus_find_device_by_name()
From: Andy Shevchenko
Date: Thu Apr 30 2026 - 08:46:18 EST
On Thu, Apr 30, 2026 at 09:34:05AM +0200, Bartosz Golaszewski wrote:
> Provide a helper allowing to locate an ACPI device by its name.
...
> +/**
> + * acpi_bus_find_device_by_name() - Locate an ACPI device by its name
> + * @name: Name of the device to match
*
* Caller is responsible to put_device() on the returned object
* when it is no more needed.
Or use whatever wording that is already present nearby and around similar
cases there.
> + *
> + * Returns:
> + * New reference to the matched device or NULL if the device can't be found.
> + */
--
With Best Regards,
Andy Shevchenko