Re: [PATCH] ACPI: Provide !ACPI stub for acpi_device_uid()
From: Rafael J. Wysocki (Intel)
Date: Tue Sep 22 2026 - 07:56:26 EST
On Fri, Sep 18, 2026 at 5:27 PM Robin Murphy <robin.murphy@xxxxxxx> wrote:
>
> While the likes of acpi_dev_uid_to_integer() and acpi_dev_uid_match()
> already have stubs for !ACPI, the basic acpi_device_uid() getter does
> not. As with acpi_device_hid(), add one for the convenience of portable
> drivers who just want the string itself - in fact they are so much alike
> that we can simply alias the exact same stub definition.
>
> Signed-off-by: Robin Murphy <robin.murphy@xxxxxxx>
> ---
> include/acpi/acpi_bus.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h
> index 1a45e0d521d8..ed309ea4785d 100644
> --- a/include/acpi/acpi_bus.h
> +++ b/include/acpi/acpi_bus.h
> @@ -963,6 +963,7 @@ static inline const char *acpi_device_hid(struct acpi_device *device)
> {
> return "";
> }
> +#define acpi_device_uid acpi_device_hid
>
> static inline bool
> acpi_get_physical_device_location(acpi_handle handle, struct acpi_pld_info **pld)
> --
Sashiko has reservations that look valid:
https://sashiko.dev/#/patchset/513319f19ed6b0b6d4c76dc517074531966b98f5.1789745223.git.robin.murphy%40arm.com