summaryrefslogtreecommitdiffstats
path: root/drivers/phy/broadcom/phy-bcm-ns2-usbdrd.c
diff options
context:
space:
mode:
authorChanwoo Choi <cw00.choi@samsung.com>2017-07-14 15:16:41 +0900
committerChanwoo Choi <cw00.choi@samsung.com>2017-08-16 09:21:43 +0900
commit02026de829e1bc96a2deb06a4c3ffb6e7db36b12 (patch)
tree0593bd31a8174835404ce750d30441ad95279a85 /drivers/phy/broadcom/phy-bcm-ns2-usbdrd.c
parent86f44c88738e015b451cfdafac3e98205e69cb6a (diff)
downloadblackbird-op-linux-02026de829e1bc96a2deb06a4c3ffb6e7db36b12.tar.gz
blackbird-op-linux-02026de829e1bc96a2deb06a4c3ffb6e7db36b12.zip
phy: phy-bcm-ns2-usbdrd: Replace the deprecated extcon API
This patch replaces the deprecated extcon API as following: - extcon_set_cable_state_() -> extcon_get_state() Acked-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'drivers/phy/broadcom/phy-bcm-ns2-usbdrd.c')
-rw-r--r--drivers/phy/broadcom/phy-bcm-ns2-usbdrd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/phy/broadcom/phy-bcm-ns2-usbdrd.c b/drivers/phy/broadcom/phy-bcm-ns2-usbdrd.c
index 9ae59e223131..d099a0c8cee5 100644
--- a/drivers/phy/broadcom/phy-bcm-ns2-usbdrd.c
+++ b/drivers/phy/broadcom/phy-bcm-ns2-usbdrd.c
@@ -253,16 +253,16 @@ static void extcon_work(struct work_struct *work)
vbus = gpiod_get_value_cansleep(driver->vbus_gpiod);
if (!id && vbus) { /* Host connected */
- extcon_set_cable_state_(driver->edev, EXTCON_USB_HOST, true);
+ extcon_set_state_sync(driver->edev, EXTCON_USB_HOST, true);
pr_debug("Host cable connected\n");
driver->data->new_state = EVT_HOST;
connect_change(driver);
} else if (id && !vbus) { /* Disconnected */
- extcon_set_cable_state_(driver->edev, EXTCON_USB_HOST, false);
- extcon_set_cable_state_(driver->edev, EXTCON_USB, false);
+ extcon_set_state_sync(driver->edev, EXTCON_USB_HOST, false);
+ extcon_set_state_sync(driver->edev, EXTCON_USB, false);
pr_debug("Cable disconnected\n");
} else if (id && vbus) { /* Device connected */
- extcon_set_cable_state_(driver->edev, EXTCON_USB, true);
+ extcon_set_state_sync(driver->edev, EXTCON_USB, true);
pr_debug("Device cable connected\n");
driver->data->new_state = EVT_DEVICE;
connect_change(driver);
OpenPOWER on IntegriCloud