summaryrefslogtreecommitdiff
path: root/lib/kobject.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dtor_core@ameritech.net>2005-04-26 02:32:00 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2005-06-20 15:15:00 -0700
commitf3b4f3c6dec04c6c8261fe22645f07b39976595a (patch)
tree9c4ad15f5d5fc7d3a8006396b185bb615386a61c /lib/kobject.c
parente3a15db2415579d5136b9ba9b52fe27c66da8780 (diff)
downloadlinux-stable-f3b4f3c6dec04c6c8261fe22645f07b39976595a.tar.gz
linux-stable-f3b4f3c6dec04c6c8261fe22645f07b39976595a.tar.bz2
linux-stable-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.c2
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;