* [PATCH] ASoC: codecs: wsa883x: add GPIOLIB dependency
@ 2022-10-06 23:58 Randy Dunlap
0 siblings, 0 replies; only message in thread
From: Randy Dunlap @ 2022-10-06 23:58 UTC (permalink / raw)
To: linux-kernel
Cc: alsa-devel, kernel test robot, Randy Dunlap, Liam Girdwood,
Mark Brown, Srinivas Kandagatla, Banajit Goswami, Takashi Iwai
Fix a build error when GPIOLIB is not set/enabled:
../sound/soc/codecs/wsa883x.c: In function 'wsa883x_probe':
../sound/soc/codecs/wsa883x.c:1394:25: error: implicit declaration of function 'devm_gpiod_get_optional'; did you mean 'devm_regulator_get_optional'? [-Werror=implicit-function-declaration]
1394 | wsa883x->sd_n = devm_gpiod_get_optional(&pdev->dev, "powerdown",
../sound/soc/codecs/wsa883x.c:1395:49: error: 'GPIOD_FLAGS_BIT_NONEXCLUSIVE' undeclared (first use in this function)
1395 | GPIOD_FLAGS_BIT_NONEXCLUSIVE);
../sound/soc/codecs/wsa883x.c:1414:9: error: implicit declaration of function 'gpiod_direction_output'; did you mean 'gpio_direction_output'? [-Werror=implicit-function-declaration]
1414 | gpiod_direction_output(wsa883x->sd_n, 1);
Fixes: 43b8c7dc85a14 ("ASoC: codecs: add wsa883x amplifier support")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: kernel test robot <lkp@intel.com>
Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Cc: Banajit Goswami <bgoswami@quicinc.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: alsa-devel@alsa-project.org
Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Takashi Iwai <tiwai@suse.com>
---
sound/soc/codecs/Kconfig | 1 +
1 file changed, 1 insertion(+)
--- a/sound/soc/codecs/Kconfig
+++ b/sound/soc/codecs/Kconfig
@@ -2029,6 +2029,7 @@ config SND_SOC_WSA881X
config SND_SOC_WSA883X
tristate "WSA883X Codec"
depends on SOUNDWIRE
+ depends on GPIOLIB
select REGMAP_SOUNDWIRE
tristate
help
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-10-06 23:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-06 23:58 [PATCH] ASoC: codecs: wsa883x: add GPIOLIB dependency Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).