aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/kobject.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/kobject.c b/lib/kobject.c
index b52e9f4ef371..3590f022a609 100644
--- a/lib/kobject.c
+++ b/lib/kobject.c
@@ -234,13 +234,13 @@ int kobject_register(struct kobject * kobj)
234 234
235 235
236/** 236/**
237 * kobject_set_name - Set the name of an object 237 * kobject_set_name - Set the name of a kobject
238 * @kobj: object. 238 * @kobj: kobject to name
239 * @fmt: format string used to build the name 239 * @fmt: format string used to build the name
240 * 240 *
241 * If strlen(name) >= KOBJ_NAME_LEN, then use a dynamically allocated 241 * This sets the name of the kobject. If you have already added the
242 * string that @kobj->k_name points to. Otherwise, use the static 242 * kobject to the system, you must call kobject_rename() in order to
243 * @kobj->name array. 243 * change the name of the kobject.
244 */ 244 */
245int kobject_set_name(struct kobject * kobj, const char * fmt, ...) 245int kobject_set_name(struct kobject * kobj, const char * fmt, ...)
246{ 246{