aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/of.h
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@linaro.org>2011-07-03 21:01:18 -0400
committerGrant Likely <grant.likely@secretlab.ca>2011-07-04 01:47:22 -0400
commitf09bc831b7693f93ecb95dea7180d55b45b88e76 (patch)
treed47c3408c86b147c77dd33e5295c7892ae8a9f7f /include/linux/of.h
parenta3b853633d78c3930b513ee219df48637ac82eed (diff)
dt: add 'const' for of_property_read_string parameter **out_string
The existing dt codes usually call of_get_property to get a string property and save it as a 'const char *'. The patch adds'const' for of_property_read_string parameter **out_string to make the converting of existing code a little easier. Signed-off-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'include/linux/of.h')
-rw-r--r--include/linux/of.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/of.h b/include/linux/of.h
index 4fc4c1b8d5d5..b23852002b30 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -198,7 +198,7 @@ extern struct property *of_find_property(const struct device_node *np,
198extern int of_property_read_u32(struct device_node *np, char *propname, 198extern int of_property_read_u32(struct device_node *np, char *propname,
199 u32 *out_value); 199 u32 *out_value);
200extern int of_property_read_string(struct device_node *np, char *propname, 200extern int of_property_read_string(struct device_node *np, char *propname,
201 char **out_string); 201 const char **out_string);
202extern int of_device_is_compatible(const struct device_node *device, 202extern int of_device_is_compatible(const struct device_node *device,
203 const char *); 203 const char *);
204extern int of_device_is_available(const struct device_node *device); 204extern int of_device_is_available(const struct device_node *device);