| From 5be741c4435d1e87f76b4cff63cc60a67aed6b5f Mon Sep 17 00:00:00 2001 |
| From: Chanwoo Choi <cw00.choi@samsung.com> |
| Date: Mon, 16 Jan 2017 21:37:02 +0900 |
| Subject: [PATCH 181/255] usb: renesas_usbhs: Replace the deprecated extcon API |
| |
| 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> |
| (cherry picked from commit ea07b8cf08f71fe5fb49c02b4a29b92a6b357218) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| --- |
| drivers/usb/renesas_usbhs/common.c | 2 +- |
| 1 file changed, 1 insertion(+), 1 deletion(-) |
| |
| --- a/drivers/usb/renesas_usbhs/common.c |
| +++ b/drivers/usb/renesas_usbhs/common.c |
| @@ -389,7 +389,7 @@ static void usbhsc_hotplug(struct usbhs_ |
| |
| 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, |