summaryrefslogtreecommitdiffstats
path: root/include/asm-sparc
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2007-03-29 00:54:04 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 01:54:37 -0700
commit357418e7cac16fed4ca558c6037d189d2109c9c2 (patch)
treedcf8c149254c3fab546b866ded5cc547e33b855c /include/asm-sparc
parent64b94701c0714f814e640ff351d5f784fdc0381e (diff)
downloadop-kernel-dev-357418e7cac16fed4ca558c6037d189d2109c9c2.zip
op-kernel-dev-357418e7cac16fed4ca558c6037d189d2109c9c2.tar.gz
[SPARC]: constify some paramaters of OF routines
This starts bringing the PowerPC and Sparc implemetations back closer together. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/asm-sparc')
-rw-r--r--include/asm-sparc/prom.h10
1 files changed, 6 insertions, 4 deletions
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,
OpenPOWER on IntegriCloud