[PATCH] staging: line6: replace strict_strto* with kstrto*
Daniel Walter
sahne at 0x90.at
Wed Sep 26 19:59:34 UTC 2012
[staging] line6: replace strict_strtoul/strict_strtol with kstrtoul/kstrtol
* replace deprecated string conversions with kstrtol/kstrtoul
Signed-off-by: Daniel Walter <sahne at 0x90.at>;
---
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;
More information about the devel
mailing list