Lines Matching full:vref
51 struct regulator *vref; member
254 regulator_disable(info->vref); in rockchip_saradc_regulator_disable()
314 regulator_unregister_notifier(info->vref, &info->nb); in rockchip_saradc_regulator_unreg_notifier()
396 info->vref = devm_regulator_get(&pdev->dev, "vref"); in rockchip_saradc_probe()
397 if (IS_ERR(info->vref)) { in rockchip_saradc_probe()
399 PTR_ERR(info->vref)); in rockchip_saradc_probe()
400 return PTR_ERR(info->vref); in rockchip_saradc_probe()
416 ret = regulator_enable(info->vref); in rockchip_saradc_probe()
418 dev_err(&pdev->dev, "failed to enable vref regulator\n"); in rockchip_saradc_probe()
429 ret = regulator_get_voltage(info->vref); in rockchip_saradc_probe()
476 ret = regulator_register_notifier(info->vref, &info->nb); in rockchip_saradc_probe()
497 regulator_disable(info->vref); in rockchip_saradc_suspend()
508 ret = regulator_enable(info->vref); in rockchip_saradc_resume()