diff options
author | Nariman Poushin <nariman@opensource.wolfsonmicro.com> | 2015-09-16 10:42:19 +0100 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2015-09-22 15:27:59 +0900 |
commit | a0ef642849f6319a031f1dcc2fa444d651179131 (patch) | |
tree | a9e086e13317019d069f4b49f8ff8454540c4b1f /drivers/extcon | |
parent | f719ae3311f9b609151a0319f0cc2fdb7491d37a (diff) | |
download | op-kernel-dev-a0ef642849f6319a031f1dcc2fa444d651179131.zip op-kernel-dev-a0ef642849f6319a031f1dcc2fa444d651179131.tar.gz |
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: Nariman Poushin <nariman@opensource.wolfsonmicro.com>
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'drivers/extcon')
-rw-r--r-- | 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 6d35147b..ece5892 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) |