diff options
author | Scott Wood <scottwood@freescale.com> | 2007-03-16 12:28:49 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-03-21 22:35:21 +1100 |
commit | f61e7cd21b47b07002aa39d2f8f0db14b4a51719 (patch) | |
tree | 6e7544d7f93c5ffb2ab1bbdb3fedac7ac85c3fcd /arch/powerpc | |
parent | e0a2f28b4dee2a1e4c62dc8389f25defb284e387 (diff) |
[POWERPC] bootwrapper: Make setprop accept a const buffer.
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>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/boot/ops.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/boot/ops.h b/arch/powerpc/boot/ops.h index dae0e3b23cf..4d0cfd73398 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; } |