Lines Matching full:vref
51 struct regulator *vref; member
108 ret = regulator_get_voltage(info->vref); in rockchip_saradc_read_raw()
238 regulator_disable(info->vref); in rockchip_saradc_regulator_disable()
360 info->vref = devm_regulator_get(&pdev->dev, "vref"); in rockchip_saradc_probe()
361 if (IS_ERR(info->vref)) { in rockchip_saradc_probe()
363 PTR_ERR(info->vref)); in rockchip_saradc_probe()
364 return PTR_ERR(info->vref); in rockchip_saradc_probe()
380 ret = regulator_enable(info->vref); in rockchip_saradc_probe()
382 dev_err(&pdev->dev, "failed to enable vref regulator\n"); in rockchip_saradc_probe()
444 regulator_disable(info->vref); in rockchip_saradc_suspend()
455 ret = regulator_enable(info->vref); in rockchip_saradc_resume()