diff mbox series

[-next] iio: chemical: SENSEAIR_SUNRISE_CO2 depends on I2C

Message ID 20211002232803.5108-1-rdunlap@infradead.org (mailing list archive)
State Accepted
Headers show
Series [-next] iio: chemical: SENSEAIR_SUNRISE_CO2 depends on I2C | expand

Commit Message

Randy Dunlap Oct. 2, 2021, 11:28 p.m. UTC
Fix kconfig symbol dependency warning:

WARNING: unmet direct dependencies detected for REGMAP_I2C
  Depends on [n]: I2C [=n]
  Selected by [y]:
  - SENSEAIR_SUNRISE_CO2 [=y] && IIO [=y]

Fixes: c3253a3fdc77 ("iio: chemical: Add Senseair Sunrise 006-0-007 drive")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Jacopo Mondi <jacopo@jmondi.org>
Cc: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: linux-iio@vger.kernel.org
---
 drivers/iio/chemical/Kconfig |    1 +
 1 file changed, 1 insertion(+)

Comments

Jonathan Cameron Oct. 3, 2021, 3:37 p.m. UTC | #1
On Sat,  2 Oct 2021 16:28:03 -0700
Randy Dunlap <rdunlap@infradead.org> wrote:

> Fix kconfig symbol dependency warning:
> 
> WARNING: unmet direct dependencies detected for REGMAP_I2C
>   Depends on [n]: I2C [=n]
>   Selected by [y]:
>   - SENSEAIR_SUNRISE_CO2 [=y] && IIO [=y]
> 
> Fixes: c3253a3fdc77 ("iio: chemical: Add Senseair Sunrise 006-0-007 drive")
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> Cc: Jacopo Mondi <jacopo@jmondi.org>
> Cc: Jonathan Cameron <Jonathan.Cameron@huawei.com>
> Cc: linux-iio@vger.kernel.org

Thanks.  Applied to the togreg branch of iio.git.  I'll push that out
as testing for 0-day to run it's usual santity checks then push it out
for next to pick up.

Thanks,

Jonathan

> ---
>  drivers/iio/chemical/Kconfig |    1 +
>  1 file changed, 1 insertion(+)
> 
> --- linux-next-20211001.orig/drivers/iio/chemical/Kconfig
> +++ linux-next-20211001/drivers/iio/chemical/Kconfig
> @@ -172,6 +172,7 @@ config SPS30_SERIAL
>  
>  config SENSEAIR_SUNRISE_CO2
>  	tristate "Senseair Sunrise 006-0-0007 CO2 sensor"
> +	depends on I2C
>  	select REGMAP_I2C
>  	help
>  	  Say yes here to build support for Senseair Sunrise 006-0-0007 CO2
diff mbox series

Patch

--- linux-next-20211001.orig/drivers/iio/chemical/Kconfig
+++ linux-next-20211001/drivers/iio/chemical/Kconfig
@@ -172,6 +172,7 @@  config SPS30_SERIAL
 
 config SENSEAIR_SUNRISE_CO2
 	tristate "Senseair Sunrise 006-0-0007 CO2 sensor"
+	depends on I2C
 	select REGMAP_I2C
 	help
 	  Say yes here to build support for Senseair Sunrise 006-0-0007 CO2