]> err.no Git - linux-2.6/commitdiff
class_device_create(): make fmt argument 'const char *'
authorDmitry Torokhov <dtor@insightbb.com>
Thu, 10 Aug 2006 05:18:18 +0000 (01:18 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 26 Sep 2006 04:08:36 +0000 (21:08 -0700)
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/class.c
include/linux/device.h

index 46336f1b93b61f8dcd76f6e6af7359a3e5775225..75057aaab809776d7c800969d179470a106ac473 100644 (file)
@@ -679,7 +679,8 @@ int class_device_register(struct class_device *class_dev)
 struct class_device *class_device_create(struct class *cls,
                                         struct class_device *parent,
                                         dev_t devt,
-                                        struct device *device, char *fmt, ...)
+                                        struct device *device,
+                                        const char *fmt, ...)
 {
        va_list args;
        struct class_device *class_dev = NULL;
index 1e5f30da98bc528b9ab9aaf629a673cb50e6f8ae..1fec2854652546a55a837a556e547a9f79a823b2 100644 (file)
@@ -277,7 +277,7 @@ extern struct class_device *class_device_create(struct class *cls,
                                                struct class_device *parent,
                                                dev_t devt,
                                                struct device *device,
-                                               char *fmt, ...)
+                                               const char *fmt, ...)
                                        __attribute__((format(printf,5,6)));
 extern void class_device_destroy(struct class *cls, dev_t devt);