Lines Matching refs:vreg
94 struct labibb_regulator *vreg; in qcom_labibb_regulator_probe() local
132 vreg = devm_kzalloc(&pdev->dev, sizeof(*vreg), in qcom_labibb_regulator_probe()
134 if (!vreg) in qcom_labibb_regulator_probe()
137 vreg->regmap = reg_regmap; in qcom_labibb_regulator_probe()
138 vreg->dev = dev; in qcom_labibb_regulator_probe()
139 vreg->base = reg_data->base; in qcom_labibb_regulator_probe()
140 vreg->type = reg_data->type; in qcom_labibb_regulator_probe()
142 memcpy(&vreg->desc, reg_data->desc, sizeof(vreg->desc)); in qcom_labibb_regulator_probe()
143 vreg->desc.of_match = reg_data->name; in qcom_labibb_regulator_probe()
144 vreg->desc.name = reg_data->name; in qcom_labibb_regulator_probe()
146 cfg.dev = vreg->dev; in qcom_labibb_regulator_probe()
147 cfg.driver_data = vreg; in qcom_labibb_regulator_probe()
148 cfg.regmap = vreg->regmap; in qcom_labibb_regulator_probe()
150 vreg->rdev = devm_regulator_register(vreg->dev, &vreg->desc, in qcom_labibb_regulator_probe()
153 if (IS_ERR(vreg->rdev)) { in qcom_labibb_regulator_probe()
156 return PTR_ERR(vreg->rdev); in qcom_labibb_regulator_probe()