aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/iio/gyro/adis16136.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/gyro/adis16136.c b/drivers/iio/gyro/adis16136.c
index 05486dfd721b..b4ee3393b772 100644
--- a/drivers/iio/gyro/adis16136.c
+++ b/drivers/iio/gyro/adis16136.c
@@ -203,10 +203,10 @@ static ssize_t adis16136_write_frequency(struct device *dev,
203{ 203{
204 struct iio_dev *indio_dev = dev_to_iio_dev(dev); 204 struct iio_dev *indio_dev = dev_to_iio_dev(dev);
205 struct adis16136 *adis16136 = iio_priv(indio_dev); 205 struct adis16136 *adis16136 = iio_priv(indio_dev);
206 long val; 206 unsigned int val;
207 int ret; 207 int ret;
208 208
209 ret = kstrtol(buf, 10, &val); 209 ret = kstrtouint(buf, 10, &val);
210 if (ret) 210 if (ret)
211 return ret; 211 return ret;
212 212