Skip to content
Commit 2da3db7f authored by Alexander Stein's avatar Alexander Stein Committed by Chanwoo Choi
Browse files

extcon: Deduplicate code in extcon_set_state_sync()



Finding the cable index and checking for changed status is also done
in extcon_set_state(). So calling extcon_set_state_sync() will do these
checks twice. Remove them and use these checks from extcon_set_state().

Signed-off-by: default avatarAlexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
parent 38b1a3c6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment