/Linux-v5.4/drivers/iio/adc/ |
D | max11100.c | 30 struct regulator *vref_reg; member 86 vref_uv = regulator_get_voltage(state->vref_reg); in max11100_read_raw() 126 state->vref_reg = devm_regulator_get(&spi->dev, "vref"); in max11100_probe() 127 if (IS_ERR(state->vref_reg)) in max11100_probe() 128 return PTR_ERR(state->vref_reg); in max11100_probe() 130 ret = regulator_enable(state->vref_reg); in max11100_probe() 141 regulator_disable(state->vref_reg); in max11100_probe() 152 regulator_disable(state->vref_reg); in max11100_remove()
|
/Linux-v5.4/drivers/iio/dac/ |
D | ad5761.c | 64 struct regulator *vref_reg; member 293 st->vref_reg = devm_regulator_get_optional(&st->spi->dev, "vref"); in ad5761_get_vref() 294 if (PTR_ERR(st->vref_reg) == -ENODEV) { in ad5761_get_vref() 307 if (IS_ERR(st->vref_reg)) { in ad5761_get_vref() 310 return PTR_ERR(st->vref_reg); in ad5761_get_vref() 313 ret = regulator_enable(st->vref_reg); in ad5761_get_vref() 320 ret = regulator_get_voltage(st->vref_reg); in ad5761_get_vref() 340 regulator_disable(st->vref_reg); in ad5761_get_vref() 341 st->vref_reg = NULL; in ad5761_get_vref() 388 if (!IS_ERR_OR_NULL(st->vref_reg)) in ad5761_probe() [all …]
|
D | ad5764.c | 55 struct regulator_bulk_data vref_reg[2]; member 217 return regulator_get_voltage(st->vref_reg[channel / 2].consumer); in ad5764_get_channel_vref() 299 st->vref_reg[0].supply = "vrefAB"; in ad5764_probe() 300 st->vref_reg[1].supply = "vrefCD"; in ad5764_probe() 303 ARRAY_SIZE(st->vref_reg), st->vref_reg); in ad5764_probe() 310 ret = regulator_bulk_enable(ARRAY_SIZE(st->vref_reg), in ad5764_probe() 311 st->vref_reg); in ad5764_probe() 329 regulator_bulk_disable(ARRAY_SIZE(st->vref_reg), st->vref_reg); in ad5764_probe() 341 regulator_bulk_disable(ARRAY_SIZE(st->vref_reg), st->vref_reg); in ad5764_remove()
|
D | mcp4922.c | 31 struct regulator *vref_reg; member 132 state->vref_reg = devm_regulator_get(&spi->dev, "vref"); in mcp4922_probe() 133 if (IS_ERR(state->vref_reg)) { in mcp4922_probe() 135 return PTR_ERR(state->vref_reg); in mcp4922_probe() 138 ret = regulator_enable(state->vref_reg); in mcp4922_probe() 145 ret = regulator_get_voltage(state->vref_reg); in mcp4922_probe() 172 regulator_disable(state->vref_reg); in mcp4922_probe() 184 regulator_disable(state->vref_reg); in mcp4922_remove()
|
D | ad7303.c | 42 struct regulator *vref_reg; member 103 return regulator_get_voltage(st->vref_reg); in ad7303_get_vref() 234 st->vref_reg = devm_regulator_get(&spi->dev, "REF"); in ad7303_probe() 235 if (IS_ERR(st->vref_reg)) { in ad7303_probe() 236 ret = PTR_ERR(st->vref_reg); in ad7303_probe() 240 ret = regulator_enable(st->vref_reg); in ad7303_probe() 261 if (st->vref_reg) in ad7303_probe() 262 regulator_disable(st->vref_reg); in ad7303_probe() 275 if (st->vref_reg) in ad7303_remove() 276 regulator_disable(st->vref_reg); in ad7303_remove()
|
D | ltc2632.c | 50 struct regulator *vref_reg; member 249 st->vref_reg = devm_regulator_get_optional(&spi->dev, "vref"); in ltc2632_probe() 250 if (PTR_ERR(st->vref_reg) == -ENODEV) { in ltc2632_probe() 252 st->vref_reg = NULL; in ltc2632_probe() 263 } else if (IS_ERR(st->vref_reg)) { in ltc2632_probe() 266 return PTR_ERR(st->vref_reg); in ltc2632_probe() 269 ret = regulator_enable(st->vref_reg); in ltc2632_probe() 276 st->vref_mv = regulator_get_voltage(st->vref_reg) / 1000; in ltc2632_probe() 306 if (st->vref_reg) in ltc2632_remove() 307 regulator_disable(st->vref_reg); in ltc2632_remove()
|
D | ltc1660.c | 42 struct regulator *vref_reg; member 60 *val = regulator_get_voltage(priv->vref_reg); in ltc1660_read_raw() 174 priv->vref_reg = devm_regulator_get(&spi->dev, "vref"); in ltc1660_probe() 175 if (IS_ERR(priv->vref_reg)) { in ltc1660_probe() 177 return PTR_ERR(priv->vref_reg); in ltc1660_probe() 180 ret = regulator_enable(priv->vref_reg); in ltc1660_probe() 206 regulator_disable(priv->vref_reg); in ltc1660_probe() 217 regulator_disable(priv->vref_reg); in ltc1660_remove()
|
D | max5821.c | 35 struct regulator *vref_reg; member 319 data->vref_reg = devm_regulator_get(&client->dev, "vref"); in max5821_probe() 320 if (IS_ERR(data->vref_reg)) { in max5821_probe() 321 ret = PTR_ERR(data->vref_reg); in max5821_probe() 327 ret = regulator_enable(data->vref_reg); in max5821_probe() 334 ret = regulator_get_voltage(data->vref_reg); in max5821_probe() 353 regulator_disable(data->vref_reg); in max5821_probe() 366 regulator_disable(data->vref_reg); in max5821_remove()
|
D | mcp4725.c | 42 struct regulator *vref_reg; member 322 ret = regulator_get_voltage(data->vref_reg); in mcp4725_read_raw() 445 data->vref_reg = devm_regulator_get(&client->dev, "vref"); in mcp4725_probe() 446 if (IS_ERR(data->vref_reg)) { in mcp4725_probe() 447 err = PTR_ERR(data->vref_reg); in mcp4725_probe() 451 err = regulator_enable(data->vref_reg); in mcp4725_probe() 493 if (data->vref_reg) in mcp4725_probe() 494 regulator_disable(data->vref_reg); in mcp4725_probe() 509 if (data->vref_reg) in mcp4725_remove() 510 regulator_disable(data->vref_reg); in mcp4725_remove()
|
D | ad5449.c | 63 struct regulator_bulk_data vref_reg[AD5449_MAX_VREFS]; member 152 reg = &st->vref_reg[chan->channel]; in ad5449_read_raw() 287 st->vref_reg[i].supply = ad5449_vref_name(st, i); in ad5449_spi_probe() 290 st->vref_reg); in ad5449_spi_probe() 294 ret = regulator_bulk_enable(st->chip_info->num_channels, st->vref_reg); in ad5449_spi_probe() 325 regulator_bulk_disable(st->chip_info->num_channels, st->vref_reg); in ad5449_spi_probe() 337 regulator_bulk_disable(st->chip_info->num_channels, st->vref_reg); in ad5449_spi_remove()
|
D | ad5380.c | 59 struct regulator *vref_reg; member 402 st->vref_reg = devm_regulator_get(dev, "vref"); in ad5380_probe() 403 if (!IS_ERR(st->vref_reg)) { in ad5380_probe() 404 ret = regulator_enable(st->vref_reg); in ad5380_probe() 411 ret = regulator_get_voltage(st->vref_reg); in ad5380_probe() 436 if (!IS_ERR(st->vref_reg)) in ad5380_probe() 437 regulator_disable(st->vref_reg); in ad5380_probe() 453 if (!IS_ERR(st->vref_reg)) { in ad5380_remove() 454 regulator_disable(st->vref_reg); in ad5380_remove()
|
D | ad5360.c | 76 struct regulator_bulk_data vref_reg[3]; member 187 return regulator_get_voltage(st->vref_reg[i].consumer); in ad5360_get_channel_vref() 489 st->vref_reg[i].supply = ad5360_vref_name[i]; in ad5360_probe() 492 st->vref_reg); in ad5360_probe() 498 ret = regulator_bulk_enable(st->chip_info->num_vrefs, st->vref_reg); in ad5360_probe() 513 regulator_bulk_disable(st->chip_info->num_vrefs, st->vref_reg); in ad5360_probe() 529 regulator_bulk_disable(st->chip_info->num_vrefs, st->vref_reg); in ad5360_remove()
|
D | ad5064.c | 107 struct regulator_bulk_data vref_reg[AD5064_MAX_VREFS]; member 312 return regulator_get_voltage(st->vref_reg[i].consumer); in ad5064_get_vref() 818 st->vref_reg[i].supply = ad5064_vref_name(st, i); in ad5064_request_vref() 822 st->vref_reg); in ad5064_request_vref() 829 st->vref_reg[0].consumer = devm_regulator_get_optional(dev, "vref"); in ad5064_request_vref() 830 if (!IS_ERR(st->vref_reg[0].consumer)) in ad5064_request_vref() 833 ret = PTR_ERR(st->vref_reg[0].consumer); in ad5064_request_vref() 872 ret = regulator_bulk_enable(ad5064_num_vref(st), st->vref_reg); in ad5064_probe() 899 regulator_bulk_disable(ad5064_num_vref(st), st->vref_reg); in ad5064_probe() 912 regulator_bulk_disable(ad5064_num_vref(st), st->vref_reg); in ad5064_remove()
|
/Linux-v5.4/Documentation/devicetree/bindings/iio/dac/ |
D | ltc1660.txt | 20 vref-supply = <&vref_reg>;
|
/Linux-v5.4/Documentation/devicetree/bindings/iio/adc/ |
D | mcp3911.txt | 28 vref-supply = <&vref_reg>;
|
D | mcp320x.txt | 55 vref-supply = <&vref_reg>;
|
/Linux-v5.4/Documentation/devicetree/bindings/regulator/ |
D | pfuze100.txt | 98 vref_reg: vrefddr { 187 vref_reg: vrefddr { 282 vref_reg: vrefddr {
|
/Linux-v5.4/arch/arm/boot/dts/ |
D | imx6sx-sdb.dts | 63 vref_reg: vrefddr { label
|
D | imx6qdl-wandboard-revd1.dtsi | 90 vref_reg: vrefddr { label
|
D | imx6sx-sdb-reva.dts | 77 vref_reg: vrefddr { label
|
D | imx7-tqma7.dtsi | 78 vref_reg: vrefddr { label
|
D | imx7d-cl-som-imx7.dts | 134 vref_reg: vrefddr { label
|
D | imx7d-zii-rmu2.dts | 134 vref_reg: vrefddr { label
|
D | imx6-logicpd-som.dtsi | 115 vref_reg: vrefddr { label
|
/Linux-v5.4/arch/arm64/boot/dts/freescale/ |
D | imx8mq-sr-som.dtsi | 89 vref_reg: vrefddr { label
|