aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/prom
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-12-05 19:54:44 -0500
committerDavid S. Miller <davem@davemloft.net>2008-12-05 19:54:44 -0500
commitab04323e5b8c50d6e8f7f4a3e4118ba5fcba61a1 (patch)
treecf0243e321ca5d827be48bc888803e7bdfe133c4 /arch/sparc/prom
parent657f201df693c26d294f6c789b8a87cd8c16eb53 (diff)
sparc: Const'ify prom_*prop*() on sparc32.
This brings things in line with sparc64. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/prom')
-rw-r--r--arch/sparc/prom/tree_32.c6
1 files changed, 3 insertions, 3 deletions
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 */
88int prom_getproplen(int node, char *prop) 88int 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 */
107int prom_getproperty(int node, char *prop, char *buffer, int bufsize) 107int 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 */
306int prom_setprop(int node, char *pname, char *value, int size) 306int 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;