[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>
Этот коммит содержится в:
Dmitry Torokhov
2005-04-26 02:32:54 -05:00
коммит произвёл Greg Kroah-Hartman
родитель f3b4f3c6de
Коммит 419cab3fc6
3 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@@ -262,7 +262,7 @@ static int class_hotplug_filter(struct kset *kset, struct kobject *kobj)
return 0;
}
static char *class_hotplug_name(struct kset *kset, struct kobject *kobj)
static const char *class_hotplug_name(struct kset *kset, struct kobject *kobj)
{
struct class_device *class_dev = to_class_dev(kobj);

Просмотреть файл

@@ -102,7 +102,7 @@ static int dev_hotplug_filter(struct kset *kset, struct kobject *kobj)
return 0;
}
static char *dev_hotplug_name(struct kset *kset, struct kobject *kobj)
static const char *dev_hotplug_name(struct kset *kset, struct kobject *kobj)
{
struct device *dev = to_dev(kobj);