aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/adc/at91-sama5d2_adc.c
diff options
context:
space:
mode:
authorLudovic Desroches <ludovic.desroches@atmel.com>2016-01-18 09:41:55 +0100
committerJonathan Cameron <jic23@kernel.org>2016-01-23 16:15:29 +0000
commitd7bdcc3f57eef075122906e3f38abe2a06868750 (patch)
tree1666995cb0660c8bdbd62464adc0e45dcbfa8386 /drivers/iio/adc/at91-sama5d2_adc.c
parentiio: adc: mcp320x: support more differential voltage measurement (diff)
downloadlinux-dev-d7bdcc3f57eef075122906e3f38abe2a06868750.tar.xz
linux-dev-d7bdcc3f57eef075122906e3f38abe2a06868750.zip
iio:adc:at91-sama5d2: fix vref_uv type
vref_uv has to be an int. Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com> Reported-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/adc/at91-sama5d2_adc.c')
-rw-r--r--drivers/iio/adc/at91-sama5d2_adc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/adc/at91-sama5d2_adc.c b/drivers/iio/adc/at91-sama5d2_adc.c
index ecb2d90c9c06..f2d8bd5deac9 100644
--- a/drivers/iio/adc/at91-sama5d2_adc.c
+++ b/drivers/iio/adc/at91-sama5d2_adc.c
@@ -171,7 +171,7 @@ struct at91_adc_state {
struct clk *per_clk;
struct regulator *reg;
struct regulator *vref;
- u32 vref_uv;
+ int vref_uv;
const struct iio_chan_spec *chan;
bool conversion_done;
u32 conversion_value;