Commit ab7d7371 authored by Miguel Ojeda Sandonis's avatar Miguel Ojeda Sandonis Committed by Greg Kroah-Hartman

Driver core: add const to class_create

Adds const to class_create second parameter, because:

struct class {
	const char * name;

	/*...*/
}
Signed-off-by: default avatarMiguel Ojeda Sandonis <maxextreme@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 5cbe5f8a
...@@ -197,7 +197,7 @@ static int class_device_create_uevent(struct class_device *class_dev, ...@@ -197,7 +197,7 @@ static int class_device_create_uevent(struct class_device *class_dev,
* Note, the pointer created here is to be destroyed when finished by * Note, the pointer created here is to be destroyed when finished by
* making a call to class_destroy(). * making a call to class_destroy().
*/ */
struct class *class_create(struct module *owner, char *name) struct class *class_create(struct module *owner, const char *name)
{ {
struct class *cls; struct class *cls;
int retval; int retval;
......
...@@ -271,7 +271,7 @@ struct class_interface { ...@@ -271,7 +271,7 @@ struct class_interface {
extern int class_interface_register(struct class_interface *); extern int class_interface_register(struct class_interface *);
extern void class_interface_unregister(struct class_interface *); extern void class_interface_unregister(struct class_interface *);
extern struct class *class_create(struct module *owner, char *name); extern struct class *class_create(struct module *owner, const char *name);
extern void class_destroy(struct class *cls); extern void class_destroy(struct class *cls);
extern struct class_device *class_device_create(struct class *cls, extern struct class_device *class_device_create(struct class *cls,
struct class_device *parent, struct class_device *parent,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment