device: acpi_name() should take a const struct device

There's no reason to mutate the struct device when determining
the ACPI name for a device. Adjust the function pointer
signature and the respective implementations to use const
struct device.

Change-Id: If5e1f4de36a53646616581b01f47c4e86822c42e
Signed-off-by: Aaron Durbin <>
Tested-by: build bot (Jenkins) <>
Reviewed-by: Furquan Shaikh <>
Reviewed-by: Subrata Banik <>
Reviewed-by: Paul Menzel <>
36 files changed