提交 c6f30a5b 编写于 作者: C Chanwoo Choi 提交者: Kishon Vijay Abraham I

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: NChanwoo Choi <cw00.choi@samsung.com>
Acked-by: NYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: NKishon Vijay Abraham I <kishon@ti.com>
上级 16c40361
...@@ -94,11 +94,11 @@ static void rcar_gen3_phy_usb2_work(struct work_struct *work) ...@@ -94,11 +94,11 @@ static void rcar_gen3_phy_usb2_work(struct work_struct *work)
work); work);
if (ch->extcon_host) { if (ch->extcon_host) {
extcon_set_cable_state_(ch->extcon, EXTCON_USB_HOST, true); extcon_set_state_sync(ch->extcon, EXTCON_USB_HOST, true);
extcon_set_cable_state_(ch->extcon, EXTCON_USB, false); extcon_set_state_sync(ch->extcon, EXTCON_USB, false);
} else { } else {
extcon_set_cable_state_(ch->extcon, EXTCON_USB_HOST, false); extcon_set_state_sync(ch->extcon, EXTCON_USB_HOST, false);
extcon_set_cable_state_(ch->extcon, EXTCON_USB, true); extcon_set_state_sync(ch->extcon, EXTCON_USB, true);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册