usb: renesas_usbhs: Replace the deprecated extcon API
authorChanwoo Choi <cw00.choi@samsung.com>
Mon, 16 Jan 2017 12:37:02 +0000 (21:37 +0900)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 24 Jan 2017 09:04:14 +0000 (11:04 +0200)
This patch replaces the deprecated extcon API as following:
- extcon_get_cable_state_() -> extcon_get_state()

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Acked-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Acked-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/renesas_usbhs/common.c

index 012a37aa3e0d4c4dfe132b6b9792ed13b8410f42..623c5130039303b389717f94ea6a89972627bc55 100644 (file)
@@ -389,7 +389,7 @@ static void usbhsc_hotplug(struct usbhs_priv *priv)
 
        if (enable && !mod) {
                if (priv->edev) {
-                       cable = extcon_get_cable_state_(priv->edev, EXTCON_USB_HOST);
+                       cable = extcon_get_state(priv->edev, EXTCON_USB_HOST);
                        if ((cable > 0 && id != USBHS_HOST) ||
                            (!cable && id != USBHS_GADGET)) {
                                dev_info(&pdev->dev,