ASoC: codecs: wsa883x: add GPIOLIB dependency
PATCH 1/1 ASoC: codecs: wsa883x: add GPIOLIB dependency
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);
--- sound/soc/codecs/Kconfig | 1 + 1 file changed, 1 insertion(+)
sound/soc/codecs/Kconfig +1 -0
@@ -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