summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/pinctrl/pinctrl-tegra186-padctl.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/drivers/pinctrl/pinctrl-tegra186-padctl.c b/drivers/pinctrl/pinctrl-tegra186-padctl.c
index d8c6fe16e..b680ed095 100644
--- a/drivers/pinctrl/pinctrl-tegra186-padctl.c
+++ b/drivers/pinctrl/pinctrl-tegra186-padctl.c
@@ -3388,27 +3388,6 @@ bool tegra_phy_xusb_utmi_pad_secondary_charger_detect(struct phy *phy)
3388} 3388}
3389EXPORT_SYMBOL_GPL(tegra_phy_xusb_utmi_pad_secondary_charger_detect); 3389EXPORT_SYMBOL_GPL(tegra_phy_xusb_utmi_pad_secondary_charger_detect);
3390 3390
3391int tegra_phy_xusb_phy_to_port(struct phy *phy)
3392{
3393 struct tegra_padctl *padctl;
3394 int port = -EINVAL;
3395
3396 if (!phy || IS_ERR(phy))
3397 return port;
3398
3399 padctl = phy_get_drvdata(phy);
3400
3401 if (is_utmi_phy(phy))
3402 port = utmi_phy_to_port(phy);
3403 else if (is_hsic_phy(phy))
3404 port = hsic_phy_to_port(phy);
3405 else if (is_usb3_phy(phy))
3406 port = usb3_phy_to_port(phy);
3407
3408 return port;
3409}
3410EXPORT_SYMBOL_GPL(tegra_phy_xusb_phy_to_port);
3411
3412MODULE_AUTHOR("JC Kuo <jckuo@nvidia.com>"); 3391MODULE_AUTHOR("JC Kuo <jckuo@nvidia.com>");
3413MODULE_DESCRIPTION("Tegra 186 XUSB PADCTL driver"); 3392MODULE_DESCRIPTION("Tegra 186 XUSB PADCTL driver");
3414MODULE_LICENSE("GPL v2"); 3393MODULE_LICENSE("GPL v2");