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: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
这个提交包含在:
Charles Keepax
2014-05-29 16:27:54 +01:00
提交者 Chanwoo Choi
父节点 34602486d0
当前提交 e368f52521

查看文件

@@ -823,7 +823,7 @@ static void arizona_micd_detect(struct work_struct *work)
ret);
/* 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) {
dev_err(arizona->dev, "Failed to bypass MICVDD: %d\n",
ret);