aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/extcon
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>2014-05-29 11:27:54 -0400
committerChanwoo Choi <cw00.choi@samsung.com>2014-06-16 00:33:19 -0400
commite368f525218497a9943b61301148d30382c1e014 (patch)
tree83fc0de4a61514534f331c0fef43972e19e47ec4 /drivers/extcon
parent34602486d048910fa9c360519b9512b53382e60f (diff)
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>
Diffstat (limited to 'drivers/extcon')
-rw-r--r--drivers/extcon/extcon-arizona.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/extcon/extcon-arizona.c b/drivers/extcon/extcon-arizona.c
index f2c36b15a845..c6347965c639 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)
823 ret); 823 ret);
824 824
825 /* Don't need to regulate for button detection */ 825 /* Don't need to regulate for button detection */
826 ret = regulator_allow_bypass(info->micvdd, false); 826 ret = regulator_allow_bypass(info->micvdd, true);
827 if (ret != 0) { 827 if (ret != 0) {
828 dev_err(arizona->dev, "Failed to bypass MICVDD: %d\n", 828 dev_err(arizona->dev, "Failed to bypass MICVDD: %d\n",
829 ret); 829 ret);