Skip to contentSkip to conversation

ASoC: adau1372: Add missing KConfig dependencies

PATCH In review Lars-Peter Clausen 1 participant 2 messages Dec 1, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: adau1372: Add missing KConfig dependencies

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.

---
 sound/soc/codecs/Kconfig | 2 ++
 1 file changed, 2 insertions(+)
sound/soc/codecs/Kconfig +2 -0
index ec30d700901b..c3cb7ca3f883 100644
@@ -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
 
Signature · 1 line
2.20.1
#1 lore raw
Quoted 9 lines · Lars-Peter Clausen

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.

Ah, just saw Alexandre was faster. Please ignore this one.