Lines Matching refs:regulator
40 struct regulator *regulator; member
60 if (!hisi_hikey_usb->regulator) in hub_power_ctrl()
63 status = regulator_is_enabled(hisi_hikey_usb->regulator); in hub_power_ctrl()
68 ret = regulator_enable(hisi_hikey_usb->regulator); in hub_power_ctrl()
70 ret = regulator_disable(hisi_hikey_usb->regulator); in hub_power_ctrl()
153 struct regulator *regulator; in hisi_hikey_usb_parse_kirin970() local
155 regulator = devm_regulator_get(&pdev->dev, "hub-vdd"); in hisi_hikey_usb_parse_kirin970()
156 if (IS_ERR(regulator)) { in hisi_hikey_usb_parse_kirin970()
157 if (PTR_ERR(regulator) == -EPROBE_DEFER) { in hisi_hikey_usb_parse_kirin970()
160 return PTR_ERR(regulator); in hisi_hikey_usb_parse_kirin970()
164 PTR_ERR(regulator)); in hisi_hikey_usb_parse_kirin970()
165 return PTR_ERR(regulator); in hisi_hikey_usb_parse_kirin970()
167 hisi_hikey_usb->regulator = regulator; in hisi_hikey_usb_parse_kirin970()