Lines Matching full:vref
128 struct regulator *vref; member
308 if (st->vref) in ad799x_read_raw()
309 ret = regulator_get_voltage(st->vref); in ad799x_read_raw()
814 st->vref = devm_regulator_get_optional(&client->dev, "vref"); in ad799x_probe()
816 if (IS_ERR(st->vref)) { in ad799x_probe()
817 if (PTR_ERR(st->vref) == -ENODEV) { in ad799x_probe()
818 st->vref = NULL; in ad799x_probe()
821 ret = PTR_ERR(st->vref); in ad799x_probe()
826 if (st->vref) { in ad799x_probe()
834 ret = regulator_enable(st->vref); in ad799x_probe()
838 st->vref = NULL; in ad799x_probe()
885 if (st->vref) in ad799x_probe()
886 regulator_disable(st->vref); in ad799x_probe()
901 if (st->vref) in ad799x_remove()
902 regulator_disable(st->vref); in ad799x_remove()
912 if (st->vref) in ad799x_suspend()
913 regulator_disable(st->vref); in ad799x_suspend()
931 if (st->vref) { in ad799x_resume()
932 ret = regulator_enable(st->vref); in ad799x_resume()
935 dev_err(dev, "Unable to enable vref regulator\n"); in ad799x_resume()
943 if (st->vref) in ad799x_resume()
944 regulator_disable(st->vref); in ad799x_resume()