[POWERPC] bootwrapper: Make setprop accept a const buffer.
authorScott Wood <scottwood@freescale.com>
Fri, 16 Mar 2007 17:28:49 +0000 (12:28 -0500)
committerPaul Mackerras <paulus@samba.org>
Wed, 21 Mar 2007 11:35:21 +0000 (22:35 +1100)
Signed-off-by: Scott Wood <scottwood@freescale.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/boot/ops.h

index dae0e3b23cf5de313baa9bd274bad212ffc917be..4d0cfd73398544471fef6ba1c34dedf685b91f18 100644 (file)
@@ -91,7 +91,8 @@ static inline int getprop(void *devp, const char *name, void *buf, int buflen)
        return (dt_ops.getprop) ? dt_ops.getprop(devp, name, buf, buflen) : -1;
 }
 
-static inline int setprop(void *devp, const char *name, void *buf, int buflen)
+static inline int setprop(void *devp, const char *name,
+                          const void *buf, int buflen)
 {
        return (dt_ops.setprop) ? dt_ops.setprop(devp, name, buf, buflen) : -1;
 }