[PATCH] ASoC: adau1372: Add missing KConfig dependencies

Lars-Peter Clausen lars at metafoo.de
Tue Dec 1 08:54:35 CET 2020


The I2C and SPI version of the adau1372 driver respectively depend on the
I2C and SPI framework being enabled. Otherwise compile or linker errors
will occur when building the driver.

Add the proper Kconfig dependencies to ensure that the drivers are only
selectable if the required framework is enabled.

Reported-by: kernel test robot <lkp at intel.com>
Signed-off-by: Lars-Peter Clausen <lars at metafoo.de>
---
 sound/soc/codecs/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig
index ec30d700901b..c3cb7ca3f883 100644
--- a/sound/soc/codecs/Kconfig
+++ b/sound/soc/codecs/Kconfig
@@ -372,11 +372,13 @@ config SND_SOC_ADAU1372
 
 config SND_SOC_ADAU1372_I2C
 	tristate "Analog Devices ADAU1372 CODEC (I2C)"
+	depends on I2C
 	select SND_SOC_ADAU1372
 	select REGMAP_I2C
 
 config SND_SOC_ADAU1372_SPI
 	tristate "Analog Devices ADAU1372 CODEC (SPI)"
+	depends on SPI_MASTER
 	select SND_SOC_ADAU1372
 	select REGMAP_SPI
 
-- 
2.20.1



More information about the Alsa-devel mailing list