extcon: arizona: Tidy up transition from mic to headphone detect
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Mon, 9 Dec 2019 11:09:11 +0000 (11:09 +0000)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 9 Dec 2019 11:18:14 +0000 (20:18 +0900)
commitd5aa46ddf9ed7cf0d7ea0b86bec20412733ac870
tree747271f6689c42ddd190b630bae3f6316f057348
parentac7614fab9dd1054ec6bd082f02a436bb5cb082f
extcon: arizona: Tidy up transition from mic to headphone detect

Moving from microphone detection to headphone detection is done fairly
haphazardly at the moment, sometimes calling arizona_stop_mic at the
call site sometimes relying on a call inside arizona_identify_headphone.
Simplify all this and always call arizona_stop_mic at the top of
arizona_identify_headphone.

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