Переглянути джерело

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 11 роки тому
батько
коміт
e368f52521
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      drivers/extcon/extcon-arizona.c

+ 1 - 1
drivers/extcon/extcon-arizona.c

@@ -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);