Lines Matching full:vref
68 struct regulator *vref[8]; member
181 unsigned int vref; in rcar_gyroadc_read_raw() local
189 consumer = priv->vref[0]; in rcar_gyroadc_read_raw()
191 consumer = priv->vref[chan->channel]; in rcar_gyroadc_read_raw()
226 vref = regulator_get_voltage(consumer); in rcar_gyroadc_read_raw()
227 *val = vref / 1000; in rcar_gyroadc_read_raw()
321 struct regulator *vref; in rcar_gyroadc_parse_subdevs() local
393 vref = devm_regulator_get(dev, "vref"); in rcar_gyroadc_parse_subdevs()
395 if (IS_ERR(vref)) { in rcar_gyroadc_parse_subdevs()
396 dev_dbg(dev, "Channel %i 'vref' supply not connected.\n", in rcar_gyroadc_parse_subdevs()
398 return PTR_ERR(vref); in rcar_gyroadc_parse_subdevs()
401 priv->vref[reg] = vref; in rcar_gyroadc_parse_subdevs()
441 if (!priv->vref[i]) in rcar_gyroadc_deinit_supplies()
444 regulator_disable(priv->vref[i]); in rcar_gyroadc_deinit_supplies()
456 if (!priv->vref[i]) in rcar_gyroadc_init_supplies()
459 ret = regulator_enable(priv->vref[i]); in rcar_gyroadc_init_supplies()