Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/iio/dac/
Dad7303.c41 struct regulator *vdd_reg; member
105 ret = regulator_get_voltage(st->vdd_reg); in ad7303_get_vref()
214 st->vdd_reg = devm_regulator_get(&spi->dev, "Vdd"); in ad7303_probe()
215 if (IS_ERR(st->vdd_reg)) in ad7303_probe()
216 return PTR_ERR(st->vdd_reg); in ad7303_probe()
218 ret = regulator_enable(st->vdd_reg); in ad7303_probe()
264 regulator_disable(st->vdd_reg); in ad7303_probe()
277 regulator_disable(st->vdd_reg); in ad7303_remove()
Dmcp4725.c41 struct regulator *vdd_reg; member
320 ret = regulator_get_voltage(data->vdd_reg); in mcp4725_read_raw()
436 data->vdd_reg = devm_regulator_get(&client->dev, "vdd"); in mcp4725_probe()
437 if (IS_ERR(data->vdd_reg)) in mcp4725_probe()
438 return PTR_ERR(data->vdd_reg); in mcp4725_probe()
440 err = regulator_enable(data->vdd_reg); in mcp4725_probe()
497 regulator_disable(data->vdd_reg); in mcp4725_probe()
511 regulator_disable(data->vdd_reg); in mcp4725_remove()
/Linux-v5.4/drivers/iio/magnetometer/
Dmag3110.c57 struct regulator *vdd_reg; member
478 data->vdd_reg = devm_regulator_get(&client->dev, "vdd"); in mag3110_probe()
479 if (IS_ERR(data->vdd_reg)) { in mag3110_probe()
480 if (PTR_ERR(data->vdd_reg) == -EPROBE_DEFER) in mag3110_probe()
484 return PTR_ERR(data->vdd_reg); in mag3110_probe()
496 ret = regulator_enable(data->vdd_reg); in mag3110_probe()
559 regulator_disable(data->vdd_reg); in mag3110_probe()
573 regulator_disable(data->vdd_reg); in mag3110_remove()
596 ret = regulator_disable(data->vdd_reg); in mag3110_suspend()
611 ret = regulator_enable(data->vdd_reg); in mag3110_resume()
[all …]
/Linux-v5.4/drivers/opp/
Dti-opp-supply.c285 struct regulator *vdd_reg = data->regulators[0]; in ti_opp_supply_set_opp() local
298 ret = _opp_set_voltage(dev, new_supply_vdd, vdd_uv, vdd_reg, in ti_opp_supply_set_opp()
325 ret = _opp_set_voltage(dev, new_supply_vdd, vdd_uv, vdd_reg, in ti_opp_supply_set_opp()
345 ret = _opp_set_voltage(dev, old_supply_vdd, 0, vdd_reg, in ti_opp_supply_set_opp()
/Linux-v5.4/drivers/iio/accel/
Dmma8452.c111 struct regulator *vdd_reg; member
1540 data->vdd_reg = devm_regulator_get(&client->dev, "vdd"); in mma8452_probe()
1541 if (IS_ERR(data->vdd_reg)) { in mma8452_probe()
1542 if (PTR_ERR(data->vdd_reg) == -EPROBE_DEFER) in mma8452_probe()
1546 return PTR_ERR(data->vdd_reg); in mma8452_probe()
1558 ret = regulator_enable(data->vdd_reg); in mma8452_probe()
1702 regulator_disable(data->vdd_reg); in mma8452_probe()
1723 regulator_disable(data->vdd_reg); in mma8452_remove()
1749 ret = regulator_disable(data->vdd_reg); in mma8452_runtime_suspend()
1764 ret = regulator_enable(data->vdd_reg); in mma8452_runtime_resume()
[all …]
/Linux-v5.4/drivers/clk/tegra/
Dclk-dfll.c269 struct regulator *vdd_reg; member
688 val = regulator_list_hardware_vsel(td->vdd_reg, in dfll_load_i2c_lut()
1532 n_voltages = regulator_count_voltages(td->vdd_reg); in find_vdd_map_entry_exact()
1534 reg_uV = regulator_list_voltage(td->vdd_reg, i); in find_vdd_map_entry_exact()
1560 n_voltages = regulator_count_voltages(td->vdd_reg); in find_vdd_map_entry_min()
1562 reg_uV = regulator_list_voltage(td->vdd_reg, i); in find_vdd_map_entry_min()
1697 regulator_list_voltage(td->vdd_reg, in dfll_build_i2c_lut()
1767 regmap = regulator_get_regmap(td->vdd_reg); in dfll_fetch_i2c_params()
1773 ret = regulator_get_hardware_vsel_register(td->vdd_reg, in dfll_fetch_i2c_params()
1915 td->vdd_reg = devm_regulator_get(td->dev, "vdd-cpu"); in tegra_dfll_register()
[all …]
/Linux-v5.4/drivers/net/ethernet/micrel/
Dks8851.c135 struct regulator *vdd_reg; member
1464 ks->vdd_reg = devm_regulator_get(&spi->dev, "vdd"); in ks8851_probe()
1465 if (IS_ERR(ks->vdd_reg)) { in ks8851_probe()
1466 ret = PTR_ERR(ks->vdd_reg); in ks8851_probe()
1470 ret = regulator_enable(ks->vdd_reg); in ks8851_probe()
1564 regulator_disable(ks->vdd_reg); in ks8851_probe()
1583 regulator_disable(priv->vdd_reg); in ks8851_remove()