diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2012-10-18 14:47:00 +0100 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2012-10-19 18:46:50 +0100 |
commit | 948ad20504894436c008c8a50f74e277edeff9a1 (patch) | |
tree | 3c9625afdb855cb6ee6fe1538da4e615fe3041f2 /drivers/iio/industrialio-buffer.c | |
parent | 45259859492812c8b700ae1d157be01a8d2babfe (diff) | |
download | linux-948ad20504894436c008c8a50f74e277edeff9a1.tar.gz linux-948ad20504894436c008c8a50f74e277edeff9a1.tar.bz2 linux-948ad20504894436c008c8a50f74e277edeff9a1.zip |
iio: Use strict_strtouint instead of kstrtoul
strict_strto* has been deprecated in favor of kstrto*. Use strict_strtouint
respective strict_strtoint, since that is what the functions we pass the
converted values to expect.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/industrialio-buffer.c')
-rw-r--r-- | drivers/iio/industrialio-buffer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/iio/industrialio-buffer.c b/drivers/iio/industrialio-buffer.c index d4ad37455a67..722a83fd8d85 100644 --- a/drivers/iio/industrialio-buffer.c +++ b/drivers/iio/industrialio-buffer.c @@ -371,12 +371,12 @@ ssize_t iio_buffer_write_length(struct device *dev, const char *buf, size_t len) { - int ret; - ulong val; struct iio_dev *indio_dev = dev_to_iio_dev(dev); struct iio_buffer *buffer = indio_dev->buffer; + unsigned int val; + int ret; - ret = strict_strtoul(buf, 10, &val); + ret = kstrtouint(buf, 10, &val); if (ret) return ret; |