• Randy Dunlap's avatar
    ASoC: codecs: wsa883x: use correct header file · 5f52cedd
    Randy Dunlap authored
    Fix build errors 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]
             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)
             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]
             gpiod_direction_output(wsa883x->sd_n, 1);
    
    Fixes: 43b8c7dc
    
     ("ASoC: codecs: add wsa883x amplifier support")
    Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
    Reported-by: default avatarkernel 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>
    Reviewed-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
    Link: https://lore.kernel.org/r/20221108001829.5100-1-rdunlap@infradead.org
    
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    5f52cedd
wsa883x.c 57.4 KB