mirror-linux/include/linux/device
Andy Shevchenko e254b75897 driver core: make bus_find_device_by_acpi_dev() stub prototype aligned
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 the help
of a forward declaration. Hence move the declaration out of the
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@linux.intel.com>
Link: https://patch.msgid.link/20251229144325.1252197-1-andriy.shevchenko@linux.intel.com
[ Fix minor typo in the commit message. - Danilo ]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
2026-01-10 01:03:53 +01:00
..
bus.h driver core: make bus_find_device_by_acpi_dev() stub prototype aligned 2026-01-10 01:03:53 +01:00
class.h driver core: class: Remove needless return in void API class_remove_file() 2025-02-20 12:47:56 +01:00
devres.h devres: Move devm_alloc_percpu() and related to devres.h 2025-11-20 01:18:26 +13:00
driver.h driver core: Introduce device_iter_t for device iterating APIs 2025-01-10 15:26:12 +01:00
faux.h driver core: add a faux bus for use when a simple device/bus is needed 2025-02-13 16:58:51 +01:00