diff options
author | Arnd Bergmann <arnd@arndb.de> | 2011-10-31 09:07:51 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2011-10-31 09:07:51 -0400 |
commit | 86c1e5a74af11e4817ffa6d7748d9ac1353b5b53 (patch) | |
tree | 377327a40452c4282787f49456122bf1753a0255 /include | |
parent | 6a8d2e2b504ce3d12cfa3934f545c9415441a5c3 (diff) | |
parent | 3ae3e253db7385238dd9d6c67c085afa3e770a56 (diff) |
Merge branch 'omap/dt' into next/dt
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 9180dc5cb00b..5dfe2d5a8b5d 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, | |||
203 | extern int of_property_read_string(struct device_node *np, | 203 | extern int of_property_read_string(struct device_node *np, |
204 | const char *propname, | 204 | const char *propname, |
205 | const char **out_string); | 205 | const char **out_string); |
206 | extern int of_property_read_string_index(struct device_node *np, | ||
207 | const char *propname, | ||
208 | int index, const char **output); | ||
209 | extern int of_property_count_strings(struct device_node *np, | ||
210 | const char *propname); | ||
206 | extern int of_device_is_compatible(const struct device_node *device, | 211 | extern int of_device_is_compatible(const struct device_node *device, |
207 | const char *); | 212 | const char *); |
208 | extern int of_device_is_available(const struct device_node *device); | 213 | 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, | |||
256 | return -ENOSYS; | 261 | return -ENOSYS; |
257 | } | 262 | } |
258 | 263 | ||
264 | static inline int of_property_read_string_index(struct device_node *np, | ||
265 | const char *propname, int index, | ||
266 | const char **out_string) | ||
267 | { | ||
268 | return -ENOSYS; | ||
269 | } | ||
270 | |||
271 | static inline int of_property_count_strings(struct device_node *np, | ||
272 | const char *propname) | ||
273 | { | ||
274 | return -ENOSYS; | ||
275 | } | ||
276 | |||
259 | static inline const void *of_get_property(const struct device_node *node, | 277 | static inline const void *of_get_property(const struct device_node *node, |
260 | const char *name, | 278 | const char *name, |
261 | int *lenp) | 279 | int *lenp) |