Searched refs:vbus_power_supply (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/phy/
H A Dphy-sun4i-usb.c112 struct power_supply *vbus_power_supply; member in struct:sun4i_usb_phy_data
302 if (data->vbus_power_supply) { sun4i_usb_phy0_get_vbus_det()
306 r = power_supply_get_property(data->vbus_power_supply, sun4i_usb_phy0_get_vbus_det()
318 return data->vbus_det_gpio || data->vbus_power_supply; sun4i_usb_phy0_have_vbus_det()
467 /* Properties on the vbus_power_supply changed, scan vbus_det */ sun4i_usb_phy0_vbus_notify()
468 if (val == PSY_EVENT_PROP_CHANGED && psy == data->vbus_power_supply) sun4i_usb_phy0_vbus_notify()
565 data->vbus_power_supply = devm_power_supply_get_by_phandle(dev, sun4i_usb_phy_probe()
567 if (IS_ERR(data->vbus_power_supply)) sun4i_usb_phy_probe()
568 return PTR_ERR(data->vbus_power_supply); sun4i_usb_phy_probe()
570 if (!data->vbus_power_supply) sun4i_usb_phy_probe()
672 if (data->vbus_power_supply) { sun4i_usb_phy_probe()

Completed in 68 milliseconds