#define TEMPORARY_HOLD_TIME 2000
static bool enabled = true;
-static struct otg_transceiver *otgwl_xceiv;
+static struct usb_phy *otgwl_xceiv;
static struct notifier_block otgwl_nb;
/*
{
int ret;
- otgwl_xceiv = otg_get_transceiver();
+ otgwl_xceiv = usb_get_transceiver();
if (!otgwl_xceiv) {
- pr_err("%s: No OTG transceiver found\n", __func__);
+ pr_err("%s: No USB transceiver found\n", __func__);
return -ENODEV;
}
vbus_lock.name);
otgwl_nb.notifier_call = otgwl_otg_notifications;
- ret = otg_register_notifier(otgwl_xceiv, &otgwl_nb);
+ ret = usb_register_notifier(otgwl_xceiv, &otgwl_nb);
if (ret) {
- pr_err("%s: otg_register_notifier on transceiver %s"
+ pr_err("%s: usb_register_notifier on transceiver %s"
" failed\n", __func__,
dev_name(otgwl_xceiv->dev));
otgwl_xceiv = NULL;