Lines Matching full:vio
131 * @vio: regulator controlling VIO
144 struct regulator *vio; member
524 gp2ap002->vio = devm_regulator_get(dev, "vio"); in gp2ap002_probe()
525 if (IS_ERR(gp2ap002->vio)) in gp2ap002_probe()
526 return dev_err_probe(dev, PTR_ERR(gp2ap002->vio), in gp2ap002_probe()
527 "failed to get VIO regulator\n"); in gp2ap002_probe()
536 /* VIO should be between 1.65V and VDD */ in gp2ap002_probe()
542 ret = regulator_set_voltage(gp2ap002->vio, 1650000, ret); in gp2ap002_probe()
544 dev_err(dev, "failed to set VIO voltage\n"); in gp2ap002_probe()
553 ret = regulator_enable(gp2ap002->vio); in gp2ap002_probe()
555 dev_err(dev, "failed to enable VIO regulator\n"); in gp2ap002_probe()
615 regulator_disable(gp2ap002->vio); in gp2ap002_probe()
631 regulator_disable(gp2ap002->vio); in gp2ap002_remove()
654 regulator_disable(gp2ap002->vio); in gp2ap002_runtime_suspend()
671 ret = regulator_enable(gp2ap002->vio); in gp2ap002_runtime_resume()
673 dev_err(dev, "failed to enable VIO regulator in resume path\n"); in gp2ap002_runtime_resume()