summaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorAlexandru Ardelean <alexandru.ardelean@analog.com>2019-11-01 10:35:02 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2019-11-03 11:38:40 +0100
commit52c4c732b2a6fea469790438cb08ed2de2405c3e (patch)
tree2dbd05e59f624ffc8031eebd615fd288bd5e8a1c /drivers/iio
parentiio: imu: adis16480: fix indentation of return statement (diff)
downloadlinux-52c4c732b2a6fea469790438cb08ed2de2405c3e.tar.xz
linux-52c4c732b2a6fea469790438cb08ed2de2405c3e.zip
iio: imu: adis16480: prefer `unsigned int` over `unsigned`
This is a typical checkpatch warning. The change just renames the type of the `freq` var to `unsigned int`. Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/imu/adis16480.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/imu/adis16480.c b/drivers/iio/imu/adis16480.c
index d199d3d3c4bd..b9e2695bcfad 100644
--- a/drivers/iio/imu/adis16480.c
+++ b/drivers/iio/imu/adis16480.c
@@ -350,7 +350,7 @@ static int adis16480_get_freq(struct iio_dev *indio_dev, int *val, int *val2)
struct adis16480 *st = iio_priv(indio_dev);
uint16_t t;
int ret;
- unsigned freq;
+ unsigned int freq;
unsigned int reg;
if (st->clk_mode == ADIS16480_CLK_PPS)