aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChanwoo Choi <[email protected]>2015-07-01 13:11:33 +0900
committerFelipe Balbi <[email protected]>2015-07-29 09:59:18 -0500
commit50297b79b8fd426f678431a8e9dcee59afd33ec8 (patch)
tree327b4720eea95d4efdf4ad19720abbd0cfbcaf9f
parent860d2686fda7e4dceaa4e676e62adcdbfc7f7a2c (diff)
usb: renesas_usbhs: Replace deprecated API of extcon
This patch removes the deprecated API of extcon and then use the new extcon API with the unique id to indicate the each external connector (USB-HOST). - extcon_get_cable_state(*edev, char *) -> extcon_get_cable_state_(*edev, id) Cc: Greg Kroah-Hartman <[email protected]> Cc: Felipe Balbi <[email protected]> Cc: Yoshihiro Shimoda <[email protected]> Cc: Sergei Shtylyov <[email protected]> Cc: Yoshihiro Shimoda <[email protected]> Cc: Peter Chen <[email protected]> Cc: Varka Bhadram <[email protected]> Cc: Takeshi Kihara <[email protected]> Signed-off-by: Chanwoo Choi <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
-rw-r--r--drivers/usb/renesas_usbhs/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/renesas_usbhs/common.c b/drivers/usb/renesas_usbhs/common.c
index e8bf40808b39..7b98e1d9194c 100644
--- a/drivers/usb/renesas_usbhs/common.c
+++ b/drivers/usb/renesas_usbhs/common.c
@@ -388,7 +388,7 @@ static void usbhsc_hotplug(struct usbhs_priv *priv)
if (enable && !mod) {
if (priv->edev) {
- cable = extcon_get_cable_state(priv->edev, "USB-HOST");
+ cable = extcon_get_cable_state_(priv->edev, EXTCON_USB_HOST);
if ((cable > 0 && id != USBHS_HOST) ||
(!cable && id != USBHS_GADGET)) {
dev_info(&pdev->dev,