]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: adav80x: Select SND_SOC_ADAV80X if SND_SOC_I2C_AND_SPI
authorAxel Lin <axel.lin@ingics.com>
Mon, 10 Jun 2013 13:20:44 +0000 (21:20 +0800)
committerMark Brown <broonie@linaro.org>
Wed, 12 Jun 2013 15:23:40 +0000 (16:23 +0100)
commit9f826509d54b5fa31374e2d975dcca521422657a
tree2dd8abd3fa30f524a46b4d6168b8b84ca805df96
parente769eab498fba90f6e171ce34cef77bdda14c54d
ASoC: adav80x: Select SND_SOC_ADAV80X if SND_SOC_I2C_AND_SPI

This driver is useless if both SPI and I2C are not configured.
Thus don't build this driver if both SPI and I2C are not configured.

This patch silences below build warning if both SPI and I2C are not configured.

  CC      sound/soc/codecs/adav80x.o
sound/soc/codecs/adav80x.c:842:12: warning: 'adav80x_bus_probe' defined but not used [-Wunused-function]
sound/soc/codecs/adav80x.c:863:12: warning: 'adav80x_bus_remove' defined but not used [-Wunused-function]

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/Kconfig