2022-11-14 13:55:11

by Cosmin Tanislav

[permalink] [raw]
Subject: [PATCH] iio: adc: ad4130: depend on GPIOLIB

Fixes undefined references to 'gpiochip_get_data' and
'devm_gpiochip_add_data_with_key'.

Signed-off-by: Cosmin Tanislav <[email protected]>
Reported-by: kernel test robot <[email protected]>
Fixes: 5bdef39c5c6e ("iio: adc: ad4130: add AD4130 driver")
---
drivers/iio/adc/Kconfig | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig
index 8d719fbb6acc..63f80d747cbd 100644
--- a/drivers/iio/adc/Kconfig
+++ b/drivers/iio/adc/Kconfig
@@ -24,6 +24,7 @@ config AD_SIGMA_DELTA
config AD4130
tristate "Analog Device AD4130 ADC Driver"
depends on SPI
+ depends on GPIOLIB
select IIO_BUFFER
select IIO_KFIFO_BUF
select REGMAP_SPI
--
2.38.1



2022-11-14 20:09:45

by Jonathan Cameron

[permalink] [raw]
Subject: Re: [PATCH] iio: adc: ad4130: depend on GPIOLIB

On Mon, 14 Nov 2022 15:36:49 +0200
Cosmin Tanislav <[email protected]> wrote:

> Fixes undefined references to 'gpiochip_get_data' and
> 'devm_gpiochip_add_data_with_key'.
>
> Signed-off-by: Cosmin Tanislav <[email protected]>
> Reported-by: kernel test robot <[email protected]>
> Fixes: 5bdef39c5c6e ("iio: adc: ad4130: add AD4130 driver")
Applied.

Thanks for handling this so quickly.

Jonathan

> ---
> drivers/iio/adc/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig
> index 8d719fbb6acc..63f80d747cbd 100644
> --- a/drivers/iio/adc/Kconfig
> +++ b/drivers/iio/adc/Kconfig
> @@ -24,6 +24,7 @@ config AD_SIGMA_DELTA
> config AD4130
> tristate "Analog Device AD4130 ADC Driver"
> depends on SPI
> + depends on GPIOLIB
> select IIO_BUFFER
> select IIO_KFIFO_BUF
> select REGMAP_SPI