Re: [PATCH v1 1/1] driver core: make bus_find_device_by_acpi_dev() stub prototype aligned

From: Danilo Krummrich

Date: Fri Jan 09 2026 - 19:08:22 EST


On Mon Dec 29, 2025 at 3:43 PM CET, Andy Shevchenko wrote:
> Currently the bus_find_device_by_acpi_dev() stub for !CONFIG_ACPI case
> takes a const void * parameter instead of const struct acpi_device *.
> As long as it's a pointer, we may named it as we want to with a help
> of a forward declaration. Hence move the declaration out of ifdeffery
> and use the same prototype in both cases. This adds a bit of an additional
> type checking at a compilation time.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>

Applied to driver-core-testing, thanks!