extcon: arizona: Remove extra jack flip increment
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Mon, 4 Feb 2013 19:29:41 +0000 (19:29 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 11 Feb 2013 16:06:19 +0000 (16:06 +0000)
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/extcon/extcon-arizona.c

index aa72431..c17a41f 100644 (file)
@@ -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);