Lines Matching refs: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()
322 struct regulator *vref; in rcar_gyroadc_parse_subdevs() local
394 vref = devm_regulator_get(dev, "vref"); in rcar_gyroadc_parse_subdevs()
396 if (IS_ERR(vref)) { in rcar_gyroadc_parse_subdevs()
399 ret = PTR_ERR(vref); in rcar_gyroadc_parse_subdevs()
403 priv->vref[reg] = vref; in rcar_gyroadc_parse_subdevs()
450 if (!priv->vref[i]) in rcar_gyroadc_deinit_supplies()
453 regulator_disable(priv->vref[i]); in rcar_gyroadc_deinit_supplies()
465 if (!priv->vref[i]) in rcar_gyroadc_init_supplies()
468 ret = regulator_enable(priv->vref[i]); in rcar_gyroadc_init_supplies()