Lines Matching refs: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()
904 if (st->vref) in ad799x_suspend()
905 regulator_disable(st->vref); in ad799x_suspend()
923 if (st->vref) { in ad799x_resume()
924 ret = regulator_enable(st->vref); in ad799x_resume()
935 if (st->vref) in ad799x_resume()
936 regulator_disable(st->vref); in ad799x_resume()