Lines Matching full:vref
127 struct regulator *vref; member
302 if (st->vref) in ad799x_read_raw()
303 ret = regulator_get_voltage(st->vref); in ad799x_read_raw()
807 st->vref = devm_regulator_get_optional(&client->dev, "vref"); in ad799x_probe()
809 if (IS_ERR(st->vref)) { in ad799x_probe()
810 if (PTR_ERR(st->vref) == -ENODEV) { in ad799x_probe()
811 st->vref = NULL; in ad799x_probe()
814 ret = PTR_ERR(st->vref); in ad799x_probe()
819 if (st->vref) { in ad799x_probe()
827 ret = regulator_enable(st->vref); in ad799x_probe()
831 st->vref = NULL; in ad799x_probe()
875 if (st->vref) in ad799x_probe()
876 regulator_disable(st->vref); in ad799x_probe()
891 if (st->vref) in ad799x_remove()
892 regulator_disable(st->vref); in ad799x_remove()
902 if (st->vref) in ad799x_suspend()
903 regulator_disable(st->vref); in ad799x_suspend()
921 if (st->vref) { in ad799x_resume()
922 ret = regulator_enable(st->vref); in ad799x_resume()
925 dev_err(dev, "Unable to enable vref regulator\n"); in ad799x_resume()
933 if (st->vref) in ad799x_resume()
934 regulator_disable(st->vref); in ad799x_resume()