summaryrefslogtreecommitdiffstats
path: root/drivers/iio/frequency
diff options
context:
space:
mode:
authorMichael Hennerich <michael.hennerich@analog.com>2012-06-11 09:51:04 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-06-12 23:50:51 +0200
commit011c10c351f3f081b496e2197db2948d120cc26c (patch)
tree6cb3bae72263a3ebfb96e509fba81380e917da69 /drivers/iio/frequency
parentiio: add mcp4725 I2C DAC driver (diff)
downloadlinux-011c10c351f3f081b496e2197db2948d120cc26c.tar.xz
linux-011c10c351f3f081b496e2197db2948d120cc26c.zip
iio: ad9523: Fix argument type mismatch
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>
Diffstat (limited to 'drivers/iio/frequency')
-rw-r--r--drivers/iio/frequency/ad9523.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/frequency/ad9523.c b/drivers/iio/frequency/ad9523.c
index 832e6ab26114..b737c64a402d 100644
--- a/drivers/iio/frequency/ad9523.c
+++ b/drivers/iio/frequency/ad9523.c
@@ -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;