diff options
author | Chanwoo Choi <cw00.choi@samsung.com> | 2016-12-30 05:11:28 +0100 |
---|---|---|
committer | Kishon Vijay Abraham I <kishon@ti.com> | 2017-01-16 12:11:51 +0100 |
commit | c6f30a5b8eaa4b4421989ef1e788db30a1f2e142 (patch) | |
tree | 85167796afccadb79a7d60b60a9ba860ebd7bf9e | |
parent | phy: sun4i-usb: add support for V3s USB PHY (diff) | |
download | linux-c6f30a5b8eaa4b4421989ef1e788db30a1f2e142.tar.xz linux-c6f30a5b8eaa4b4421989ef1e788db30a1f2e142.zip |
phy: rcar-gen3-usb2: Replace the deprecated extcon API
This patch replaces the deprecated extcon API as following:
- extcon_set_cable_state_() -> extcon_set_state_sync()
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Acked-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
-rw-r--r-- | drivers/phy/phy-rcar-gen3-usb2.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/phy/phy-rcar-gen3-usb2.c b/drivers/phy/phy-rcar-gen3-usb2.c index c63da1b955c1..54a83675f0a8 100644 --- a/drivers/phy/phy-rcar-gen3-usb2.c +++ b/drivers/phy/phy-rcar-gen3-usb2.c @@ -94,11 +94,11 @@ static void rcar_gen3_phy_usb2_work(struct work_struct *work) work); if (ch->extcon_host) { - extcon_set_cable_state_(ch->extcon, EXTCON_USB_HOST, true); - extcon_set_cable_state_(ch->extcon, EXTCON_USB, false); + extcon_set_state_sync(ch->extcon, EXTCON_USB_HOST, true); + extcon_set_state_sync(ch->extcon, EXTCON_USB, false); } else { - extcon_set_cable_state_(ch->extcon, EXTCON_USB_HOST, false); - extcon_set_cable_state_(ch->extcon, EXTCON_USB, true); + extcon_set_state_sync(ch->extcon, EXTCON_USB_HOST, false); + extcon_set_state_sync(ch->extcon, EXTCON_USB, true); } } |