From: Scott Wood Date: Fri, 16 Mar 2007 17:28:49 +0000 (-0500) Subject: [POWERPC] bootwrapper: Make setprop accept a const buffer. X-Git-Tag: v2.6.22-rc1~1109^2~164 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f61e7cd21b47b07002aa39d2f8f0db14b4a51719;p=linux-2.6 [POWERPC] bootwrapper: Make setprop accept a const buffer. Signed-off-by: Scott Wood Acked-by: David Gibson Signed-off-by: Paul Mackerras --- diff --git a/arch/powerpc/boot/ops.h b/arch/powerpc/boot/ops.h index dae0e3b23c..4d0cfd7339 100644 --- a/arch/powerpc/boot/ops.h +++ b/arch/powerpc/boot/ops.h @@ -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; }