diff options
author | Aida Mynzhasova <ai.c.c0der@gmail.com> | 2013-05-07 00:04:41 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-05-14 00:45:46 +0400 |
commit | f86f83622fe2c45d75f83a7db8d170da55b5b476 (patch) | |
tree | fceee55a242046654c4b6412f87802ff200df2df /drivers/staging/iio/adc/ad7192.c | |
parent | 0c474826cfdd24226c63b8d012a51cb7d9c85a67 (diff) | |
download | linux-f86f83622fe2c45d75f83a7db8d170da55b5b476.tar.xz |
staging:iio:adc: Use kstrtol()/kstrtoul()
Replace deprecated strict_strtol()/strict_strtoul() with
kstrtol()/kstrtoul(). Add missing checks for conversion return codes.
Signed-off-by: Aida Mynzhasova <ai.c.c0der@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/iio/adc/ad7192.c')
-rw-r--r-- | drivers/staging/iio/adc/ad7192.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/adc/ad7192.c b/drivers/staging/iio/adc/ad7192.c index 504701940585..3283e2829536 100644 --- a/drivers/staging/iio/adc/ad7192.c +++ b/drivers/staging/iio/adc/ad7192.c @@ -326,7 +326,7 @@ static ssize_t ad7192_write_frequency(struct device *dev, unsigned long lval; int div, ret; - ret = strict_strtoul(buf, 10, &lval); + ret = kstrtoul(buf, 10, &lval); if (ret) return ret; if (lval == 0) |