diff options
author | Dmitry Torokhov | 2005-04-26 09:32:00 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2005-06-21 00:15:00 +0200 |
commit | f3b4f3c6dec04c6c8261fe22645f07b39976595a (patch) | |
tree | 9c4ad15f5d5fc7d3a8006396b185bb615386a61c /lib/kobject.c | |
parent | [PATCH] sysfs_{create|remove}_link should take const char * (diff) | |
download | kernel-qcow2-linux-f3b4f3c6dec04c6c8261fe22645f07b39976595a.tar.gz kernel-qcow2-linux-f3b4f3c6dec04c6c8261fe22645f07b39976595a.tar.xz kernel-qcow2-linux-f3b4f3c6dec04c6c8261fe22645f07b39976595a.zip |
[PATCH] Make kobject's name be const char *
kobject: make kobject's name const char * since users should not
attempt to change it (except by calling kobject_rename).
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'lib/kobject.c')
-rw-r--r-- | lib/kobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/kobject.c b/lib/kobject.c index 94048826624c..dd0917dd9fa9 100644 --- a/lib/kobject.c +++ b/lib/kobject.c @@ -279,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; |