From d518f78c3d7a011cf81f4185c49563d400e47e55 Mon Sep 17 00:00:00 2001 From: Jamie Iles Date: Tue, 2 Aug 2011 15:45:07 +0100 Subject: [PATCH] --- yaml --- r: 262220 b: refs/heads/master c: aac285c6cb9622f1cc05ed162604bf5ad2da9a8d h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/of/base.c | 7 ++++--- trunk/include/linux/of.h | 15 +++++++++------ 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/[refs] b/[refs] index f26ee97c7d1b..bf3e500bec87 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 5f9288af065537be1fe6d1d5bd54ba51d6df721a +refs/heads/master: aac285c6cb9622f1cc05ed162604bf5ad2da9a8d diff --git a/trunk/drivers/of/base.c b/trunk/drivers/of/base.c index 02ed36719def..3ff22e32b602 100644 --- a/trunk/drivers/of/base.c +++ b/trunk/drivers/of/base.c @@ -610,8 +610,9 @@ EXPORT_SYMBOL(of_find_node_by_phandle); * * The out_value is modified only if a valid u32 value can be decoded. */ -int of_property_read_u32_array(const struct device_node *np, char *propname, - u32 *out_values, size_t sz) +int of_property_read_u32_array(const struct device_node *np, + const char *propname, u32 *out_values, + size_t sz) { struct property *prop = of_find_property(np, propname, NULL); const __be32 *val; @@ -645,7 +646,7 @@ EXPORT_SYMBOL_GPL(of_property_read_u32_array); * * 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, +int of_property_read_string(struct device_node *np, const char *propname, const char **out_string) { struct property *prop = of_find_property(np, propname, NULL); diff --git a/trunk/include/linux/of.h b/trunk/include/linux/of.h index bd716f8908de..0085bb01c041 100644 --- a/trunk/include/linux/of.h +++ b/trunk/include/linux/of.h @@ -196,12 +196,13 @@ extern struct property *of_find_property(const struct device_node *np, const char *name, int *lenp); extern int of_property_read_u32_array(const struct device_node *np, - char *propname, + const char *propname, u32 *out_values, size_t sz); -extern int of_property_read_string(struct device_node *np, char *propname, - const char **out_string); +extern int of_property_read_string(struct device_node *np, + const char *propname, + const char **out_string); extern int of_device_is_compatible(const struct device_node *device, const char *); extern int of_device_is_available(const struct device_node *device); @@ -242,13 +243,15 @@ static inline bool of_have_populated_dt(void) } static inline int of_property_read_u32_array(const struct device_node *np, - char *propname, u32 *out_values, size_t sz) + const char *propname, + u32 *out_values, size_t sz) { return -ENOSYS; } static inline int of_property_read_string(struct device_node *np, - char *propname, const char **out_string) + const char *propname, + const char **out_string) { return -ENOSYS; } @@ -256,7 +259,7 @@ static inline int of_property_read_string(struct device_node *np, #endif /* CONFIG_OF */ static inline int of_property_read_u32(const struct device_node *np, - char *propname, + const char *propname, u32 *out_value) { return of_property_read_u32_array(np, propname, out_value, 1);