Lines Matching full:vref
68 struct regulator *vref[8]; member
186 unsigned int vref; in rcar_gyroadc_read_raw() local
194 consumer = priv->vref[0]; in rcar_gyroadc_read_raw()
196 consumer = priv->vref[chan->channel]; in rcar_gyroadc_read_raw()
231 vref = regulator_get_voltage(consumer); in rcar_gyroadc_read_raw()
232 *val = vref / 1000; in rcar_gyroadc_read_raw()
327 struct regulator *vref; in rcar_gyroadc_parse_subdevs() local
399 vref = devm_regulator_get(dev, "vref"); in rcar_gyroadc_parse_subdevs()
401 if (IS_ERR(vref)) { in rcar_gyroadc_parse_subdevs()
402 dev_dbg(dev, "Channel %i 'vref' supply not connected.\n", in rcar_gyroadc_parse_subdevs()
404 ret = PTR_ERR(vref); in rcar_gyroadc_parse_subdevs()
408 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()