[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220323141737.211198-1-zhongbaisong@huawei.com>
Date: Wed, 23 Mar 2022 22:17:36 +0800
From: Baisong Zhong <zhongbaisong@...wei.com>
To: <linux-kernel@...r.kernel.org>, <alsa-devel@...a-project.org>
CC: <lgirdwood@...il.com>, <broonie@...nel.org>, <perex@...ex.cz>,
<tiwai@...e.com>, <srinivas.kandagatla@...aro.org>,
<ckeepax@...nsource.cirrus.com>, <tanureal@...nsource.cirrus.com>,
<cy_huang@...htek.com>, <pierre-louis.bossart@...ux.intel.com>,
<drhodes@...nsource.cirrus.com>, <pbrobinson@...il.com>,
<hdegoede@...hat.com>, <lukas.bulwahn@...il.com>,
<ricardw@...s.com>
Subject: [PATCH -next] ASoC: tlv320adc3xxx: Fix build error when GPIOLIB is not set
sound/soc/codecs/tlv320adc3xxx.c:1352:21: error: implicit declaration of function ‘devm_gpiod_get’; did you mean ‘devm_gpio_free’?
sound/soc/codecs/tlv320adc3xxx.c:1352:50: error: ‘GPIOD_OUT_LOW’ undeclared (first use in this function); did you mean ‘GPIOF_INIT_LOW’?
sound/soc/codecs/tlv320adc3xxx.c:1400:2: error: implicit declaration of function ‘gpiod_set_value_cansleep’; did you mean ‘gpio_set_value_cansleep’?
Fixes: e9a3b57efd28 ("ASoC: codec: tlv320adc3xxx: New codec driver")
Reported-by: Hulk Robot <hulkci@...wei.com>
Signed-off-by: Baisong Zhong <zhongbaisong@...wei.com>
---
sound/soc/codecs/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig
index f46a22660103..1400fc75fd65 100644
--- a/sound/soc/codecs/Kconfig
+++ b/sound/soc/codecs/Kconfig
@@ -1535,7 +1535,7 @@ config SND_SOC_TFA989X
config SND_SOC_TLV320ADC3XXX
tristate "Texas Instruments TLV320ADC3001/3101 audio ADC"
- depends on I2C
+ depends on I2C && GPIOLIB
help
Enable support for Texas Instruments TLV320ADC3001 and TLV320ADC3101
ADCs.
--
2.25.1
Powered by blists - more mailing lists