diff options
-rw-r--r-- | arch/sparc/include/asm/openprom_32.h | 6 | ||||
-rw-r--r-- | arch/sparc/include/asm/oplib_32.h | 6 | ||||
-rw-r--r-- | arch/sparc/prom/tree_32.c | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/arch/sparc/include/asm/openprom_32.h b/arch/sparc/include/asm/openprom_32.h index 8b1649f29ed9..875da3552d80 100644 --- a/arch/sparc/include/asm/openprom_32.h +++ b/arch/sparc/include/asm/openprom_32.h | |||
@@ -170,9 +170,9 @@ struct linux_romvec { | |||
170 | struct linux_nodeops { | 170 | struct linux_nodeops { |
171 | int (*no_nextnode)(int node); | 171 | int (*no_nextnode)(int node); |
172 | int (*no_child)(int node); | 172 | int (*no_child)(int node); |
173 | int (*no_proplen)(int node, char *name); | 173 | int (*no_proplen)(int node, const char *name); |
174 | int (*no_getprop)(int node, char *name, char *val); | 174 | int (*no_getprop)(int node, const char *name, char *val); |
175 | int (*no_setprop)(int node, char *name, char *val, int len); | 175 | int (*no_setprop)(int node, const char *name, char *val, int len); |
176 | char * (*no_nextprop)(int node, char *name); | 176 | char * (*no_nextprop)(int node, char *name); |
177 | }; | 177 | }; |
178 | 178 | ||
diff --git a/arch/sparc/include/asm/oplib_32.h b/arch/sparc/include/asm/oplib_32.h index 699da05235c8..3bdf56f46883 100644 --- a/arch/sparc/include/asm/oplib_32.h +++ b/arch/sparc/include/asm/oplib_32.h | |||
@@ -199,12 +199,12 @@ extern int prom_getsibling(int node); | |||
199 | /* Get the length, at the passed node, of the given property type. | 199 | /* Get the length, at the passed node, of the given property type. |
200 | * Returns -1 on error (ie. no such property at this node). | 200 | * Returns -1 on error (ie. no such property at this node). |
201 | */ | 201 | */ |
202 | extern int prom_getproplen(int thisnode, char *property); | 202 | extern int prom_getproplen(int thisnode, const char *property); |
203 | 203 | ||
204 | /* Fetch the requested property using the given buffer. Returns | 204 | /* Fetch the requested property using the given buffer. Returns |
205 | * the number of bytes the prom put into your buffer or -1 on error. | 205 | * the number of bytes the prom put into your buffer or -1 on error. |
206 | */ | 206 | */ |
207 | extern int __must_check prom_getproperty(int thisnode, char *property, | 207 | extern int __must_check prom_getproperty(int thisnode, const char *property, |
208 | char *prop_buffer, int propbuf_size); | 208 | char *prop_buffer, int propbuf_size); |
209 | 209 | ||
210 | /* Acquire an integer property. */ | 210 | /* Acquire an integer property. */ |
@@ -246,7 +246,7 @@ extern int prom_node_has_property(int node, char *property); | |||
246 | /* Set the indicated property at the given node with the passed value. | 246 | /* Set the indicated property at the given node with the passed value. |
247 | * Returns the number of bytes of your value that the prom took. | 247 | * Returns the number of bytes of your value that the prom took. |
248 | */ | 248 | */ |
249 | extern int prom_setprop(int node, char *prop_name, char *prop_value, | 249 | extern int prom_setprop(int node, const char *prop_name, char *prop_value, |
250 | int value_size); | 250 | int value_size); |
251 | 251 | ||
252 | extern int prom_pathtoinode(char *path); | 252 | extern int prom_pathtoinode(char *path); |
diff --git a/arch/sparc/prom/tree_32.c b/arch/sparc/prom/tree_32.c index f228fe057b24..6d8187357331 100644 --- a/arch/sparc/prom/tree_32.c +++ b/arch/sparc/prom/tree_32.c | |||
@@ -85,7 +85,7 @@ int prom_getsibling(int node) | |||
85 | /* Return the length in bytes of property 'prop' at node 'node'. | 85 | /* Return the length in bytes of property 'prop' at node 'node'. |
86 | * Return -1 on error. | 86 | * Return -1 on error. |
87 | */ | 87 | */ |
88 | int prom_getproplen(int node, char *prop) | 88 | int prom_getproplen(int node, const char *prop) |
89 | { | 89 | { |
90 | int ret; | 90 | int ret; |
91 | unsigned long flags; | 91 | unsigned long flags; |
@@ -104,7 +104,7 @@ int prom_getproplen(int node, char *prop) | |||
104 | * 'buffer' which has a size of 'bufsize'. If the acquisition | 104 | * 'buffer' which has a size of 'bufsize'. If the acquisition |
105 | * was successful the length will be returned, else -1 is returned. | 105 | * was successful the length will be returned, else -1 is returned. |
106 | */ | 106 | */ |
107 | int prom_getproperty(int node, char *prop, char *buffer, int bufsize) | 107 | int prom_getproperty(int node, const char *prop, char *buffer, int bufsize) |
108 | { | 108 | { |
109 | int plen, ret; | 109 | int plen, ret; |
110 | unsigned long flags; | 110 | unsigned long flags; |
@@ -303,7 +303,7 @@ int prom_node_has_property(int node, char *prop) | |||
303 | /* Set property 'pname' at node 'node' to value 'value' which has a length | 303 | /* Set property 'pname' at node 'node' to value 'value' which has a length |
304 | * of 'size' bytes. Return the number of bytes the prom accepted. | 304 | * of 'size' bytes. Return the number of bytes the prom accepted. |
305 | */ | 305 | */ |
306 | int prom_setprop(int node, char *pname, char *value, int size) | 306 | int prom_setprop(int node, const char *pname, char *value, int size) |
307 | { | 307 | { |
308 | unsigned long flags; | 308 | unsigned long flags; |
309 | int ret; | 309 | int ret; |