Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1222152

[PATCH 3/6] extcon: arizona: Ignore jd_invert for MICD_CLAMP_STS

From Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Newsgroups linux.kernel
Subject [PATCH 3/6] extcon: arizona: Ignore jd_invert for MICD_CLAMP_STS
Date 2015-09-10 14:10 +0200
Message-ID <q78PV-Wx-43@gated-at.bofh.it> (permalink)
References <q78PT-Wx-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Nariman Poushin <nariman@opensource.wolfsonmicro.com>

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

Signed-off-by: Nariman Poushin <nariman@opensource.wolfsonmicro.com>
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
---
 drivers/extcon/extcon-arizona.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/drivers/extcon/extcon-arizona.c b/drivers/extcon/extcon-arizona.c
index 7bfaacd..6d030a0 100644
--- a/drivers/extcon/extcon-arizona.c
+++ b/drivers/extcon/extcon-arizona.c
@@ -1059,10 +1059,7 @@ 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;
+		present = 0;
 	} else {
 		mask = ARIZONA_JD1_STS;
 		if (arizona->pdata.jd_invert)
-- 
1.7.2.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/6] mfd: arizona: Add TST_CAP bits for headphone detection Charles Keepax <ckeepax@opensource.wolfsonmicro.com> - 2015-09-10 14:10 +0200
  [PATCH 2/6] extcon: arizona: Additional settings to improve accuracy of HP detect Charles Keepax <ckeepax@opensource.wolfsonmicro.com> - 2015-09-10 14:10 +0200
    Re: [PATCH 2/6] extcon: arizona: Additional settings to improve  accuracy of HP detect Chanwoo Choi <cw00.choi@samsung.com> - 2015-09-11 10:20 +0200
  [PATCH 6/6] mfd: arizona: Update DT binding documentation for jack detection Charles Keepax <ckeepax@opensource.wolfsonmicro.com> - 2015-09-10 14:10 +0200
    Re: [PATCH 6/6] mfd: arizona: Update DT binding documentation for jack  detection Chanwoo Choi <cw00.choi@samsung.com> - 2015-09-11 10:10 +0200
  [PATCH 3/6] extcon: arizona: Ignore jd_invert for MICD_CLAMP_STS Charles Keepax <ckeepax@opensource.wolfsonmicro.com> - 2015-09-10 14:10 +0200
    Re: [PATCH 3/6] extcon: arizona: Ignore jd_invert for MICD_CLAMP_STS Chanwoo Choi <cw00.choi@samsung.com> - 2015-09-11 10:10 +0200
  Re: [PATCH 1/6] mfd: arizona: Add TST_CAP bits for headphone detection Chanwoo Choi <cw00.choi@samsung.com> - 2015-09-11 10:20 +0200

csiph-web