Skip to content

Commit 7d3707b

Browse files
ribaldarafaeljw
authored andcommitted
ACPI: header: implement acpi_device_handle when !ACPI
Provide an implementation of acpi_device_handle that can be used when CONFIG_ACPI is not set. Reviewed-by: Sakari Ailus <[email protected]> Acked-by: Mauro Carvalho Chehab <[email protected]> Signed-off-by: Ricardo Ribalda <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 34df773 commit 7d3707b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/linux/acpi.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -854,6 +854,11 @@ static inline struct fwnode_handle *acpi_fwnode_handle(struct acpi_device *adev)
854854
return NULL;
855855
}
856856

857+
static inline acpi_handle acpi_device_handle(struct acpi_device *adev)
858+
{
859+
return NULL;
860+
}
861+
857862
static inline bool has_acpi_companion(struct device *dev)
858863
{
859864
return false;

0 commit comments

Comments
 (0)