diff mbox series

[11/13] iio: magnetometer: af8133j: add missing select IIO_(TRIGGERED_)BUFFER in Kconfig

Message ID 20241003-iio-select-v1-11-67c0385197cd@gmail.com (mailing list archive)
State Accepted
Headers show
Series iio: add missing select REMAP_SPI, IIO_BUFFER, and IIO_TRIGGERED_BUFFER | expand

Commit Message

Javier Carrasco Oct. 3, 2024, 9:04 p.m. UTC
This driver makes use of triggered buffers, but does not select the
required modules.

Add the missing 'select IIO_BUFFER' and 'select IIO_TRIGGERED_BUFFER'.

Fixes: 1d8f4b04621f ("iio: magnetometer: add a driver for Voltafield AF8133J magnetometer")
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
---
 drivers/iio/magnetometer/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

Comments

Andrey Skvortsov Oct. 4, 2024, 8:58 a.m. UTC | #1
On 24-10-03 23:04, Javier Carrasco wrote:
> This driver makes use of triggered buffers, but does not select the
> required modules.
> 
> Add the missing 'select IIO_BUFFER' and 'select IIO_TRIGGERED_BUFFER'.
> 
> Fixes: 1d8f4b04621f ("iio: magnetometer: add a driver for Voltafield AF8133J magnetometer")
> Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
> ---
>  drivers/iio/magnetometer/Kconfig | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/iio/magnetometer/Kconfig b/drivers/iio/magnetometer/Kconfig
> index 8eb718f5e50f..f69ac75500f9 100644
> --- a/drivers/iio/magnetometer/Kconfig
> +++ b/drivers/iio/magnetometer/Kconfig
> @@ -11,6 +11,8 @@ config AF8133J
>  	depends on I2C
>  	depends on OF
>  	select REGMAP_I2C
> +	select IIO_BUFFER
> +	select IIO_TRIGGERED_BUFFER
>  	help
>  	  Say yes here to build support for Voltafield AF8133J I2C-based
>  	  3-axis magnetometer chip.
> 
> -- 
> 2.43.0
> 

Reviewed-by: Andrey Skvortsov <andrej.skvortzov@gmail.com>
Jonathan Cameron Oct. 5, 2024, 5:57 p.m. UTC | #2
On Fri, 4 Oct 2024 11:58:13 +0300
Andrey Skvortsov <andrej.skvortzov@gmail.com> wrote:

> On 24-10-03 23:04, Javier Carrasco wrote:
> > This driver makes use of triggered buffers, but does not select the
> > required modules.
> > 
> > Add the missing 'select IIO_BUFFER' and 'select IIO_TRIGGERED_BUFFER'.
> > 
> > Fixes: 1d8f4b04621f ("iio: magnetometer: add a driver for Voltafield AF8133J magnetometer")
> > Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
> > ---
> >  drivers/iio/magnetometer/Kconfig | 2 ++
> >  1 file changed, 2 insertions(+)
> > 
> > diff --git a/drivers/iio/magnetometer/Kconfig b/drivers/iio/magnetometer/Kconfig
> > index 8eb718f5e50f..f69ac75500f9 100644
> > --- a/drivers/iio/magnetometer/Kconfig
> > +++ b/drivers/iio/magnetometer/Kconfig
> > @@ -11,6 +11,8 @@ config AF8133J
> >  	depends on I2C
> >  	depends on OF
> >  	select REGMAP_I2C
> > +	select IIO_BUFFER
> > +	select IIO_TRIGGERED_BUFFER
> >  	help
> >  	  Say yes here to build support for Voltafield AF8133J I2C-based
> >  	  3-axis magnetometer chip.
> > 
> > -- 
> > 2.43.0
> >   
> 
> Reviewed-by: Andrey Skvortsov <andrej.skvortzov@gmail.com>
> 

Applied to the fixes-togreg branch of iio.git
diff mbox series

Patch

diff --git a/drivers/iio/magnetometer/Kconfig b/drivers/iio/magnetometer/Kconfig
index 8eb718f5e50f..f69ac75500f9 100644
--- a/drivers/iio/magnetometer/Kconfig
+++ b/drivers/iio/magnetometer/Kconfig
@@ -11,6 +11,8 @@  config AF8133J
 	depends on I2C
 	depends on OF
 	select REGMAP_I2C
+	select IIO_BUFFER
+	select IIO_TRIGGERED_BUFFER
 	help
 	  Say yes here to build support for Voltafield AF8133J I2C-based
 	  3-axis magnetometer chip.