Lines Matching full:vref_reg
44 * @vref_reg: regulator for the reference voltage
50 struct regulator *vref_reg; member
327 st->vref_reg = devm_regulator_get_optional(&spi->dev, "vref"); in ltc2632_probe()
328 if (PTR_ERR(st->vref_reg) == -ENODEV) { in ltc2632_probe()
330 st->vref_reg = NULL; in ltc2632_probe()
341 } else if (IS_ERR(st->vref_reg)) { in ltc2632_probe()
344 return PTR_ERR(st->vref_reg); in ltc2632_probe()
347 ret = regulator_enable(st->vref_reg); in ltc2632_probe()
354 st->vref_mv = regulator_get_voltage(st->vref_reg) / 1000; in ltc2632_probe()
382 if (st->vref_reg) in ltc2632_remove()
383 regulator_disable(st->vref_reg); in ltc2632_remove()