extcon: arizona: Clear jack status regardless of detection type
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Mon, 9 Dec 2019 11:09:10 +0000 (11:09 +0000)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 9 Dec 2019 11:18:14 +0000 (20:18 +0900)
commitac7614fab9dd1054ec6bd082f02a436bb5cb082f
tree8c7aaff92e0cd4f3ffb24275a66bee038a9b946c
parentbe87cb72bf7513fb92fa0e9e4ae83f958c73c042
extcon: arizona: Clear jack status regardless of detection type

It makes sense to clear the internal state of the jack detection
regardless of if the headphone detect based accessory detection or
the normal microphone detect based flow is used.

No issues are currently known because of this but the change makes
more logical sense and eases future refactoring of the code.

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