diff options
author | Jamie Iles <jamie@jamieiles.com> | 2011-08-02 10:45:07 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2011-08-02 11:50:47 -0400 |
commit | aac285c6cb9622f1cc05ed162604bf5ad2da9a8d (patch) | |
tree | 1cfcff20a178ad2c439484f74b0ffd77bd7feedf /drivers/of/base.c | |
parent | 5f9288af065537be1fe6d1d5bd54ba51d6df721a (diff) |
of: constify property name parameters for helper functions
The helper functions for reading u32 integers, u32 arrays and strings
should have the property name as a const pointer.
Cc: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Jamie Iles <jamie@jamieiles.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/of/base.c')
-rw-r--r-- | drivers/of/base.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/of/base.c b/drivers/of/base.c index 02ed36719def..3ff22e32b602 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c | |||
@@ -610,8 +610,9 @@ EXPORT_SYMBOL(of_find_node_by_phandle); | |||
610 | * | 610 | * |
611 | * The out_value is modified only if a valid u32 value can be decoded. | 611 | * The out_value is modified only if a valid u32 value can be decoded. |
612 | */ | 612 | */ |
613 | int of_property_read_u32_array(const struct device_node *np, char *propname, | 613 | int of_property_read_u32_array(const struct device_node *np, |
614 | u32 *out_values, size_t sz) | 614 | const char *propname, u32 *out_values, |
615 | size_t sz) | ||
615 | { | 616 | { |
616 | struct property *prop = of_find_property(np, propname, NULL); | 617 | struct property *prop = of_find_property(np, propname, NULL); |
617 | const __be32 *val; | 618 | const __be32 *val; |
@@ -645,7 +646,7 @@ EXPORT_SYMBOL_GPL(of_property_read_u32_array); | |||
645 | * | 646 | * |
646 | * The out_string pointer is modified only if a valid string can be decoded. | 647 | * The out_string pointer is modified only if a valid string can be decoded. |
647 | */ | 648 | */ |
648 | int of_property_read_string(struct device_node *np, char *propname, | 649 | int of_property_read_string(struct device_node *np, const char *propname, |
649 | const char **out_string) | 650 | const char **out_string) |
650 | { | 651 | { |
651 | struct property *prop = of_find_property(np, propname, NULL); | 652 | struct property *prop = of_find_property(np, propname, NULL); |