diff options
Diffstat (limited to 'drivers/usb/gadget/function/storage_common.c')
| -rw-r--r-- | drivers/usb/gadget/function/storage_common.c | 9 | 
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/usb/gadget/function/storage_common.c b/drivers/usb/gadget/function/storage_common.c index 208c6a92780a..2a4163b0f6fe 100644 --- a/drivers/usb/gadget/function/storage_common.c +++ b/drivers/usb/gadget/function/storage_common.c @@ -23,6 +23,7 @@  #include <linux/blkdev.h>  #include <linux/file.h>  #include <linux/fs.h> +#include <linux/kstrtox.h>  #include <linux/usb/composite.h>  #include "storage_common.h" @@ -396,7 +397,7 @@ ssize_t fsg_store_ro(struct fsg_lun *curlun, struct rw_semaphore *filesem,  	ssize_t		rc;  	bool		ro; -	rc = strtobool(buf, &ro); +	rc = kstrtobool(buf, &ro);  	if (rc)  		return rc; @@ -419,7 +420,7 @@ ssize_t fsg_store_nofua(struct fsg_lun *curlun, const char *buf, size_t count)  	bool		nofua;  	int		ret; -	ret = strtobool(buf, &nofua); +	ret = kstrtobool(buf, &nofua);  	if (ret)  		return ret; @@ -470,7 +471,7 @@ ssize_t fsg_store_cdrom(struct fsg_lun *curlun, struct rw_semaphore *filesem,  	bool		cdrom;  	int		ret; -	ret = strtobool(buf, &cdrom); +	ret = kstrtobool(buf, &cdrom);  	if (ret)  		return ret; @@ -493,7 +494,7 @@ ssize_t fsg_store_removable(struct fsg_lun *curlun, const char *buf,  	bool		removable;  	int		ret; -	ret = strtobool(buf, &removable); +	ret = kstrtobool(buf, &removable);  	if (ret)  		return ret;  | 
