diff mbox series

ASoC: adau1372: Add missing KConfig dependencies

Message ID 20201201075435.29909-1-lars@metafoo.de
State New
Headers show
Series ASoC: adau1372: Add missing KConfig dependencies | expand

Commit Message

Lars-Peter Clausen Dec. 1, 2020, 7:54 a.m. UTC
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@intel.com>
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
---
 sound/soc/codecs/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

Comments

Lars-Peter Clausen Dec. 1, 2020, 8:04 a.m. UTC | #1
On 12/1/20 8:54 AM, Lars-Peter Clausen wrote:
> 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@intel.com>
> Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Ah, just saw Alexandre was faster. Please ignore this one.
diff mbox series

Patch

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