aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/of.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2015-04-19 21:32:26 -0400
committerDave Airlie <airlied@redhat.com>2015-04-19 23:05:20 -0400
commit2c33ce009ca2389dbf0535d0672214d09738e35e (patch)
tree6186a6458c3c160385d794a23eaf07c786a9e61b /include/linux/of.h
parentcec32a47010647e8b0603726ebb75b990a4057a4 (diff)
parent09d51602cf84a1264946711dd4ea0dddbac599a1 (diff)
Merge Linus master into drm-next
The merge is clean, but the arm build fails afterwards, due to API changes in the regulator tree. I've included the patch into the merge to fix the build. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/linux/of.h')
-rw-r--r--include/linux/of.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/include/linux/of.h b/include/linux/of.h
index dfde07e77a63..5f124f685e07 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -332,6 +332,7 @@ extern int of_count_phandle_with_args(const struct device_node *np,
332 332
333extern void of_alias_scan(void * (*dt_alloc)(u64 size, u64 align)); 333extern void of_alias_scan(void * (*dt_alloc)(u64 size, u64 align));
334extern int of_alias_get_id(struct device_node *np, const char *stem); 334extern int of_alias_get_id(struct device_node *np, const char *stem);
335extern int of_alias_get_highest_id(const char *stem);
335 336
336extern int of_machine_is_compatible(const char *compat); 337extern int of_machine_is_compatible(const char *compat);
337 338
@@ -594,6 +595,11 @@ static inline int of_alias_get_id(struct device_node *np, const char *stem)
594 return -ENOSYS; 595 return -ENOSYS;
595} 596}
596 597
598static inline int of_alias_get_highest_id(const char *stem)
599{
600 return -ENOSYS;
601}
602
597static inline int of_machine_is_compatible(const char *compat) 603static inline int of_machine_is_compatible(const char *compat)
598{ 604{
599 return 0; 605 return 0;
@@ -616,6 +622,38 @@ static inline const char *of_prop_next_string(struct property *prop,
616 return NULL; 622 return NULL;
617} 623}
618 624
625static inline int of_node_check_flag(struct device_node *n, unsigned long flag)
626{
627 return 0;
628}
629
630static inline int of_node_test_and_set_flag(struct device_node *n,
631 unsigned long flag)
632{
633 return 0;
634}
635
636static inline void of_node_set_flag(struct device_node *n, unsigned long flag)
637{
638}
639
640static inline void of_node_clear_flag(struct device_node *n, unsigned long flag)
641{
642}
643
644static inline int of_property_check_flag(struct property *p, unsigned long flag)
645{
646 return 0;
647}
648
649static inline void of_property_set_flag(struct property *p, unsigned long flag)
650{
651}
652
653static inline void of_property_clear_flag(struct property *p, unsigned long flag)
654{
655}
656
619#define of_match_ptr(_ptr) NULL 657#define of_match_ptr(_ptr) NULL
620#define of_match_node(_matches, _node) NULL 658#define of_match_node(_matches, _node) NULL
621#endif /* CONFIG_OF */ 659#endif /* CONFIG_OF */