strict kobj signatures: some ofw_setprop fixes

propname parameter is const

Reviewed by:	imp, current@
Approved by:	jhb (mentor)
This commit is contained in:
Andriy Gapon 2009-06-11 17:15:20 +00:00
parent 8e45f0b7c6
commit 4fc23012c6
2 changed files with 8 additions and 8 deletions

View File

@ -83,8 +83,8 @@ static ssize_t ofw_std_getprop(ofw_t ofw, phandle_t package,
const char *propname, void *buf, size_t buflen);
static int ofw_std_nextprop(ofw_t ofw, phandle_t package, const char *previous,
char *buf, size_t);
static int ofw_std_setprop(ofw_t ofw, phandle_t package, char *propname,
void *buf, size_t len);
static int ofw_std_setprop(ofw_t ofw, phandle_t package, const char *propname,
const void *buf, size_t len);
static ssize_t ofw_std_canon(ofw_t ofw, const char *device, char *buf,
size_t len);
static phandle_t ofw_std_finddevice(ofw_t ofw, const char *device);
@ -383,8 +383,8 @@ ofw_std_nextprop(ofw_t ofw, phandle_t package, const char *previous, char *buf,
/* Set the value of a property of a package. */
/* XXX Has a bug on FirePower */
static int
ofw_std_setprop(ofw_t ofw, phandle_t package, char *propname, void *buf,
size_t len)
ofw_std_setprop(ofw_t ofw, phandle_t package, const char *propname,
const void *buf, size_t len)
{
static struct {
cell_t name;

View File

@ -88,8 +88,8 @@ static ssize_t ofw_real_getprop(ofw_t, phandle_t package, const char *propname,
void *buf, size_t buflen);
static int ofw_real_nextprop(ofw_t, phandle_t package, const char *previous,
char *buf, size_t);
static int ofw_real_setprop(ofw_t, phandle_t package, char *propname,
void *buf, size_t len);
static int ofw_real_setprop(ofw_t, phandle_t package, const char *propname,
const void *buf, size_t len);
static ssize_t ofw_real_canon(ofw_t, const char *device, char *buf, size_t len);
static phandle_t ofw_real_finddevice(ofw_t, const char *device);
static ssize_t ofw_real_instance_to_path(ofw_t, ihandle_t instance, char *buf,
@ -490,8 +490,8 @@ ofw_real_nextprop(ofw_t ofw, phandle_t package, const char *previous,
/* Set the value of a property of a package. */
/* XXX Has a bug on FirePower */
static int
ofw_real_setprop(ofw_t ofw, phandle_t package, char *propname, void *buf,
size_t len)
ofw_real_setprop(ofw_t ofw, phandle_t package, const char *propname,
const void *buf, size_t len)
{
static struct {
cell_t name;