]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[SPARC/64]: constify of_get_property return
authorStephen Rothwell <sfr@canb.auug.org.au>
Thu, 29 Mar 2007 07:53:28 +0000 (00:53 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 26 Apr 2007 08:54:35 +0000 (01:54 -0700)
Finally, we actually change the functions themselves.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/prom.c
arch/sparc64/kernel/prom.c
include/asm-sparc/prom.h
include/asm-sparc64/prom.h

index 8359d00a248989ba52df405b2ee0aa59762ee6d5..d2a8297d56faaa10c4d6908d87c8357aef222704 100644 (file)
@@ -170,7 +170,7 @@ EXPORT_SYMBOL(of_find_property);
  * Find a property with a given name for a given node
  * and return the value.
  */
-void *of_get_property(struct device_node *np, const char *name, int *lenp)
+const void *of_get_property(struct device_node *np, const char *name, int *lenp)
 {
        struct property *pp = of_find_property(np,name,lenp);
        return pp ? pp->value : NULL;
index 25b70368973cc0b2cd338bee41b73eb8b6b0cfca..493db961a1f655aa19a5891e27077818c39caf45 100644 (file)
@@ -174,7 +174,7 @@ EXPORT_SYMBOL(of_find_property);
  * Find a property with a given name for a given node
  * and return the value.
  */
-void *of_get_property(struct device_node *np, const char *name, int *lenp)
+const void *of_get_property(struct device_node *np, const char *name, int *lenp)
 {
        struct property *pp = of_find_property(np,name,lenp);
        return pp ? pp->value : NULL;
index 274868d8598db47bce0284afecb0a1dcc4d1e763..30d53ed4f5cd05c6fd83247fa4269e0559ebd3f1 100644 (file)
@@ -89,7 +89,7 @@ extern struct property *of_find_property(struct device_node *np,
                                         const char *name,
                                         int *lenp);
 extern int of_device_is_compatible(struct device_node *device, const char *);
-extern void *of_get_property(struct device_node *node, const char *name,
+extern const void *of_get_property(struct device_node *node, const char *name,
                             int *lenp);
 #define get_property(node,name,lenp) of_get_property(node,name,lenp)
 extern int of_set_property(struct device_node *node, const char *name, void *val, int len);
index 0eca2d98627f15eba7e9f9e98ed55884be3ff97e..50b03387c97b0f7496b94d07dad50ce101c9710d 100644 (file)
@@ -97,8 +97,8 @@ extern struct property *of_find_property(struct device_node *np,
                                         const char *name,
                                         int *lenp);
 extern int of_device_is_compatible(struct device_node *device, const char *);
-extern void *of_get_property(struct device_node *node, const char *name,
-                            int *lenp);
+extern const void *of_get_property(struct device_node *node, const char *name,
+                                  int *lenp);
 #define get_property(node,name,lenp) of_get_property(node,name,lenp)
 extern int of_set_property(struct device_node *node, const char *name, void *val, int len);
 extern int of_getintprop_default(struct device_node *np,