iio: ad9523: Fix argument type mismatch
authorMichael Hennerich <michael.hennerich@analog.com>
Mon, 11 Jun 2012 07:51:04 +0000 (09:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Jun 2012 21:50:51 +0000 (14:50 -0700)
drivers/iio/frequency/ad9523.c:378 ad9523_vco_out_map()
 warn: value 2 can't fit into 1 'out'

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/frequency/ad9523.c

index 832e6ab26114ec99a8d7821d92234427366b1e57..b737c64a402dab345c7f0c1d6f254d4877198bf1 100644 (file)
@@ -361,7 +361,7 @@ static int ad9523_io_update(struct iio_dev *indio_dev)
 }
 
 static int ad9523_vco_out_map(struct iio_dev *indio_dev,
-                             unsigned ch, bool out)
+                             unsigned ch, unsigned out)
 {
        struct ad9523_state *st = iio_priv(indio_dev);
        int ret;