Lines Matching refs:ctrl_reg
326 struct regulator *ctrl_reg) in vctrl_init_vtable() argument
335 n_voltages = regulator_count_voltages(ctrl_reg); in vctrl_init_vtable()
341 ctrl_uV = regulator_list_voltage(ctrl_reg, i); in vctrl_init_vtable()
361 ctrl_uV = regulator_list_voltage(ctrl_reg, i); in vctrl_init_vtable()
453 struct regulator *ctrl_reg; in vctrl_probe() local
468 ctrl_reg = devm_regulator_get(&pdev->dev, "ctrl"); in vctrl_probe()
469 if (IS_ERR(ctrl_reg)) in vctrl_probe()
470 return PTR_ERR(ctrl_reg); in vctrl_probe()
480 if ((regulator_get_linear_step(ctrl_reg) == 1) || in vctrl_probe()
481 (regulator_count_voltages(ctrl_reg) == -EINVAL)) { in vctrl_probe()
498 ret = vctrl_init_vtable(pdev, ctrl_reg); in vctrl_probe()
503 ctrl_uV = regulator_get_voltage(ctrl_reg); in vctrl_probe()
527 devm_regulator_put(ctrl_reg); in vctrl_probe()