未验证 提交 a825f31f 编写于 作者: A Andrew F. Davis 提交者: Mark Brown

ASoC: tlv320aic31xx: Use standard reset GPIO OF name

The correct DT property for specifying a GPIO used for reset
is "reset-gpios", fix this here.

[Retitled for accuracy -- broonie]
Signed-off-by: NAndrew F. Davis <afd@ti.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 f00e0030
...@@ -1279,9 +1279,16 @@ static void aic31xx_pdata_from_of(struct aic31xx_priv *aic31xx) ...@@ -1279,9 +1279,16 @@ static void aic31xx_pdata_from_of(struct aic31xx_priv *aic31xx)
aic31xx->pdata.micbias_vg = MICBIAS_2_0V; aic31xx->pdata.micbias_vg = MICBIAS_2_0V;
} }
ret = of_get_named_gpio(np, "reset-gpios", 0);
if (ret > 0) {
aic31xx->pdata.gpio_reset = ret;
} else {
ret = of_get_named_gpio(np, "gpio-reset", 0); ret = of_get_named_gpio(np, "gpio-reset", 0);
if (ret > 0) if (ret > 0) {
dev_warn(aic31xx->dev, "Using deprecated property \"gpio-reset\", please update your DT");
aic31xx->pdata.gpio_reset = ret; aic31xx->pdata.gpio_reset = ret;
}
}
} }
#else /* CONFIG_OF */ #else /* CONFIG_OF */
static void aic31xx_pdata_from_of(struct aic31xx_priv *aic31xx) static void aic31xx_pdata_from_of(struct aic31xx_priv *aic31xx)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册