extcon: arizona: Ensure variables are set for headphone detection
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Fri, 19 Jun 2015 16:23:32 +0000 (17:23 +0100)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 10 Aug 2015 02:48:56 +0000 (11:48 +0900)
commit0ffe8cbd51dafa5ad6686435bb1bd0afdd2b006b
treed0d81d4a83bf2a93ad44d897cb6c949cd49b0ab3
parent8e5838dd7b8c226cca235aa64c2f210517ef9b64
extcon: arizona: Ensure variables are set for headphone detection

The detecting flag really refers to the microphone detection stage and
as such should be cleared before arizona_identify_headphones is called.
Also the mic flag should be set before identify headphones is called as
well.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-arizona.c