phy: rcar-gen3-usb2: Replace the deprecated extcon API
authorChanwoo Choi <cw00.choi@samsung.com>
Fri, 30 Dec 2016 04:11:28 +0000 (13:11 +0900)
committerKishon Vijay Abraham I <kishon@ti.com>
Mon, 16 Jan 2017 11:11:51 +0000 (16:41 +0530)
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>
drivers/phy/phy-rcar-gen3-usb2.c

index c63da1b955c17325881018bd912e742eff0018d9..54a83675f0a8cfacf9007241c32d9f86c1d04f45 100644 (file)
@@ -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);
        }
 }