Commit a0ef6428 authored by Nariman Poushin's avatar Nariman Poushin Committed by Chanwoo Choi
Browse files

extcon: arizona: Ignore jd_invert for MICD_CLAMP_STS



The polarity of MICD_CLAMP_STS does not change when different clamp
modes are used, this patch corrects this issue.

Signed-off-by: default avatarNariman Poushin <nariman@opensource.wolfsonmicro.com>
Signed-off-by: default avatarCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Acked-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
parent f719ae33
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -1059,9 +1059,6 @@ static irqreturn_t arizona_jackdet(int irq, void *data)

	if (arizona->pdata.jd_gpio5) {
		mask = ARIZONA_MICD_CLAMP_STS;
		if (arizona->pdata.jd_invert)
			present = ARIZONA_MICD_CLAMP_STS;
		else
		present = 0;
	} else {
		mask = ARIZONA_JD1_STS;