[PATCH] iio: addac: Kconfig: update ad74413r selections

Antoniu Miclaus posted 1 patch 2 years, 3 months ago
drivers/iio/addac/Kconfig | 2 ++
1 file changed, 2 insertions(+)
[PATCH] iio: addac: Kconfig: update ad74413r selections
Posted by Antoniu Miclaus 2 years, 3 months ago
Building ad74413r without selecting IIO_BUFFER and
IIO_TRIGGERED_BUFFER generates error with respect to the iio trigger
functions that are used within the driver.
Update the Kconfig accordingly.

Fixes: fea251b6a5db ("iio: addac: add AD74413R driver")
Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
---
 drivers/iio/addac/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/iio/addac/Kconfig b/drivers/iio/addac/Kconfig
index 877f9124803c..397544f23b85 100644
--- a/drivers/iio/addac/Kconfig
+++ b/drivers/iio/addac/Kconfig
@@ -24,6 +24,8 @@ config AD74413R
 	depends on GPIOLIB && SPI
 	select REGMAP_SPI
 	select CRC8
+	select IIO_BUFFER
+	select IIO_TRIGGERED_BUFFER
 	help
 	  Say yes here to build support for Analog Devices AD74412R/AD74413R
 	  quad-channel software configurable input/output solution.
-- 
2.42.0
Re: [PATCH] iio: addac: Kconfig: update ad74413r selections
Posted by Jonathan Cameron 2 years, 3 months ago
On Tue, 12 Sep 2023 11:54:21 +0300
Antoniu Miclaus <antoniu.miclaus@analog.com> wrote:

> Building ad74413r without selecting IIO_BUFFER and
> IIO_TRIGGERED_BUFFER generates error with respect to the iio trigger
> functions that are used within the driver.
> Update the Kconfig accordingly.
> 
> Fixes: fea251b6a5db ("iio: addac: add AD74413R driver")
> Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
Applied to the fixes-togreg branch of iio.git and marked for stable.

Thanks,

Jonathan

> ---
>  drivers/iio/addac/Kconfig | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/iio/addac/Kconfig b/drivers/iio/addac/Kconfig
> index 877f9124803c..397544f23b85 100644
> --- a/drivers/iio/addac/Kconfig
> +++ b/drivers/iio/addac/Kconfig
> @@ -24,6 +24,8 @@ config AD74413R
>  	depends on GPIOLIB && SPI
>  	select REGMAP_SPI
>  	select CRC8
> +	select IIO_BUFFER
> +	select IIO_TRIGGERED_BUFFER
>  	help
>  	  Say yes here to build support for Analog Devices AD74412R/AD74413R
>  	  quad-channel software configurable input/output solution.