浏览代码

[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>
Scott Wood 18 年之前
父节点
当前提交
f61e7cd21b
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      arch/powerpc/boot/ops.h

+ 2 - 1
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;
 }