• Randy Dunlap's avatar
    ASoC: codec: tlv320adc3xxx: add GPIOLIB dependency · 551f2994
    Randy Dunlap authored
    Fix build errors when CONFIG_GPIOLIB is not enabled:
    
    ../sound/soc/codecs/tlv320adc3xxx.c: In function 'adc3xxx_i2c_probe':
    ../sound/soc/codecs/tlv320adc3xxx.c:1352:28: error: implicit declaration of function 'devm_gpiod_get'; did you mean 'devm_gpio_free'? [-Werror=implicit-function-declaration]
     1352 |         adc3xxx->rst_pin = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW);
    ../sound/soc/codecs/tlv320adc3xxx.c:1352:57: error: 'GPIOD_OUT_LOW' undeclared (first use in this function); did you mean 'GPIOF_INIT_LOW'?
     1352 |         adc3xxx->rst_pin = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW);
      CC      lib/dynamic_debug.o
    ../sound/soc/codecs/tlv320adc3xxx.c:1400:9: error: implicit declaration of function 'gpiod_set_value_cansleep'; did you mean 'gpio_set_value_cansleep'? [-Werror=implicit-function-declaration]
     1400 |         gpiod_set_value_cansleep(adc3xxx->rst_pin, 1);
    
    Fixes: e9a3b57e ("ASoC: codec: tlv320adc3xxx: New codec driver")
    Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
    Reported-by: default avatarkernel test robot <lkp@intel.com>
    Cc: Mark Brown <broonie@kernel.org>
    Cc: Liam Girdwood <lgirdwood@gmail.com>
    Cc: Ricard Wanderlof <ricardw@axis.com>
    Cc: Jaroslav Kysela <perex@perex.cz>
    Cc: Takashi Iwai <tiwai@suse.com>
    Cc: alsa-devel@alsa-project.org
    Link: https://lore.kernel.org/r/20221006235822.30074-1-rdunlap@infradead.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
    551f2994
Kconfig 47.7 KB