linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] class_device_rename can take const char *
@ 2003-08-15 18:16 Stephen Hemminger
  0 siblings, 0 replies; only message in thread
From: Stephen Hemminger @ 2003-08-15 18:16 UTC (permalink / raw)
  To: Patrick Mochel, Greg KH; +Cc: linux-kernel

Trivial change: rename can take a constant string.
diff -Nru a/drivers/base/class.c b/drivers/base/class.c
--- a/drivers/base/class.c	Fri Aug 15 11:11:36 2003
+++ b/drivers/base/class.c	Fri Aug 15 11:11:36 2003
@@ -341,7 +341,7 @@
 	class_device_put(class_dev);
 }
 
-int class_device_rename(struct class_device *class_dev, char *new_name)
+int class_device_rename(struct class_device *class_dev, const char *new_name)
 {
 	class_dev = class_device_get(class_dev);
 	if (!class_dev)
diff -Nru a/include/linux/device.h b/include/linux/device.h
--- a/include/linux/device.h	Fri Aug 15 11:11:36 2003
+++ b/include/linux/device.h	Fri Aug 15 11:11:36 2003
@@ -210,7 +210,7 @@
 extern int class_device_add(struct class_device *);
 extern void class_device_del(struct class_device *);
 
-extern int class_device_rename(struct class_device *, char *);
+extern int class_device_rename(struct class_device *, const char *);
 
 extern struct class_device * class_device_get(struct class_device *);
 extern void class_device_put(struct class_device *);

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

only message in thread, other threads:[~2003-08-15 18:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-15 18:16 [PATCH] class_device_rename can take const char * Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).