From e368f525218497a9943b61301148d30382c1e014 Mon Sep 17 00:00:00 2001 From: Charles Keepax Date: Thu, 29 May 2014 16:27:54 +0100 Subject: 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 Signed-off-by: Chanwoo Choi diff --git a/drivers/extcon/extcon-arizona.c b/drivers/extcon/extcon-arizona.c index f2c36b1..c634796 100644 --- a/drivers/extcon/extcon-arizona.c +++ b/drivers/extcon/extcon-arizona.c @@ -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); -- cgit v0.10.2