aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2013-05-24 19:28:44 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-05-30 08:54:07 -0400
commita4b05d1262c1f79ff07e9baceccbf3398846b8c0 (patch)
tree1252826b928362eeddff21654f74ab8aee2fe366
parent6e1cf66ee3105b41ec93a3848e848ae682add3ff (diff)
misc/ep93xx_pwm: use kstrtol instead of strict_strtol
strict_strtol is deprecated in favor of kstrtol. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Ryan Mallon <rmallon@gmail.com> Cc: Matthieu Crapet <mcrapet@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/misc/ep93xx_pwm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/misc/ep93xx_pwm.c b/drivers/misc/ep93xx_pwm.c
index b5ad0c6a5af1..cdb67a9c1959 100644
--- a/drivers/misc/ep93xx_pwm.c
+++ b/drivers/misc/ep93xx_pwm.c
@@ -92,7 +92,7 @@ static ssize_t ep93xx_pwm_set_freq(struct device *dev,
92 long val; 92 long val;
93 int err; 93 int err;
94 94
95 err = strict_strtol(buf, 10, &val); 95 err = kstrtol(buf, 10, &val);
96 if (err) 96 if (err)
97 return -EINVAL; 97 return -EINVAL;
98 98
@@ -145,7 +145,7 @@ static ssize_t ep93xx_pwm_set_duty_percent(struct device *dev,
145 long val; 145 long val;
146 int err; 146 int err;
147 147
148 err = strict_strtol(buf, 10, &val); 148 err = kstrtol(buf, 10, &val);
149 if (err) 149 if (err)
150 return -EINVAL; 150 return -EINVAL;
151 151
@@ -179,7 +179,7 @@ static ssize_t ep93xx_pwm_set_invert(struct device *dev,
179 long val; 179 long val;
180 int err; 180 int err;
181 181
182 err = strict_strtol(buf, 10, &val); 182 err = kstrtol(buf, 10, &val);
183 if (err) 183 if (err)
184 return -EINVAL; 184 return -EINVAL;
185 185