Searched refs:vref_reg (Results 1 – 8 of 8) sorted by relevance
/drivers/iio/dac/ |
D | ad5764.c | 56 struct regulator_bulk_data vref_reg[2]; member 218 return regulator_get_voltage(st->vref_reg[channel / 2].consumer); in ad5764_get_channel_vref() 301 st->vref_reg[0].supply = "vrefAB"; in ad5764_probe() 302 st->vref_reg[1].supply = "vrefCD"; in ad5764_probe() 305 ARRAY_SIZE(st->vref_reg), st->vref_reg); in ad5764_probe() 312 ret = regulator_bulk_enable(ARRAY_SIZE(st->vref_reg), in ad5764_probe() 313 st->vref_reg); in ad5764_probe() 331 regulator_bulk_disable(ARRAY_SIZE(st->vref_reg), st->vref_reg); in ad5764_probe() 343 regulator_bulk_disable(ARRAY_SIZE(st->vref_reg), st->vref_reg); in ad5764_remove()
|
D | ad7303.c | 43 struct regulator *vref_reg; member 104 return regulator_get_voltage(st->vref_reg); in ad7303_get_vref() 236 st->vref_reg = devm_regulator_get(&spi->dev, "REF"); in ad7303_probe() 237 if (IS_ERR(st->vref_reg)) { in ad7303_probe() 238 ret = PTR_ERR(st->vref_reg); in ad7303_probe() 242 ret = regulator_enable(st->vref_reg); in ad7303_probe() 263 if (st->vref_reg) in ad7303_probe() 264 regulator_disable(st->vref_reg); in ad7303_probe() 277 if (st->vref_reg) in ad7303_remove() 278 regulator_disable(st->vref_reg); in ad7303_remove()
|
D | mcp4922.c | 41 struct regulator *vref_reg; member 143 state->vref_reg = devm_regulator_get(&spi->dev, "vref"); in mcp4922_probe() 144 if (IS_ERR(state->vref_reg)) { in mcp4922_probe() 146 return PTR_ERR(state->vref_reg); in mcp4922_probe() 149 ret = regulator_enable(state->vref_reg); in mcp4922_probe() 156 ret = regulator_get_voltage(state->vref_reg); in mcp4922_probe() 183 regulator_disable(state->vref_reg); in mcp4922_probe() 195 regulator_disable(state->vref_reg); in mcp4922_remove()
|
D | max5821.c | 38 struct regulator *vref_reg; member 328 data->vref_reg = devm_regulator_get(&client->dev, "vref"); in max5821_probe() 329 if (IS_ERR(data->vref_reg)) { in max5821_probe() 330 ret = PTR_ERR(data->vref_reg); in max5821_probe() 336 ret = regulator_enable(data->vref_reg); in max5821_probe() 343 ret = regulator_get_voltage(data->vref_reg); in max5821_probe() 362 regulator_disable(data->vref_reg); in max5821_probe() 375 regulator_disable(data->vref_reg); in max5821_remove()
|
D | ad5449.c | 64 struct regulator_bulk_data vref_reg[AD5449_MAX_VREFS]; member 153 reg = &st->vref_reg[chan->channel]; in ad5449_read_raw() 289 st->vref_reg[i].supply = ad5449_vref_name(st, i); in ad5449_spi_probe() 292 st->vref_reg); in ad5449_spi_probe() 296 ret = regulator_bulk_enable(st->chip_info->num_channels, st->vref_reg); in ad5449_spi_probe() 327 regulator_bulk_disable(st->chip_info->num_channels, st->vref_reg); in ad5449_spi_probe() 339 regulator_bulk_disable(st->chip_info->num_channels, st->vref_reg); in ad5449_spi_remove()
|
D | ad5380.c | 60 struct regulator *vref_reg; member 404 st->vref_reg = devm_regulator_get(dev, "vref"); in ad5380_probe() 405 if (!IS_ERR(st->vref_reg)) { in ad5380_probe() 406 ret = regulator_enable(st->vref_reg); in ad5380_probe() 413 ret = regulator_get_voltage(st->vref_reg); in ad5380_probe() 438 if (!IS_ERR(st->vref_reg)) in ad5380_probe() 439 regulator_disable(st->vref_reg); in ad5380_probe() 455 if (!IS_ERR(st->vref_reg)) { in ad5380_remove() 456 regulator_disable(st->vref_reg); in ad5380_remove()
|
D | ad5360.c | 77 struct regulator_bulk_data vref_reg[3]; member 188 return regulator_get_voltage(st->vref_reg[i].consumer); in ad5360_get_channel_vref() 491 st->vref_reg[i].supply = ad5360_vref_name[i]; in ad5360_probe() 494 st->vref_reg); in ad5360_probe() 500 ret = regulator_bulk_enable(st->chip_info->num_vrefs, st->vref_reg); in ad5360_probe() 515 regulator_bulk_disable(st->chip_info->num_vrefs, st->vref_reg); in ad5360_probe() 531 regulator_bulk_disable(st->chip_info->num_vrefs, st->vref_reg); in ad5360_remove()
|
D | ad5064.c | 88 struct regulator_bulk_data vref_reg[AD5064_MAX_VREFS]; member 225 return regulator_get_voltage(st->vref_reg[i].consumer); in ad5064_get_vref() 493 st->vref_reg[i].supply = ad5064_vref_name(st, i); in ad5064_probe() 496 st->vref_reg); in ad5064_probe() 509 ret = regulator_bulk_enable(ad5064_num_vref(st), st->vref_reg); in ad5064_probe() 536 regulator_bulk_disable(ad5064_num_vref(st), st->vref_reg); in ad5064_probe() 549 regulator_bulk_disable(ad5064_num_vref(st), st->vref_reg); in ad5064_remove()
|