aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/of.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/of.h')
-rw-r--r--include/linux/of.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/of.h b/include/linux/of.h
index 1fd08ca23106..3a45c4f593ad 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -266,6 +266,7 @@ extern int of_device_is_available(const struct device_node *device);
266extern const void *of_get_property(const struct device_node *node, 266extern const void *of_get_property(const struct device_node *node,
267 const char *name, 267 const char *name,
268 int *lenp); 268 int *lenp);
269extern struct device_node *of_get_cpu_node(int cpu, unsigned int *thread);
269#define for_each_property_of_node(dn, pp) \ 270#define for_each_property_of_node(dn, pp) \
270 for (pp = dn->properties; pp != NULL; pp = pp->next) 271 for (pp = dn->properties; pp != NULL; pp = pp->next)
271 272
@@ -343,6 +344,8 @@ const char *of_prop_next_string(struct property *prop, const char *cur);
343 s; \ 344 s; \
344 s = of_prop_next_string(prop, s)) 345 s = of_prop_next_string(prop, s))
345 346
347int of_device_is_stdout_path(struct device_node *dn);
348
346#else /* CONFIG_OF */ 349#else /* CONFIG_OF */
347 350
348static inline const char* of_node_full_name(struct device_node *np) 351static inline const char* of_node_full_name(struct device_node *np)
@@ -459,6 +462,12 @@ static inline const void *of_get_property(const struct device_node *node,
459 return NULL; 462 return NULL;
460} 463}
461 464
465static inline struct device_node *of_get_cpu_node(int cpu,
466 unsigned int *thread)
467{
468 return NULL;
469}
470
462static inline int of_property_read_u64(const struct device_node *np, 471static inline int of_property_read_u64(const struct device_node *np,
463 const char *propname, u64 *out_value) 472 const char *propname, u64 *out_value)
464{ 473{
@@ -505,6 +514,11 @@ static inline int of_machine_is_compatible(const char *compat)
505 return 0; 514 return 0;
506} 515}
507 516
517static inline int of_device_is_stdout_path(struct device_node *dn)
518{
519 return 0;
520}
521
508#define of_match_ptr(_ptr) NULL 522#define of_match_ptr(_ptr) NULL
509#define of_match_node(_matches, _node) NULL 523#define of_match_node(_matches, _node) NULL
510#define of_property_for_each_u32(np, propname, prop, p, u) \ 524#define of_property_for_each_u32(np, propname, prop, p, u) \