]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging:iio:ad7793: Use kstrtol instead of strict_strtol
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 21 Nov 2012 16:27:00 +0000 (16:27 +0000)
committerJonathan Cameron <jic23@kernel.org>
Fri, 30 Nov 2012 12:57:07 +0000 (12:57 +0000)
strict_strtol is deprecated in favor of kstrtol.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/adc/ad7793.c

index 55d302dc504c0123115a518ec5fa393cdc4e2794..843550ddc2eac168217aeae69737731ddb9719fe 100644 (file)
@@ -204,7 +204,7 @@ static ssize_t ad7793_write_frequency(struct device *dev,
        }
        mutex_unlock(&indio_dev->mlock);
 
-       ret = strict_strtol(buf, 10, &lval);
+       ret = kstrtol(buf, 10, &lval);
        if (ret)
                return ret;