diff options
author | Dmitry Torokhov <dtor_core@ameritech.net> | 2005-04-26 03:32:54 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-06-20 18:15:01 -0400 |
commit | 419cab3fc69588ebe35b845cc3a584ae172463de (patch) | |
tree | 7886076bcc4970005cbd39c886eb414bb61242a4 /drivers | |
parent | f3b4f3c6dec04c6c8261fe22645f07b39976595a (diff) |
[PATCH] kset_hotplug_ops->name shoudl return const char *
kobject: change name() method in kset_hotplug_ops return const char *
since users shoudl not try to modify returned data.
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/base/class.c | 2 | ||||
-rw-r--r-- | drivers/base/core.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/base/class.c b/drivers/base/class.c index d2a2f8f2b4ed..ff33ebbf1dc7 100644 --- a/drivers/base/class.c +++ b/drivers/base/class.c | |||
@@ -262,7 +262,7 @@ static int class_hotplug_filter(struct kset *kset, struct kobject *kobj) | |||
262 | return 0; | 262 | return 0; |
263 | } | 263 | } |
264 | 264 | ||
265 | static char *class_hotplug_name(struct kset *kset, struct kobject *kobj) | 265 | static const char *class_hotplug_name(struct kset *kset, struct kobject *kobj) |
266 | { | 266 | { |
267 | struct class_device *class_dev = to_class_dev(kobj); | 267 | struct class_device *class_dev = to_class_dev(kobj); |
268 | 268 | ||
diff --git a/drivers/base/core.c b/drivers/base/core.c index fbc223486f81..32f3f09a42e0 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c | |||
@@ -102,7 +102,7 @@ static int dev_hotplug_filter(struct kset *kset, struct kobject *kobj) | |||
102 | return 0; | 102 | return 0; |
103 | } | 103 | } |
104 | 104 | ||
105 | static char *dev_hotplug_name(struct kset *kset, struct kobject *kobj) | 105 | static const char *dev_hotplug_name(struct kset *kset, struct kobject *kobj) |
106 | { | 106 | { |
107 | struct device *dev = to_dev(kobj); | 107 | struct device *dev = to_dev(kobj); |
108 | 108 | ||