diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2011-11-03 23:32:20 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2011-11-03 23:32:20 -0400 |
commit | 3983138c017b6aeab6ce3dbb1e9afbe80bdac496 (patch) | |
tree | 9fdcddfdb8ada91504c90e2551ba6a565ade7325 /include/linux/of.h | |
parent | ed5f886d16369fed5a69d96b8e85777c47206de1 (diff) | |
parent | 02aac316abf436a7529d46a71f7083f9f9ef4b49 (diff) |
Merge branch 'for-grant' of git://sources.calxeda.com/kernel/linux into devicetree/merge
Diffstat (limited to 'include/linux/of.h')
-rw-r--r-- | include/linux/of.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/of.h b/include/linux/of.h index 758899d4902b..4386c5fee57c 100644 --- a/include/linux/of.h +++ b/include/linux/of.h | |||
@@ -207,6 +207,11 @@ extern int of_property_read_u64(const struct device_node *np, | |||
207 | extern int of_property_read_string(struct device_node *np, | 207 | extern int of_property_read_string(struct device_node *np, |
208 | const char *propname, | 208 | const char *propname, |
209 | const char **out_string); | 209 | const char **out_string); |
210 | extern int of_property_read_string_index(struct device_node *np, | ||
211 | const char *propname, | ||
212 | int index, const char **output); | ||
213 | extern int of_property_count_strings(struct device_node *np, | ||
214 | const char *propname); | ||
210 | extern int of_device_is_compatible(const struct device_node *device, | 215 | extern int of_device_is_compatible(const struct device_node *device, |
211 | const char *); | 216 | const char *); |
212 | extern int of_device_is_available(const struct device_node *device); | 217 | extern int of_device_is_available(const struct device_node *device); |
@@ -283,6 +288,19 @@ static inline int of_property_read_string(struct device_node *np, | |||
283 | return -ENOSYS; | 288 | return -ENOSYS; |
284 | } | 289 | } |
285 | 290 | ||
291 | static inline int of_property_read_string_index(struct device_node *np, | ||
292 | const char *propname, int index, | ||
293 | const char **out_string) | ||
294 | { | ||
295 | return -ENOSYS; | ||
296 | } | ||
297 | |||
298 | static inline int of_property_count_strings(struct device_node *np, | ||
299 | const char *propname) | ||
300 | { | ||
301 | return -ENOSYS; | ||
302 | } | ||
303 | |||
286 | static inline const void *of_get_property(const struct device_node *node, | 304 | static inline const void *of_get_property(const struct device_node *node, |
287 | const char *name, | 305 | const char *name, |
288 | int *lenp) | 306 | int *lenp) |