summaryrefslogtreecommitdiffstats
path: root/drivers/extcon
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>2013-02-04 20:29:41 +0100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-02-11 17:06:19 +0100
commite339af1c4567b1e63209329e2665781e598709f2 (patch)
tree0652844a995ffdd23f7632ca3f5e321d471222dd /drivers/extcon
parentextcon: arizona: Use regulated mode for microphone supply when detecting (diff)
downloadlinux-e339af1c4567b1e63209329e2665781e598709f2.tar.xz
linux-e339af1c4567b1e63209329e2665781e598709f2.zip
extcon: arizona: Remove extra jack flip increment
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/extcon')
-rw-r--r--drivers/extcon/extcon-arizona.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/extcon/extcon-arizona.c b/drivers/extcon/extcon-arizona.c
index aa724314677a..c17a41ff60ea 100644
--- a/drivers/extcon/extcon-arizona.c
+++ b/drivers/extcon/extcon-arizona.c
@@ -750,8 +750,6 @@ static irqreturn_t arizona_micdet(int irq, void *data)
* impedence then give up and report headphones.
*/
if (info->detecting && (val & 0x3f8)) {
- info->jack_flips++;
-
if (info->jack_flips >= info->micd_num_modes) {
dev_dbg(arizona->dev, "Detected HP/line\n");
arizona_identify_headphone(info);