diff options
author | Miguel Ojeda Sandonis <maxextreme@gmail.com> | 2006-09-13 09:34:05 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-09-26 00:08:36 -0400 |
commit | ab7d7371acc68fa9130b079a9ba879191202035f (patch) | |
tree | 9ebd5fbcdb8f1ddffc022f573acc0690c11a8c83 /include/linux/device.h | |
parent | 5cbe5f8a5897470698222ac9924429056e57d84c (diff) |
Driver core: add const to class_create
Adds const to class_create second parameter, because:
struct class {
const char * name;
/*...*/
}
Signed-off-by: Miguel Ojeda Sandonis <maxextreme@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/device.h')
-rw-r--r-- | include/linux/device.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index 8d92013f9ce1..8a648cd94fa9 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
@@ -271,7 +271,7 @@ struct class_interface { | |||
271 | extern int class_interface_register(struct class_interface *); | 271 | extern int class_interface_register(struct class_interface *); |
272 | extern void class_interface_unregister(struct class_interface *); | 272 | extern void class_interface_unregister(struct class_interface *); |
273 | 273 | ||
274 | extern struct class *class_create(struct module *owner, char *name); | 274 | extern struct class *class_create(struct module *owner, const char *name); |
275 | extern void class_destroy(struct class *cls); | 275 | extern void class_destroy(struct class *cls); |
276 | extern struct class_device *class_device_create(struct class *cls, | 276 | extern struct class_device *class_device_create(struct class *cls, |
277 | struct class_device *parent, | 277 | struct class_device *parent, |