]> git.karo-electronics.de Git - linux-beck.git/commitdiff
extcon: arizona: Correct typo to disable regulation for button detection
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Thu, 29 May 2014 15:27:54 +0000 (16:27 +0100)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 16 Jun 2014 04:33:19 +0000 (13:33 +0900)
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>
drivers/extcon/extcon-arizona.c

index f2c36b15a845cceec0f81d7d4d074d91a61fd750..c6347965c63969225c99745a2ecb94f634a26247 100644 (file)
@@ -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);