Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8c4606b1 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

kobject: fix the documentation of how kobject_set_name works



Thanks to Dave Young <hidave.darkstar@gmail.com> for pointing out that I
forgot to update the comment when I rewrote kobject_set_name.

Cc: Dave Young <hidave.darkstar@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent da8cadb3
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -234,13 +234,13 @@ int kobject_register(struct kobject * kobj)


/**
 *	kobject_set_name - Set the name of an object
 *	@kobj:	object.
 * kobject_set_name - Set the name of a kobject
 * @kobj: kobject to 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.
 * This sets the name of the kobject.  If you have already added the
 * kobject to the system, you must call kobject_rename() in order to
 * change the name of the kobject.
 */
int kobject_set_name(struct kobject * kobj, const char * fmt, ...)
{