Home
last modified time | relevance | path

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

/openbmc/linux/drivers/phy/allwinner/
H A Dphy-sun4i-usb.c134 struct power_supply *vbus_power_supply; member
424 if (data->vbus_power_supply) { in sun4i_usb_phy0_get_vbus_det()
428 r = power_supply_get_property(data->vbus_power_supply, in sun4i_usb_phy0_get_vbus_det()
440 return data->vbus_det_gpio || data->vbus_power_supply; in sun4i_usb_phy0_have_vbus_det()
455 if (data->cfg->poll_vbusen && data->vbus_power_supply && in sun4i_usb_phy0_poll()
679 if (val == PSY_EVENT_PROP_CHANGED && psy == data->vbus_power_supply) in sun4i_usb_phy0_vbus_notify()
758 data->vbus_power_supply = devm_power_supply_get_by_phandle(dev, in sun4i_usb_phy_probe()
760 if (IS_ERR(data->vbus_power_supply)) { in sun4i_usb_phy_probe()
762 return PTR_ERR(data->vbus_power_supply); in sun4i_usb_phy_probe()
765 if (!data->vbus_power_supply) in sun4i_usb_phy_probe()
[all …]