提交 e368f525 编写于 作者: C Charles Keepax 提交者: Chanwoo Choi

extcon: arizona: Correct typo to disable regulation for button detection

We can use the bypass mode on the MICVDD reg for button detection, as
the comment in the code states, however the code was mistakenly
disabling bypass. This patch corrects this and allows bypass mode during
button detection.
Signed-off-by: NCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com>
上级 34602486
...@@ -823,7 +823,7 @@ static void arizona_micd_detect(struct work_struct *work) ...@@ -823,7 +823,7 @@ static void arizona_micd_detect(struct work_struct *work)
ret); ret);
/* Don't need to regulate for button detection */ /* Don't need to regulate for button detection */
ret = regulator_allow_bypass(info->micvdd, false); ret = regulator_allow_bypass(info->micvdd, true);
if (ret != 0) { if (ret != 0) {
dev_err(arizona->dev, "Failed to bypass MICVDD: %d\n", dev_err(arizona->dev, "Failed to bypass MICVDD: %d\n",
ret); ret);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册