diff options
author | Arnd Bergmann <arnd@arndb.de> | 2011-10-31 00:22:54 +0100 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2011-10-31 00:22:54 +0100 |
commit | c6c3a3a03e6de52866bc81a32fc551733625d553 (patch) | |
tree | b55967a9163dba315e2543d648de758b82c85fa1 /include | |
parent | 07e87e15b969a05a7943d7ff1abc2d8da287171c (diff) | |
parent | 8aca3ab5865f8cfbde841b6daf9442cc2279ced3 (diff) |
Merge branch 'omap/cleanup' into next/cleanup2
Diffstat (limited to 'include')
-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 9180dc5cb00..5dfe2d5a8b5 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -203,6 +203,11 @@ extern int of_property_read_u32_array(const struct device_node *np, extern int of_property_read_string(struct device_node *np, const char *propname, const char **out_string); +extern int of_property_read_string_index(struct device_node *np, + const char *propname, + int index, const char **output); +extern int of_property_count_strings(struct device_node *np, + const char *propname); extern int of_device_is_compatible(const struct device_node *device, const char *); extern int of_device_is_available(const struct device_node *device); @@ -256,6 +261,19 @@ static inline int of_property_read_string(struct device_node *np, return -ENOSYS; } +static inline int of_property_read_string_index(struct device_node *np, + const char *propname, int index, + const char **out_string) +{ + return -ENOSYS; +} + +static inline int of_property_count_strings(struct device_node *np, + const char *propname) +{ + return -ENOSYS; +} + static inline const void *of_get_property(const struct device_node *node, const char *name, int *lenp) |