aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/gyro/adis16136.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/gyro/adis16136.c')
-rw-r--r--drivers/iio/gyro/adis16136.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/iio/gyro/adis16136.c b/drivers/iio/gyro/adis16136.c
index 05486dfd721b..8cb0bcbfd609 100644
--- a/drivers/iio/gyro/adis16136.c
+++ b/drivers/iio/gyro/adis16136.c
@@ -22,7 +22,6 @@
22#include <linux/iio/buffer.h> 22#include <linux/iio/buffer.h>
23#include <linux/iio/imu/adis.h> 23#include <linux/iio/imu/adis.h>
24 24
25#include <linux/iio/iio.h>
26#include <linux/debugfs.h> 25#include <linux/debugfs.h>
27 26
28#define ADIS16136_REG_FLASH_CNT 0x00 27#define ADIS16136_REG_FLASH_CNT 0x00
@@ -203,10 +202,10 @@ static ssize_t adis16136_write_frequency(struct device *dev,
203{ 202{
204 struct iio_dev *indio_dev = dev_to_iio_dev(dev); 203 struct iio_dev *indio_dev = dev_to_iio_dev(dev);
205 struct adis16136 *adis16136 = iio_priv(indio_dev); 204 struct adis16136 *adis16136 = iio_priv(indio_dev);
206 long val; 205 unsigned int val;
207 int ret; 206 int ret;
208 207
209 ret = kstrtol(buf, 10, &val); 208 ret = kstrtouint(buf, 10, &val);
210 if (ret) 209 if (ret)
211 return ret; 210 return ret;
212 211