public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] class_device_create(): make fmt argument 'const char *'
@ 2006-08-10  5:18 Dmitry Torokhov
  0 siblings, 0 replies; only message in thread
From: Dmitry Torokhov @ 2006-08-10  5:18 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-kernel


Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
---

 drivers/base/class.c   |    3 ++-
 include/linux/device.h |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

Index: work/drivers/base/class.c
===================================================================
--- work.orig/drivers/base/class.c
+++ work/drivers/base/class.c
@@ -679,7 +679,8 @@ int class_device_register(struct class_d
 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: work/include/linux/device.h
===================================================================
--- work.orig/include/linux/device.h
+++ work/include/linux/device.h
@@ -277,7 +277,7 @@ extern struct class_device *class_device
 						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);
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-08-10  5:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-10  5:18 [PATCH] class_device_create(): make fmt argument 'const char *' Dmitry Torokhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox