[PATCH v2 4/7] ACPI: header: implement acpi_device_handle when !ACPI

Ricardo Ribalda posted 7 patches 1 year, 2 months ago
There is a newer version of this series
[PATCH v2 4/7] ACPI: header: implement acpi_device_handle when !ACPI
Posted by Ricardo Ribalda 1 year, 2 months ago
Provide an implementation of acpi_device_handle that can be used when
CONFIG_ACPI is not set.

Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
---
 include/linux/acpi.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/linux/acpi.h b/include/linux/acpi.h
index 4d5ee84c468b..85d7649ac17d 100644
--- a/include/linux/acpi.h
+++ b/include/linux/acpi.h
@@ -777,6 +777,7 @@ const char *acpi_get_subsystem_id(acpi_handle handle);
 
 #define acpi_disabled 1
 
+#define acpi_device_handle(adev)	(NULL)
 #define ACPI_COMPANION(dev)		(NULL)
 #define ACPI_COMPANION_SET(dev, adev)	do { } while (0)
 #define ACPI_HANDLE(dev)		(NULL)

-- 
2.47.0.371.ga323438b13-goog