diff options
Diffstat (limited to 'include/linux/acpi.h')
| -rw-r--r-- | include/linux/acpi.h | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index e54f40974eb0..de8d3d3fa651 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h | |||
| @@ -1058,27 +1058,20 @@ static inline int acpi_dev_gpio_irq_get(struct acpi_device *adev, int index) | |||
| 1058 | 1058 | ||
| 1059 | /* Device properties */ | 1059 | /* Device properties */ |
| 1060 | 1060 | ||
| 1061 | #define MAX_ACPI_REFERENCE_ARGS 8 | ||
| 1062 | struct acpi_reference_args { | ||
| 1063 | struct acpi_device *adev; | ||
| 1064 | size_t nargs; | ||
| 1065 | u64 args[MAX_ACPI_REFERENCE_ARGS]; | ||
| 1066 | }; | ||
| 1067 | |||
| 1068 | #ifdef CONFIG_ACPI | 1061 | #ifdef CONFIG_ACPI |
| 1069 | int acpi_dev_get_property(const struct acpi_device *adev, const char *name, | 1062 | int acpi_dev_get_property(const struct acpi_device *adev, const char *name, |
| 1070 | acpi_object_type type, const union acpi_object **obj); | 1063 | acpi_object_type type, const union acpi_object **obj); |
| 1071 | int __acpi_node_get_property_reference(const struct fwnode_handle *fwnode, | 1064 | int __acpi_node_get_property_reference(const struct fwnode_handle *fwnode, |
| 1072 | const char *name, size_t index, size_t num_args, | 1065 | const char *name, size_t index, size_t num_args, |
| 1073 | struct acpi_reference_args *args); | 1066 | struct fwnode_reference_args *args); |
| 1074 | 1067 | ||
| 1075 | static inline int acpi_node_get_property_reference( | 1068 | static inline int acpi_node_get_property_reference( |
| 1076 | const struct fwnode_handle *fwnode, | 1069 | const struct fwnode_handle *fwnode, |
| 1077 | const char *name, size_t index, | 1070 | const char *name, size_t index, |
| 1078 | struct acpi_reference_args *args) | 1071 | struct fwnode_reference_args *args) |
| 1079 | { | 1072 | { |
| 1080 | return __acpi_node_get_property_reference(fwnode, name, index, | 1073 | return __acpi_node_get_property_reference(fwnode, name, index, |
| 1081 | MAX_ACPI_REFERENCE_ARGS, args); | 1074 | NR_FWNODE_REFERENCE_ARGS, args); |
| 1082 | } | 1075 | } |
| 1083 | 1076 | ||
| 1084 | int acpi_node_prop_get(const struct fwnode_handle *fwnode, const char *propname, | 1077 | int acpi_node_prop_get(const struct fwnode_handle *fwnode, const char *propname, |
| @@ -1096,14 +1089,6 @@ struct fwnode_handle *acpi_get_next_subnode(const struct fwnode_handle *fwnode, | |||
| 1096 | struct fwnode_handle *child); | 1089 | struct fwnode_handle *child); |
| 1097 | struct fwnode_handle *acpi_node_get_parent(const struct fwnode_handle *fwnode); | 1090 | struct fwnode_handle *acpi_node_get_parent(const struct fwnode_handle *fwnode); |
| 1098 | 1091 | ||
| 1099 | struct fwnode_handle * | ||
| 1100 | acpi_graph_get_next_endpoint(const struct fwnode_handle *fwnode, | ||
| 1101 | struct fwnode_handle *prev); | ||
| 1102 | int acpi_graph_get_remote_endpoint(const struct fwnode_handle *fwnode, | ||
| 1103 | struct fwnode_handle **remote, | ||
| 1104 | struct fwnode_handle **port, | ||
| 1105 | struct fwnode_handle **endpoint); | ||
| 1106 | |||
| 1107 | struct acpi_probe_entry; | 1092 | struct acpi_probe_entry; |
| 1108 | typedef bool (*acpi_probe_entry_validate_subtbl)(struct acpi_subtable_header *, | 1093 | typedef bool (*acpi_probe_entry_validate_subtbl)(struct acpi_subtable_header *, |
| 1109 | struct acpi_probe_entry *); | 1094 | struct acpi_probe_entry *); |
| @@ -1169,7 +1154,7 @@ static inline int acpi_dev_get_property(struct acpi_device *adev, | |||
| 1169 | static inline int | 1154 | static inline int |
| 1170 | __acpi_node_get_property_reference(const struct fwnode_handle *fwnode, | 1155 | __acpi_node_get_property_reference(const struct fwnode_handle *fwnode, |
| 1171 | const char *name, size_t index, size_t num_args, | 1156 | const char *name, size_t index, size_t num_args, |
| 1172 | struct acpi_reference_args *args) | 1157 | struct fwnode_reference_args *args) |
| 1173 | { | 1158 | { |
| 1174 | return -ENXIO; | 1159 | return -ENXIO; |
| 1175 | } | 1160 | } |
| @@ -1177,7 +1162,7 @@ __acpi_node_get_property_reference(const struct fwnode_handle *fwnode, | |||
| 1177 | static inline int | 1162 | static inline int |
| 1178 | acpi_node_get_property_reference(const struct fwnode_handle *fwnode, | 1163 | acpi_node_get_property_reference(const struct fwnode_handle *fwnode, |
| 1179 | const char *name, size_t index, | 1164 | const char *name, size_t index, |
| 1180 | struct acpi_reference_args *args) | 1165 | struct fwnode_reference_args *args) |
| 1181 | { | 1166 | { |
| 1182 | return -ENXIO; | 1167 | return -ENXIO; |
| 1183 | } | 1168 | } |
