summaryrefslogtreecommitdiffstats
path: root/arch/sparc/prom
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-12-05 16:54:44 -0800
committerDavid S. Miller <davem@davemloft.net>2008-12-05 16:54:44 -0800
commitab04323e5b8c50d6e8f7f4a3e4118ba5fcba61a1 (patch)
treecf0243e321ca5d827be48bc888803e7bdfe133c4 /arch/sparc/prom
parent657f201df693c26d294f6c789b8a87cd8c16eb53 (diff)
downloadtalos-op-linux-ab04323e5b8c50d6e8f7f4a3e4118ba5fcba61a1.tar.gz
talos-op-linux-ab04323e5b8c50d6e8f7f4a3e4118ba5fcba61a1.zip
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)
/* Return the length in bytes of property 'prop' at node 'node'.
* Return -1 on error.
*/
-int prom_getproplen(int node, char *prop)
+int prom_getproplen(int node, const char *prop)
{
int ret;
unsigned long flags;
@@ -104,7 +104,7 @@ int prom_getproplen(int node, char *prop)
* 'buffer' which has a size of 'bufsize'. If the acquisition
* was successful the length will be returned, else -1 is returned.
*/
-int prom_getproperty(int node, char *prop, char *buffer, int bufsize)
+int prom_getproperty(int node, const char *prop, char *buffer, int bufsize)
{
int plen, ret;
unsigned long flags;
@@ -303,7 +303,7 @@ int prom_node_has_property(int node, char *prop)
/* Set property 'pname' at node 'node' to value 'value' which has a length
* of 'size' bytes. Return the number of bytes the prom accepted.
*/
-int prom_setprop(int node, char *pname, char *value, int size)
+int prom_setprop(int node, const char *pname, char *value, int size)
{
unsigned long flags;
int ret;
OpenPOWER on IntegriCloud