Lines Matching full:vref
77 struct regulator *vref[8]; member
195 unsigned int vref; in rcar_gyroadc_read_raw() local
203 consumer = priv->vref[0]; in rcar_gyroadc_read_raw()
205 consumer = priv->vref[chan->channel]; in rcar_gyroadc_read_raw()
240 vref = regulator_get_voltage(consumer); in rcar_gyroadc_read_raw()
241 *val = vref / 1000; in rcar_gyroadc_read_raw()
336 struct regulator *vref; in rcar_gyroadc_parse_subdevs() local
408 vref = devm_regulator_get(dev, "vref"); in rcar_gyroadc_parse_subdevs()
410 if (IS_ERR(vref)) { in rcar_gyroadc_parse_subdevs()
411 dev_dbg(dev, "Channel %i 'vref' supply not connected.\n", in rcar_gyroadc_parse_subdevs()
413 return PTR_ERR(vref); in rcar_gyroadc_parse_subdevs()
416 priv->vref[reg] = vref; in rcar_gyroadc_parse_subdevs()
455 if (!priv->vref[i]) in rcar_gyroadc_deinit_supplies()
458 regulator_disable(priv->vref[i]); in rcar_gyroadc_deinit_supplies()
470 if (!priv->vref[i]) in rcar_gyroadc_init_supplies()
473 ret = regulator_enable(priv->vref[i]); in rcar_gyroadc_init_supplies()