aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/of.h
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2011-11-03 23:32:20 -0400
committerGrant Likely <grant.likely@secretlab.ca>2011-11-03 23:32:20 -0400
commit3983138c017b6aeab6ce3dbb1e9afbe80bdac496 (patch)
tree9fdcddfdb8ada91504c90e2551ba6a565ade7325 /include/linux/of.h
parented5f886d16369fed5a69d96b8e85777c47206de1 (diff)
parent02aac316abf436a7529d46a71f7083f9f9ef4b49 (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.h18
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,
207extern int of_property_read_string(struct device_node *np, 207extern 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);
210extern int of_property_read_string_index(struct device_node *np,
211 const char *propname,
212 int index, const char **output);
213extern int of_property_count_strings(struct device_node *np,
214 const char *propname);
210extern int of_device_is_compatible(const struct device_node *device, 215extern int of_device_is_compatible(const struct device_node *device,
211 const char *); 216 const char *);
212extern int of_device_is_available(const struct device_node *device); 217extern 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
291static 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
298static inline int of_property_count_strings(struct device_node *np,
299 const char *propname)
300{
301 return -ENOSYS;
302}
303
286static inline const void *of_get_property(const struct device_node *node, 304static 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)