diff options
| author | Dmitry Torokhov <dtor@insightbb.com> | 2006-08-10 01:18:18 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-09-26 00:08:36 -0400 |
| commit | ddd5d35a8f7c1924049e8b6877b3177c1787e6a3 (patch) | |
| tree | 5989803d2ee88b3be71844cec1882359f9454824 | |
| parent | d81d9d6b9f7d0af7d4341951d48d296681878f7a (diff) | |
class_device_create(): make fmt argument 'const char *'
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| -rw-r--r-- | drivers/base/class.c | 3 | ||||
| -rw-r--r-- | include/linux/device.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/drivers/base/class.c b/drivers/base/class.c index 46336f1b93..75057aaab8 100644 --- a/drivers/base/class.c +++ b/drivers/base/class.c | |||
| @@ -679,7 +679,8 @@ int class_device_register(struct class_device *class_dev) | |||
| 679 | struct class_device *class_device_create(struct class *cls, | 679 | struct class_device *class_device_create(struct class *cls, |
| 680 | struct class_device *parent, | 680 | struct class_device *parent, |
| 681 | dev_t devt, | 681 | dev_t devt, |
| 682 | struct device *device, char *fmt, ...) | 682 | struct device *device, |
| 683 | const char *fmt, ...) | ||
| 683 | { | 684 | { |
| 684 | va_list args; | 685 | va_list args; |
| 685 | struct class_device *class_dev = NULL; | 686 | struct class_device *class_dev = NULL; |
diff --git a/include/linux/device.h b/include/linux/device.h index 1e5f30da98..1fec285465 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
| @@ -277,7 +277,7 @@ extern struct class_device *class_device_create(struct class *cls, | |||
| 277 | struct class_device *parent, | 277 | struct class_device *parent, |
| 278 | dev_t devt, | 278 | dev_t devt, |
| 279 | struct device *device, | 279 | struct device *device, |
| 280 | char *fmt, ...) | 280 | const char *fmt, ...) |
| 281 | __attribute__((format(printf,5,6))); | 281 | __attribute__((format(printf,5,6))); |
| 282 | extern void class_device_destroy(struct class *cls, dev_t devt); | 282 | extern void class_device_destroy(struct class *cls, dev_t devt); |
| 283 | 283 | ||
