[PATCH] staging: line6: replace strict_strto* with kstrto*

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[staging] line6: replace strict_strtoul/strict_strtol with kstrtoul/kstrtol

 * replace deprecated string conversions with kstrtol/kstrtoul

Signed-off-by: Daniel Walter <sahne@xxxxxxx>;

---
 drivers/staging/line6/toneport.c |    4 ++--
 drivers/staging/line6/variax.c   |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/drivers/staging/line6/toneport.c b/drivers/staging/line6/toneport.c
index 31b624b..0828480 100644
--- a/drivers/staging/line6/toneport.c
+++ b/drivers/staging/line6/toneport.c
@@ -129,7 +129,7 @@ static ssize_t toneport_set_led_red(struct device *dev,
 	int retval;
 	long value;
 
-	retval = strict_strtol(buf, 10, &value);
+	retval = kstrtol(buf, 10, &value);
 	if (retval)
 		return retval;
 
@@ -145,7 +145,7 @@ static ssize_t toneport_set_led_green(struct device *dev,
 	int retval;
 	long value;
 
-	retval = strict_strtol(buf, 10, &value);
+	retval = kstrtol(buf, 10, &value);
 	if (retval)
 		return retval;
 
diff --git a/drivers/staging/line6/variax.c b/drivers/staging/line6/variax.c
index bb99ee4..91a1bbb 100644
--- a/drivers/staging/line6/variax.c
+++ b/drivers/staging/line6/variax.c
@@ -356,7 +356,7 @@ static ssize_t variax_set_model(struct device *dev,
 	unsigned long value;
 	int ret;
 
-	ret = strict_strtoul(buf, 10, &value);
+	ret = kstrtoul(buf, 10, &value);
 	if (ret)
 		return ret;
 
@@ -390,7 +390,7 @@ static ssize_t variax_set_active(struct device *dev,
 	unsigned long value;
 	int ret;
 
-	ret = strict_strtoul(buf, 10, &value);
+	ret = kstrtoul(buf, 10, &value);
 	if (ret)
 		return ret;
 
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux