Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=357418e7cac16fed4ca558c6037d189d2109c9c2
Commit:     357418e7cac16fed4ca558c6037d189d2109c9c2
Parent:     64b94701c0714f814e640ff351d5f784fdc0381e
Author:     Stephen Rothwell <[EMAIL PROTECTED]>
AuthorDate: Thu Mar 29 00:54:04 2007 -0700
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Thu Apr 26 01:54:37 2007 -0700

    [SPARC]: constify some paramaters of OF routines
    
    This starts bringing the PowerPC and Sparc implemetations back closer
    together.
    
    Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 arch/sparc/kernel/prom.c |    9 ++++++---
 include/asm-sparc/prom.h |   10 ++++++----
 2 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/arch/sparc/kernel/prom.c b/arch/sparc/kernel/prom.c
index d2a8297..9ddf603 100644
--- a/arch/sparc/kernel/prom.c
+++ b/arch/sparc/kernel/prom.c
@@ -32,7 +32,8 @@ static struct device_node *allnodes;
  */
 static DEFINE_RWLOCK(devtree_lock);
 
-int of_device_is_compatible(struct device_node *device, const char *compat)
+int of_device_is_compatible(const struct device_node *device,
+                           const char *compat)
 {
        const char* cp;
        int cplen, l;
@@ -150,7 +151,8 @@ struct device_node *of_find_compatible_node(struct 
device_node *from,
 }
 EXPORT_SYMBOL(of_find_compatible_node);
 
-struct property *of_find_property(struct device_node *np, const char *name,
+struct property *of_find_property(const struct device_node *np,
+                                 const char *name,
                                  int *lenp)
 {
        struct property *pp;
@@ -170,7 +172,8 @@ EXPORT_SYMBOL(of_find_property);
  * Find a property with a given name for a given node
  * and return the value.
  */
-const void *of_get_property(struct device_node *np, const char *name, int 
*lenp)
+const void *of_get_property(const struct device_node *np, const char *name,
+                           int *lenp)
 {
        struct property *pp = of_find_property(np,name,lenp);
        return pp ? pp->value : NULL;
diff --git a/include/asm-sparc/prom.h b/include/asm-sparc/prom.h
index 30d53ed..39ad222 100644
--- a/include/asm-sparc/prom.h
+++ b/include/asm-sparc/prom.h
@@ -85,12 +85,14 @@ extern struct device_node *of_find_node_by_phandle(phandle 
handle);
 extern struct device_node *of_get_parent(const struct device_node *node);
 extern struct device_node *of_get_next_child(const struct device_node *node,
                                             struct device_node *prev);
-extern struct property *of_find_property(struct device_node *np,
+extern struct property *of_find_property(const struct device_node *np,
                                         const char *name,
                                         int *lenp);
-extern int of_device_is_compatible(struct device_node *device, const char *);
-extern const void *of_get_property(struct device_node *node, const char *name,
-                            int *lenp);
+extern int of_device_is_compatible(const struct device_node *device,
+                                  const char *);
+extern const void *of_get_property(const 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,
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to