X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=lib%2Fkobject.c;h=dd0917dd9fa9df9274b24e6acbe3abddaa3b17ed;hb=acdd80d514a08800380c9f92b1bf4d4c9e818125;hp=5df8441c44e7d5decdabbfe1f83d8da5d82289fa;hpb=9f6c6fc505560465be0964eb4da1b6ca97bd3951;p=powerpc.git diff --git a/lib/kobject.c b/lib/kobject.c index 5df8441c44..dd0917dd9f 100644 --- a/lib/kobject.c +++ b/lib/kobject.c @@ -216,13 +216,12 @@ int kobject_register(struct kobject * kobj) /** * kobject_set_name - Set the name of an object * @kobj: object. - * @name: name. + * @fmt: format string used to build the name * * If strlen(name) >= KOBJ_NAME_LEN, then use a dynamically allocated * string that @kobj->k_name points to. Otherwise, use the static * @kobj->name array. */ - int kobject_set_name(struct kobject * kobj, const char * fmt, ...) { int error = 0; @@ -280,7 +279,7 @@ EXPORT_SYMBOL(kobject_set_name); * @new_name: object's new name */ -int kobject_rename(struct kobject * kobj, char *new_name) +int kobject_rename(struct kobject * kobj, const char *new_name) { int error = 0;