diff options
Diffstat (limited to 'include/linux/acpi.h')
-rw-r--r-- | include/linux/acpi.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 38296d686c55..5b8802216a93 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h | |||
@@ -440,6 +440,23 @@ struct platform_device *acpi_create_platform_device(struct acpi_device *); | |||
440 | #define ACPI_COMPANION_SET(dev, adev) do { } while (0) | 440 | #define ACPI_COMPANION_SET(dev, adev) do { } while (0) |
441 | #define ACPI_HANDLE(dev) (NULL) | 441 | #define ACPI_HANDLE(dev) (NULL) |
442 | 442 | ||
443 | struct fwnode_handle; | ||
444 | |||
445 | static inline bool is_acpi_node(struct fwnode_handle *fwnode) | ||
446 | { | ||
447 | return false; | ||
448 | } | ||
449 | |||
450 | static inline struct acpi_device *acpi_node(struct fwnode_handle *fwnode) | ||
451 | { | ||
452 | return NULL; | ||
453 | } | ||
454 | |||
455 | static inline struct fwnode_handle *acpi_fwnode_handle(struct acpi_device *adev) | ||
456 | { | ||
457 | return NULL; | ||
458 | } | ||
459 | |||
443 | static inline const char *acpi_dev_name(struct acpi_device *adev) | 460 | static inline const char *acpi_dev_name(struct acpi_device *adev) |
444 | { | 461 | { |
445 | return NULL; | 462 | return NULL; |
@@ -681,6 +698,9 @@ int acpi_dev_prop_read_single(struct acpi_device *adev, const char *propname, | |||
681 | enum dev_prop_type proptype, void *val); | 698 | enum dev_prop_type proptype, void *val); |
682 | int acpi_dev_prop_read(struct acpi_device *adev, const char *propname, | 699 | int acpi_dev_prop_read(struct acpi_device *adev, const char *propname, |
683 | enum dev_prop_type proptype, void *val, size_t nval); | 700 | enum dev_prop_type proptype, void *val, size_t nval); |
701 | |||
702 | struct acpi_device *acpi_get_next_child(struct device *dev, | ||
703 | struct acpi_device *child); | ||
684 | #else | 704 | #else |
685 | static inline int acpi_dev_get_property(struct acpi_device *adev, | 705 | static inline int acpi_dev_get_property(struct acpi_device *adev, |
686 | const char *name, acpi_object_type type, | 706 | const char *name, acpi_object_type type, |
@@ -725,6 +745,12 @@ static inline int acpi_dev_prop_read(struct acpi_device *adev, | |||
725 | return -ENXIO; | 745 | return -ENXIO; |
726 | } | 746 | } |
727 | 747 | ||
748 | static inline struct acpi_device *acpi_get_next_child(struct device *dev, | ||
749 | struct acpi_device *child) | ||
750 | { | ||
751 | return NULL; | ||
752 | } | ||
753 | |||
728 | #endif | 754 | #endif |
729 | 755 | ||
730 | #endif /*_LINUX_ACPI_H*/ | 756 | #endif /*_LINUX_ACPI_H*/ |