Lines Matching refs:vref
128 struct regulator *vref; member
307 if (st->vref) in ad799x_read_raw()
308 ret = regulator_get_voltage(st->vref); in ad799x_read_raw()
812 st->vref = devm_regulator_get_optional(&client->dev, "vref"); in ad799x_probe()
814 if (IS_ERR(st->vref)) { in ad799x_probe()
815 if (PTR_ERR(st->vref) == -ENODEV) { in ad799x_probe()
816 st->vref = NULL; in ad799x_probe()
819 ret = PTR_ERR(st->vref); in ad799x_probe()
824 if (st->vref) { in ad799x_probe()
832 ret = regulator_enable(st->vref); in ad799x_probe()
836 st->vref = NULL; in ad799x_probe()
883 if (st->vref) in ad799x_probe()
884 regulator_disable(st->vref); in ad799x_probe()
899 if (st->vref) in ad799x_remove()
900 regulator_disable(st->vref); in ad799x_remove()
910 if (st->vref) in ad799x_suspend()
911 regulator_disable(st->vref); in ad799x_suspend()
929 if (st->vref) { in ad799x_resume()
930 ret = regulator_enable(st->vref); in ad799x_resume()
941 if (st->vref) in ad799x_resume()
942 regulator_disable(st->vref); in ad799x_resume()