Home
last modified time | relevance | path

Searched refs:reg_avdd (Results 1 – 2 of 2) sorted by relevance

/drivers/iio/adc/
Dhx711.c83 struct regulator *reg_avdd; member
501 hx711_data->reg_avdd = devm_regulator_get(dev, "avdd"); in hx711_probe()
502 if (IS_ERR(hx711_data->reg_avdd)) in hx711_probe()
503 return PTR_ERR(hx711_data->reg_avdd); in hx711_probe()
505 ret = regulator_enable(hx711_data->reg_avdd); in hx711_probe()
521 ret = regulator_get_voltage(hx711_data->reg_avdd); in hx711_probe()
578 regulator_disable(hx711_data->reg_avdd); in hx711_probe()
595 regulator_disable(hx711_data->reg_avdd); in hx711_remove()
/drivers/iio/dac/
Dad7293.c144 struct regulator *reg_avdd; member
787 st->reg_avdd = devm_regulator_get(&spi->dev, "avdd"); in ad7293_properties_parse()
788 if (IS_ERR(st->reg_avdd)) in ad7293_properties_parse()
789 return dev_err_probe(&spi->dev, PTR_ERR(st->reg_avdd), in ad7293_properties_parse()
819 ret = regulator_enable(st->reg_avdd); in ad7293_init()
827 st->reg_avdd); in ad7293_init()
843 ret = regulator_get_voltage(st->reg_avdd); in ad7293_init()