Explorar o código

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>
Michael Hennerich %!s(int64=13) %!d(string=hai) anos
pai
achega
011c10c351
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/iio/frequency/ad9523.c

+ 1 - 1
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,
 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);
 	struct ad9523_state *st = iio_priv(indio_dev);
 	int ret;
 	int ret;