mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
device_create(): make fmt argument 'const char *'
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
ddd5d35a8f
commit
5cbe5f8a58
2 changed files with 2 additions and 2 deletions
|
@ -583,7 +583,7 @@ static void device_create_release(struct device *dev)
|
||||||
* been created with a call to class_create().
|
* been created with a call to class_create().
|
||||||
*/
|
*/
|
||||||
struct device *device_create(struct class *class, struct device *parent,
|
struct device *device_create(struct class *class, struct device *parent,
|
||||||
dev_t devt, char *fmt, ...)
|
dev_t devt, const char *fmt, ...)
|
||||||
{
|
{
|
||||||
va_list args;
|
va_list args;
|
||||||
struct device *dev = NULL;
|
struct device *dev = NULL;
|
||||||
|
|
|
@ -384,7 +384,7 @@ extern void device_reprobe(struct device *dev);
|
||||||
* Easy functions for dynamically creating devices on the fly
|
* Easy functions for dynamically creating devices on the fly
|
||||||
*/
|
*/
|
||||||
extern struct device *device_create(struct class *cls, struct device *parent,
|
extern struct device *device_create(struct class *cls, struct device *parent,
|
||||||
dev_t devt, char *fmt, ...)
|
dev_t devt, const char *fmt, ...)
|
||||||
__attribute__((format(printf,4,5)));
|
__attribute__((format(printf,4,5)));
|
||||||
extern void device_destroy(struct class *cls, dev_t devt);
|
extern void device_destroy(struct class *cls, dev_t devt);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue