diff options
Diffstat (limited to 'include/linux/acpi.h')
-rw-r--r-- | include/linux/acpi.h | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 65932c08afd2..2d42fb7d56b7 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h | |||
@@ -934,9 +934,17 @@ struct acpi_reference_args { | |||
934 | #ifdef CONFIG_ACPI | 934 | #ifdef CONFIG_ACPI |
935 | int acpi_dev_get_property(struct acpi_device *adev, const char *name, | 935 | int acpi_dev_get_property(struct acpi_device *adev, const char *name, |
936 | acpi_object_type type, const union acpi_object **obj); | 936 | acpi_object_type type, const union acpi_object **obj); |
937 | int acpi_node_get_property_reference(struct fwnode_handle *fwnode, | 937 | int __acpi_node_get_property_reference(struct fwnode_handle *fwnode, |
938 | const char *name, size_t index, | 938 | const char *name, size_t index, size_t num_args, |
939 | struct acpi_reference_args *args); | 939 | struct acpi_reference_args *args); |
940 | |||
941 | static inline int acpi_node_get_property_reference(struct fwnode_handle *fwnode, | ||
942 | const char *name, size_t index, | ||
943 | struct acpi_reference_args *args) | ||
944 | { | ||
945 | return __acpi_node_get_property_reference(fwnode, name, index, | ||
946 | MAX_ACPI_REFERENCE_ARGS, args); | ||
947 | } | ||
940 | 948 | ||
941 | int acpi_node_prop_get(struct fwnode_handle *fwnode, const char *propname, | 949 | int acpi_node_prop_get(struct fwnode_handle *fwnode, const char *propname, |
942 | void **valptr); | 950 | void **valptr); |
@@ -1012,6 +1020,14 @@ static inline int acpi_dev_get_property(struct acpi_device *adev, | |||
1012 | return -ENXIO; | 1020 | return -ENXIO; |
1013 | } | 1021 | } |
1014 | 1022 | ||
1023 | static inline int | ||
1024 | __acpi_node_get_property_reference(struct fwnode_handle *fwnode, | ||
1025 | const char *name, size_t index, size_t num_args, | ||
1026 | struct acpi_reference_args *args) | ||
1027 | { | ||
1028 | return -ENXIO; | ||
1029 | } | ||
1030 | |||
1015 | static inline int acpi_node_get_property_reference(struct fwnode_handle *fwnode, | 1031 | static inline int acpi_node_get_property_reference(struct fwnode_handle *fwnode, |
1016 | const char *name, size_t index, | 1032 | const char *name, size_t index, |
1017 | struct acpi_reference_args *args) | 1033 | struct acpi_reference_args *args) |