iio:adc:at91-sama5d2: fix vref_uv type
authorLudovic Desroches <ludovic.desroches@atmel.com>
Mon, 18 Jan 2016 08:41:55 +0000 (09:41 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 23 Jan 2016 16:15:29 +0000 (16:15 +0000)
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>
drivers/iio/adc/at91-sama5d2_adc.c

index ecb2d90..f2d8bd5 100644 (file)
@@ -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;