Commit a4b05d12 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

misc/ep93xx_pwm: use kstrtol instead of strict_strtol

strict_strtol is deprecated in favor of kstrtol.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
Reviewed-by: default avatarRyan Mallon <rmallon@gmail.com>
Cc: Matthieu Crapet <mcrapet@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6e1cf66e
......@@ -92,7 +92,7 @@ static ssize_t ep93xx_pwm_set_freq(struct device *dev,
long val;
int err;
err = strict_strtol(buf, 10, &val);
err = kstrtol(buf, 10, &val);
if (err)
return -EINVAL;
......@@ -145,7 +145,7 @@ static ssize_t ep93xx_pwm_set_duty_percent(struct device *dev,
long val;
int err;
err = strict_strtol(buf, 10, &val);
err = kstrtol(buf, 10, &val);
if (err)
return -EINVAL;
......@@ -179,7 +179,7 @@ static ssize_t ep93xx_pwm_set_invert(struct device *dev,
long val;
int err;
err = strict_strtol(buf, 10, &val);
err = kstrtol(buf, 10, &val);
if (err)
return -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment