aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/industrialio-buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/industrialio-buffer.c')
-rw-r--r--drivers/iio/industrialio-buffer.c6
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,
371 const char *buf, 371 const char *buf,
372 size_t len) 372 size_t len)
373{ 373{
374 int ret;
375 ulong val;
376 struct iio_dev *indio_dev = dev_to_iio_dev(dev); 374 struct iio_dev *indio_dev = dev_to_iio_dev(dev);
377 struct iio_buffer *buffer = indio_dev->buffer; 375 struct iio_buffer *buffer = indio_dev->buffer;
376 unsigned int val;
377 int ret;
378 378
379 ret = strict_strtoul(buf, 10, &val); 379 ret = kstrtouint(buf, 10, &val);
380 if (ret) 380 if (ret)
381 return ret; 381 return ret;
382 382