Lines Matching refs:regulator
23 struct regulator *regulator; member
41 ret = regulator_set_voltage(data->regulator, in update_voltage_constraints()
52 ret = regulator_enable(data->regulator); in update_voltage_constraints()
62 ret = regulator_disable(data->regulator); in update_voltage_constraints()
80 ret = regulator_set_current_limit(data->regulator, in update_current_limit_constraints()
92 ret = regulator_enable(data->regulator); in update_current_limit_constraints()
102 ret = regulator_disable(data->regulator); in update_current_limit_constraints()
259 ret = regulator_set_mode(data->regulator, mode); in set_mode()
301 drvdata->regulator = devm_regulator_get(&pdev->dev, reg_id); in regulator_virtual_probe()
302 if (IS_ERR(drvdata->regulator)) { in regulator_virtual_probe()
303 ret = PTR_ERR(drvdata->regulator); in regulator_virtual_probe()
317 drvdata->mode = regulator_get_mode(drvdata->regulator); in regulator_virtual_probe()
331 regulator_disable(drvdata->regulator); in regulator_virtual_remove()