class_device_create(): make fmt argument 'const char *'
PATCH 1/1 class_device_create(): make fmt argument 'const char *'
Signed-off-by Dmitry Torokhov <[email protected]>
---
drivers/base/class.c | 3 ++- include/linux/device.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-)
drivers/base/class.c +2 -1
@@ -679,7 +679,8 @@ int class_device_register(struct class_dstruct 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 ;
include/linux/device.h +1 -1
@@ -277,7 +277,7 @@ extern struct class_device *class_devicestruct 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);