[PATCH 13/13] iio: proximity: mb1232: add missing select IIO_(TRIGGERED_)BUFFER in Kconfig

Javier Carrasco posted 13 patches 1 month, 3 weeks ago
[PATCH 13/13] iio: proximity: mb1232: add missing select IIO_(TRIGGERED_)BUFFER in Kconfig
Posted by Javier Carrasco 1 month, 3 weeks ago
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: 16b05261537e ("mb1232.c: add distance iio sensor with i2c")
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
---
 drivers/iio/proximity/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/iio/proximity/Kconfig b/drivers/iio/proximity/Kconfig
index 31c679074b25..a562a78b7d0d 100644
--- a/drivers/iio/proximity/Kconfig
+++ b/drivers/iio/proximity/Kconfig
@@ -86,6 +86,8 @@ config LIDAR_LITE_V2
 config MB1232
 	tristate "MaxSonar I2CXL family ultrasonic sensors"
 	depends on I2C
+	select IIO_BUFFER
+	select IIO_TRIGGERED_BUFFER
 	help
 	  Say Y to build a driver for the ultrasonic sensors I2CXL of
 	  MaxBotix which have an i2c interface. It can be used to measure

-- 
2.43.0
Re: [PATCH 13/13] iio: proximity: mb1232: add missing select IIO_(TRIGGERED_)BUFFER in Kconfig
Posted by Jonathan Cameron 1 month, 3 weeks ago
On Thu, 03 Oct 2024 23:04:59 +0200
Javier Carrasco <javier.carrasco.cruz@gmail.com> 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: 16b05261537e ("mb1232.c: add distance iio sensor with i2c")
> Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Applied.

Thanks for going through looking for these.  Hopefully this will reduce
chance of us getting a rand config hitting this in the future!

Jonathan

> ---
>  drivers/iio/proximity/Kconfig | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/iio/proximity/Kconfig b/drivers/iio/proximity/Kconfig
> index 31c679074b25..a562a78b7d0d 100644
> --- a/drivers/iio/proximity/Kconfig
> +++ b/drivers/iio/proximity/Kconfig
> @@ -86,6 +86,8 @@ config LIDAR_LITE_V2
>  config MB1232
>  	tristate "MaxSonar I2CXL family ultrasonic sensors"
>  	depends on I2C
> +	select IIO_BUFFER
> +	select IIO_TRIGGERED_BUFFER
>  	help
>  	  Say Y to build a driver for the ultrasonic sensors I2CXL of
>  	  MaxBotix which have an i2c interface. It can be used to measure
>