From: Greg Kroah-Hartman Date: Tue, 4 Dec 2007 06:45:47 +0000 (+0800) Subject: kobject: fix the documentation of how kobject_set_name works X-Git-Tag: v2.6.24-rc6~59^2~6 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=8c4606b1a4f6eb09344294b7f11641f36cd402af;p=linux-2.6-omap-h63xx.git kobject: fix the documentation of how kobject_set_name works Thanks to Dave Young for pointing out that I forgot to update the comment when I rewrote kobject_set_name. Cc: Dave Young Signed-off-by: Greg Kroah-Hartman --- diff --git a/lib/kobject.c b/lib/kobject.c index b52e9f4ef37..3590f022a60 100644 --- a/lib/kobject.c +++ b/lib/kobject.c @@ -234,13 +234,13 @@ int kobject_register(struct kobject * kobj) /** - * kobject_set_name - Set the name of an object - * @kobj: object. - * @fmt: format string used to build the name + * 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, ...) {