extcon: arizona: Factor out microphone and button detection
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Mon, 9 Dec 2019 11:09:16 +0000 (11:09 +0000)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 9 Dec 2019 11:18:15 +0000 (20:18 +0900)
commit4b28b25c3062002eebdef1a4e6bab2f8293308f1
tree59c4ed9aec5e6f0bd9a4b83cde98e02e5e9a7f6b
parent7e14fc437c8144d1d5587d7b3a8d33e732144227
extcon: arizona: Factor out microphone and button detection

Continue refactoring the microphone detect handling by factoring
out the handling for microphone detection and button detection
into separate functions. This both makes the code a little clearer
and prepares for some planned future refactoring to make the state
handling in the driver more explicit.

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