Skip to content

Commit

Permalink
[POWERPC] bootwrapper: Make setprop accept a const buffer.
Browse files Browse the repository at this point in the history
Signed-off-by: Scott Wood <[email protected]>
Acked-by: David Gibson <[email protected]>
Signed-off-by: Paul Mackerras <[email protected]>
  • Loading branch information
Scott Wood authored and paulusmack committed Mar 21, 2007
1 parent e0a2f28 commit f61e7cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/powerpc/boot/ops.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit f61e7cd

Please sign in to comment.