diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2011-07-04 05:01:18 +0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2011-07-04 09:47:22 +0400 |
commit | f09bc831b7693f93ecb95dea7180d55b45b88e76 (patch) | |
tree | d47c3408c86b147c77dd33e5295c7892ae8a9f7f /drivers/of | |
parent | a3b853633d78c3930b513ee219df48637ac82eed (diff) | |
download | linux-f09bc831b7693f93ecb95dea7180d55b45b88e76.tar.xz |
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 'drivers/of')
-rw-r--r-- | drivers/of/base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/base.c b/drivers/of/base.c index b8b65fddbeb5..57ec27bed44f 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -639,7 +639,7 @@ EXPORT_SYMBOL_GPL(of_property_read_u32); * The out_string pointer is modified only if a valid string can be decoded. */ int of_property_read_string(struct device_node *np, char *propname, - char **out_string) + const char **out_string) { struct property *prop = of_find_property(np, propname, NULL); if (!prop) |