drivers: audio: tlv320dac310x: Explicitly set GPIO_DIR_OUT

As a precursor to the new GPIO API in which GPIO_DIR_OUT isn't a dts
flag move setting of GPIO_DIR_OUT from the dts to explicitly in the
code.  We remove setting the flag in intel_s1000_crb.dts as part of this
cleanup.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2019-09-10 16:04:33 -05:00 committed by Kumar Gala
commit b546ef3748
2 changed files with 2 additions and 2 deletions

View file

@ -110,7 +110,7 @@ static int codec_configure(struct device *dev,
/* configure reset GPIO */
gpio_pin_configure(dev_cfg->gpio_device, dev_cfg->gpio_pin,
dev_cfg->gpio_flags);
dev_cfg->gpio_flags | GPIO_DIR_OUT);
/* de-assert reset */
gpio_pin_write(dev_cfg->gpio_device, dev_cfg->gpio_pin,
CODEC_RESET_PIN_DEASSERT);