Lines Matching refs:reg_vref
105 struct regulator *reg_vref; member
286 if (priv->reg_vref) { in ads1298_get_scale()
287 ret = regulator_get_voltage(priv->reg_vref); in ads1298_get_scale()
629 if (!priv->reg_vref) { in ads1298_init()
660 priv->reg_vref = devm_regulator_get_optional(dev, "vref"); in ads1298_probe()
661 if (IS_ERR(priv->reg_vref)) { in ads1298_probe()
662 if (PTR_ERR(priv->reg_vref) != -ENODEV) in ads1298_probe()
663 return dev_err_probe(dev, PTR_ERR(priv->reg_vref), in ads1298_probe()
666 priv->reg_vref = NULL; in ads1298_probe()
668 ret = regulator_enable(priv->reg_vref); in ads1298_probe()
672 ret = devm_add_action_or_reset(dev, ads1298_reg_disable, priv->reg_vref); in ads1298_probe()