aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-08-03 02:49:57 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-08-03 02:49:57 -0400
commita6b11f53388973d99c4a357c22b19753b424e73c (patch)
treef0c31698f4f3ba47e44d34f7f5077ddde6079850 /include/linux
parent73a9fe86fa21ccd528807b8cc871dc18be67ee5a (diff)
parentd945fa0da7db9ace61fbb2140cfdb1e2d2b24e7e (diff)
Merge branch 'devicetree/next' of git://git.secretlab.ca/git/linux-2.6
* 'devicetree/next' of git://git.secretlab.ca/git/linux-2.6: MAINTAINERS: Add keyword match for of_match_table to device tree section of: constify property name parameters for helper functions input: xilinx_ps2: Add missing of_address.h header of: address: use resource_size helper
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/of.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/include/linux/of.h b/include/linux/of.h
index bd716f8908de..0085bb01c041 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -196,12 +196,13 @@ extern struct property *of_find_property(const struct device_node *np,
196 const char *name, 196 const char *name,
197 int *lenp); 197 int *lenp);
198extern int of_property_read_u32_array(const struct device_node *np, 198extern int of_property_read_u32_array(const struct device_node *np,
199 char *propname, 199 const char *propname,
200 u32 *out_values, 200 u32 *out_values,
201 size_t sz); 201 size_t sz);
202 202
203extern int of_property_read_string(struct device_node *np, char *propname, 203extern int of_property_read_string(struct device_node *np,
204 const char **out_string); 204 const char *propname,
205 const char **out_string);
205extern int of_device_is_compatible(const struct device_node *device, 206extern int of_device_is_compatible(const struct device_node *device,
206 const char *); 207 const char *);
207extern int of_device_is_available(const struct device_node *device); 208extern int of_device_is_available(const struct device_node *device);
@@ -242,13 +243,15 @@ static inline bool of_have_populated_dt(void)
242} 243}
243 244
244static inline int of_property_read_u32_array(const struct device_node *np, 245static inline int of_property_read_u32_array(const struct device_node *np,
245 char *propname, u32 *out_values, size_t sz) 246 const char *propname,
247 u32 *out_values, size_t sz)
246{ 248{
247 return -ENOSYS; 249 return -ENOSYS;
248} 250}
249 251
250static inline int of_property_read_string(struct device_node *np, 252static inline int of_property_read_string(struct device_node *np,
251 char *propname, const char **out_string) 253 const char *propname,
254 const char **out_string)
252{ 255{
253 return -ENOSYS; 256 return -ENOSYS;
254} 257}
@@ -256,7 +259,7 @@ static inline int of_property_read_string(struct device_node *np,
256#endif /* CONFIG_OF */ 259#endif /* CONFIG_OF */
257 260
258static inline int of_property_read_u32(const struct device_node *np, 261static inline int of_property_read_u32(const struct device_node *np,
259 char *propname, 262 const char *propname,
260 u32 *out_value) 263 u32 *out_value)
261{ 264{
262 return of_property_read_u32_array(np, propname, out_value, 1); 265 return of_property_read_u32_array(np, propname, out_value, 1);