public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Minor change to platform_device_register_simple prototype
@ 2005-12-05 20:23 Jean Delvare
  2005-12-05 20:27 ` Russell King
  0 siblings, 1 reply; 30+ messages in thread
From: Jean Delvare @ 2005-12-05 20:23 UTC (permalink / raw)
  To: LKML; +Cc: Greg KH

Hi all,

Propose patch for platform driver core. Greg, can you add it to your
driver queue?

Thanks.

Content-Disposition: inline; filename=driver-platform-device-name-as-const-char.patch

The name parameter of platform_device_register_simple should be of
type const char * instead of char *, as we simply pass it to
platform_device_alloc, where it has type const char *.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
---
 drivers/base/platform.c         |    2 +-
 include/linux/platform_device.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

--- linux-2.6.15-rc2.orig/drivers/base/platform.c	2005-11-13 21:02:31.000000000 +0100
+++ linux-2.6.15-rc2/drivers/base/platform.c	2005-12-05 20:44:43.000000000 +0100
@@ -327,7 +327,7 @@
  *	to be unloaded iwithout waiting for the last reference to the device
  *	to be dropped.
  */
-struct platform_device *platform_device_register_simple(char *name, unsigned int id,
+struct platform_device *platform_device_register_simple(const char *name, unsigned int id,
 							struct resource *res, unsigned int num)
 {
 	struct platform_device *pdev;
--- linux-2.6.15-rc2.orig/include/linux/platform_device.h	2005-11-13 21:02:59.000000000 +0100
+++ linux-2.6.15-rc2/include/linux/platform_device.h	2005-12-05 20:44:30.000000000 +0100
@@ -35,7 +35,7 @@
 extern int platform_get_irq_byname(struct platform_device *, char *);
 extern int platform_add_devices(struct platform_device **, int);
 
-extern struct platform_device *platform_device_register_simple(char *, unsigned int, struct resource *, unsigned int);
+extern struct platform_device *platform_device_register_simple(const char *, unsigned int, struct resource *, unsigned int);
 
 extern struct platform_device *platform_device_alloc(const char *name, unsigned int id);
 extern int platform_device_add_resources(struct platform_device *pdev, struct resource *res, unsigned int num);


-- 
Jean Delvare

^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2005-12-12  2:08 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-05 20:23 [PATCH] Minor change to platform_device_register_simple prototype Jean Delvare
2005-12-05 20:27 ` Russell King
2005-12-07  6:05   ` Dmitry Torokhov
2005-12-07 17:04     ` Greg KH
2005-12-08 21:21       ` Dmitry Torokhov
2005-12-08 21:37         ` Jean Delvare
2005-12-08 21:49           ` Dmitry Torokhov
2005-12-08 23:26           ` Russell King
2005-12-07 17:59     ` Dmitry Torokhov
2005-12-07 18:08       ` Russell King
2005-12-07 18:23         ` Dmitry Torokhov
2005-12-07 19:03           ` Russell King
2005-12-07 22:18             ` Dmitry Torokhov
2005-12-07 22:51               ` Greg KH
2005-12-07 22:59                 ` Dmitry Torokhov
2005-12-07 23:06                   ` Greg KH
2005-12-07 23:21                     ` Russell King
2005-12-08 20:58                       ` Jean Delvare
2005-12-08 21:06                         ` Dmitry Torokhov
2005-12-08 23:17                         ` Russell King
2005-12-08 20:52                   ` Jean Delvare
2005-12-08 23:22                     ` Russell King
2005-12-10 15:49                       ` Jean Delvare
2005-12-11 19:44                     ` Jean Delvare
2005-12-12  2:08                       ` Dmitry Torokhov
2005-12-07 18:11       ` Dmitry Torokhov
2005-12-07 18:39         ` Randy.Dunlap
2005-12-07 19:05           ` Russell King
2005-12-07  6:50   ` Jean Delvare
2005-12-07  9:24     ` Russell King

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