Revert "extcon: axp288: Redo charger type detection a couple of seconds after probe()"
authorHans de Goede <hdegoede@redhat.com>
Mon, 12 Feb 2018 19:46:29 +0000 (20:46 +0100)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 12 Feb 2018 21:49:44 +0000 (06:49 +0900)
commitd82e233cee26ceacb9feb937a21bfb61b1826860
treec17ac8c13926ba0042c8f233f84b369b711fa5a9
parent5b4e64beb6ab40f5d8b44500fe0fc201c25a0f16
Revert "extcon: axp288: Redo charger type detection a couple of seconds after probe()"

Redoing the charger type detection to give the usb-role-switch code time
to properly set the role-switch is no good for mainline, since the
usb-role-switch code is not yet in mainline (my bad, sorry).

Also once we've that code there are better ways to fix this which are
not prone to racing as doing a retry after 2 seconds is.

This reverts commit 50082c17bb1455acacd376ae30dff92f2e1addbd.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-axp288.c