/Linux-v4.19/drivers/iio/adc/ |
D | max11100.c | 33 struct regulator *vref_reg; member 89 vref_uv = regulator_get_voltage(state->vref_reg); in max11100_read_raw() 129 state->vref_reg = devm_regulator_get(&spi->dev, "vref"); in max11100_probe() 130 if (IS_ERR(state->vref_reg)) in max11100_probe() 131 return PTR_ERR(state->vref_reg); in max11100_probe() 133 ret = regulator_enable(state->vref_reg); in max11100_probe() 144 regulator_disable(state->vref_reg); in max11100_probe() 155 regulator_disable(state->vref_reg); in max11100_remove()
|
/Linux-v4.19/drivers/iio/dac/ |
D | ad5761.c | 65 struct regulator *vref_reg; member 294 st->vref_reg = devm_regulator_get_optional(&st->spi->dev, "vref"); in ad5761_get_vref() 295 if (PTR_ERR(st->vref_reg) == -ENODEV) { in ad5761_get_vref() 308 if (IS_ERR(st->vref_reg)) { in ad5761_get_vref() 311 return PTR_ERR(st->vref_reg); in ad5761_get_vref() 314 ret = regulator_enable(st->vref_reg); in ad5761_get_vref() 321 ret = regulator_get_voltage(st->vref_reg); in ad5761_get_vref() 341 regulator_disable(st->vref_reg); in ad5761_get_vref() 342 st->vref_reg = NULL; in ad5761_get_vref() 389 if (!IS_ERR_OR_NULL(st->vref_reg)) in ad5761_probe() [all …]
|
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() 300 st->vref_reg[0].supply = "vrefAB"; in ad5764_probe() 301 st->vref_reg[1].supply = "vrefCD"; in ad5764_probe() 304 ARRAY_SIZE(st->vref_reg), st->vref_reg); in ad5764_probe() 311 ret = regulator_bulk_enable(ARRAY_SIZE(st->vref_reg), in ad5764_probe() 312 st->vref_reg); in ad5764_probe() 330 regulator_bulk_disable(ARRAY_SIZE(st->vref_reg), st->vref_reg); in ad5764_probe() 342 regulator_bulk_disable(ARRAY_SIZE(st->vref_reg), st->vref_reg); in ad5764_remove()
|
D | mcp4922.c | 41 struct regulator *vref_reg; member 137 state->vref_reg = devm_regulator_get(&spi->dev, "vref"); in mcp4922_probe() 138 if (IS_ERR(state->vref_reg)) { in mcp4922_probe() 140 return PTR_ERR(state->vref_reg); in mcp4922_probe() 143 ret = regulator_enable(state->vref_reg); in mcp4922_probe() 150 ret = regulator_get_voltage(state->vref_reg); in mcp4922_probe() 177 regulator_disable(state->vref_reg); in mcp4922_probe() 189 regulator_disable(state->vref_reg); in mcp4922_remove()
|
D | ad7303.c | 43 struct regulator *vref_reg; member 104 return regulator_get_voltage(st->vref_reg); in ad7303_get_vref() 235 st->vref_reg = devm_regulator_get(&spi->dev, "REF"); in ad7303_probe() 236 if (IS_ERR(st->vref_reg)) { in ad7303_probe() 237 ret = PTR_ERR(st->vref_reg); in ad7303_probe() 241 ret = regulator_enable(st->vref_reg); in ad7303_probe() 262 if (st->vref_reg) in ad7303_probe() 263 regulator_disable(st->vref_reg); in ad7303_probe() 276 if (st->vref_reg) in ad7303_remove() 277 regulator_disable(st->vref_reg); in ad7303_remove()
|
D | ltc2632.c | 51 struct regulator *vref_reg; member 250 st->vref_reg = devm_regulator_get_optional(&spi->dev, "vref"); in ltc2632_probe() 251 if (PTR_ERR(st->vref_reg) == -ENODEV) { in ltc2632_probe() 253 st->vref_reg = NULL; in ltc2632_probe() 264 } else if (IS_ERR(st->vref_reg)) { in ltc2632_probe() 267 return PTR_ERR(st->vref_reg); in ltc2632_probe() 270 ret = regulator_enable(st->vref_reg); in ltc2632_probe() 277 st->vref_mv = regulator_get_voltage(st->vref_reg) / 1000; in ltc2632_probe() 307 if (st->vref_reg) in ltc2632_remove() 308 regulator_disable(st->vref_reg); in ltc2632_remove()
|
D | max5821.c | 38 struct regulator *vref_reg; member 327 data->vref_reg = devm_regulator_get(&client->dev, "vref"); in max5821_probe() 328 if (IS_ERR(data->vref_reg)) { in max5821_probe() 329 ret = PTR_ERR(data->vref_reg); in max5821_probe() 335 ret = regulator_enable(data->vref_reg); in max5821_probe() 342 ret = regulator_get_voltage(data->vref_reg); in max5821_probe() 361 regulator_disable(data->vref_reg); in max5821_probe() 374 regulator_disable(data->vref_reg); in max5821_remove()
|
D | mcp4725.c | 45 struct regulator *vref_reg; member 330 ret = regulator_get_voltage(data->vref_reg); in mcp4725_read_raw() 453 data->vref_reg = devm_regulator_get(&client->dev, "vref"); in mcp4725_probe() 454 if (IS_ERR(data->vref_reg)) { in mcp4725_probe() 455 err = PTR_ERR(data->vref_reg); in mcp4725_probe() 459 err = regulator_enable(data->vref_reg); in mcp4725_probe() 501 if (data->vref_reg) in mcp4725_probe() 502 regulator_disable(data->vref_reg); in mcp4725_probe() 517 if (data->vref_reg) in mcp4725_remove() 518 regulator_disable(data->vref_reg); in mcp4725_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() 288 st->vref_reg[i].supply = ad5449_vref_name(st, i); in ad5449_spi_probe() 291 st->vref_reg); in ad5449_spi_probe() 295 ret = regulator_bulk_enable(st->chip_info->num_channels, st->vref_reg); in ad5449_spi_probe() 326 regulator_bulk_disable(st->chip_info->num_channels, st->vref_reg); in ad5449_spi_probe() 338 regulator_bulk_disable(st->chip_info->num_channels, st->vref_reg); in ad5449_spi_remove()
|
D | ad5380.c | 60 struct regulator *vref_reg; member 403 st->vref_reg = devm_regulator_get(dev, "vref"); in ad5380_probe() 404 if (!IS_ERR(st->vref_reg)) { in ad5380_probe() 405 ret = regulator_enable(st->vref_reg); in ad5380_probe() 412 ret = regulator_get_voltage(st->vref_reg); in ad5380_probe() 437 if (!IS_ERR(st->vref_reg)) in ad5380_probe() 438 regulator_disable(st->vref_reg); in ad5380_probe() 454 if (!IS_ERR(st->vref_reg)) { in ad5380_remove() 455 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() 490 st->vref_reg[i].supply = ad5360_vref_name[i]; in ad5360_probe() 493 st->vref_reg); in ad5360_probe() 499 ret = regulator_bulk_enable(st->chip_info->num_vrefs, st->vref_reg); in ad5360_probe() 514 regulator_bulk_disable(st->chip_info->num_vrefs, st->vref_reg); in ad5360_probe() 530 regulator_bulk_disable(st->chip_info->num_vrefs, st->vref_reg); in ad5360_remove()
|
D | ad5064.c | 108 struct regulator_bulk_data vref_reg[AD5064_MAX_VREFS]; member 311 return regulator_get_voltage(st->vref_reg[i].consumer); in ad5064_get_vref() 832 st->vref_reg[i].supply = ad5064_vref_name(st, i); in ad5064_probe() 835 st->vref_reg); in ad5064_probe() 847 ret = regulator_bulk_enable(ad5064_num_vref(st), st->vref_reg); in ad5064_probe() 874 regulator_bulk_disable(ad5064_num_vref(st), st->vref_reg); in ad5064_probe() 887 regulator_bulk_disable(ad5064_num_vref(st), st->vref_reg); in ad5064_remove()
|
/Linux-v4.19/Documentation/devicetree/bindings/regulator/ |
D | pfuze100.txt | 93 vref_reg: vrefddr { 182 vref_reg: vrefddr { 277 vref_reg: vrefddr {
|
/Linux-v4.19/Documentation/devicetree/bindings/iio/adc/ |
D | mcp320x.txt | 55 vref-supply = <&vref_reg>;
|
/Linux-v4.19/arch/arm/boot/dts/ |
D | imx6sx-sdb.dts | 67 vref_reg: vrefddr { label
|
D | imx6sx-sdb-reva.dts | 81 vref_reg: vrefddr { label
|
D | imx6qdl-wandboard-revd1.dtsi | 95 vref_reg: vrefddr { label
|
D | imx7d-cl-som-imx7.dts | 131 vref_reg: vrefddr { label
|
D | imx6sx-sabreauto.dts | 328 vref_reg: vrefddr { label
|
D | imx6qdl-var-dart.dtsi | 162 vref_reg: vrefddr { label
|
D | imx7d-pico.dtsi | 157 vref_reg: vrefddr { label
|
D | imx6q-mccmon6.dts | 183 vref_reg: vrefddr { label
|
D | imx6sll-evk.dts | 195 vref_reg: vrefddr { label
|
D | imx6q-dmo-edmqmx6.dts | 203 vref_reg: vrefddr { label
|
D | imx6q-gw5400-a.dts | 273 vref_reg: vrefddr { label
|