forked from Minki/linux
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>
This commit is contained in:
parent
d81d9d6b9f
commit
ddd5d35a8f
@ -679,7 +679,8 @@ int class_device_register(struct class_device *class_dev)
|
|||||||
struct class_device *class_device_create(struct class *cls,
|
struct class_device *class_device_create(struct class *cls,
|
||||||
struct class_device *parent,
|
struct class_device *parent,
|
||||||
dev_t devt,
|
dev_t devt,
|
||||||
struct device *device, char *fmt, ...)
|
struct device *device,
|
||||||
|
const char *fmt, ...)
|
||||||
{
|
{
|
||||||
va_list args;
|
va_list args;
|
||||||
struct class_device *class_dev = NULL;
|
struct class_device *class_dev = NULL;
|
||||||
|
@ -277,7 +277,7 @@ extern struct class_device *class_device_create(struct class *cls,
|
|||||||
struct class_device *parent,
|
struct class_device *parent,
|
||||||
dev_t devt,
|
dev_t devt,
|
||||||
struct device *device,
|
struct device *device,
|
||||||
char *fmt, ...)
|
const char *fmt, ...)
|
||||||
__attribute__((format(printf,5,6)));
|
__attribute__((format(printf,5,6)));
|
||||||
extern void class_device_destroy(struct class *cls, dev_t devt);
|
extern void class_device_destroy(struct class *cls, dev_t devt);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user