diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2009-10-15 12:57:58 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2009-10-15 12:57:58 -0400 |
commit | 50436312f47f1fd2bf82c983638fe27ca7e03238 (patch) | |
tree | 744c7c52e266d4c0c8f5feb88f109e5e77dd191e /include/linux/of.h | |
parent | d45d94f672e3c79b0db1e6d76e1638ee521d56c0 (diff) |
of: merge of_node_*_flag() and set_node_proc_entry()
Merge common code between PowerPC and Microblaze
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: David S. Miller <davem@davemloft.net>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Acked-by: Michal Simek <monstr@monstr.eu>
Acked-by: Stephen Neuendorffer <stephen.neuendorffer@xilinx.com>
Acked-by: Stephen Rothwell <sfr@canb.auug.org.au>
Diffstat (limited to 'include/linux/of.h')
-rw-r--r-- | include/linux/of.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/of.h b/include/linux/of.h index a66c1eb31693..d5f666290f6b 100644 --- a/include/linux/of.h +++ b/include/linux/of.h | |||
@@ -63,6 +63,22 @@ struct device_node { | |||
63 | #endif | 63 | #endif |
64 | }; | 64 | }; |
65 | 65 | ||
66 | static inline int of_node_check_flag(struct device_node *n, unsigned long flag) | ||
67 | { | ||
68 | return test_bit(flag, &n->_flags); | ||
69 | } | ||
70 | |||
71 | static inline void of_node_set_flag(struct device_node *n, unsigned long flag) | ||
72 | { | ||
73 | set_bit(flag, &n->_flags); | ||
74 | } | ||
75 | |||
76 | static inline void | ||
77 | set_node_proc_entry(struct device_node *dn, struct proc_dir_entry *de) | ||
78 | { | ||
79 | dn->pde = de; | ||
80 | } | ||
81 | |||
66 | #include <asm/prom.h> | 82 | #include <asm/prom.h> |
67 | 83 | ||
68 | /* flag descriptions */ | 84 | /* flag descriptions */ |