Lines Matching refs:desc
113 if (rdev->desc->vsel_reg == RT4803_REG_VSELL) in rt4803_set_suspend_voltage()
118 vsel = (uV - rdev->desc->min_uV) / rdev->desc->uV_step; in rt4803_set_suspend_voltage()
156 struct regulator_desc *desc; in rt4803_probe() local
162 desc = devm_kzalloc(dev, sizeof(*desc), GFP_KERNEL); in rt4803_probe()
163 if (!desc) in rt4803_probe()
177 desc->name = "rt4803-regulator"; in rt4803_probe()
178 desc->type = REGULATOR_VOLTAGE; in rt4803_probe()
179 desc->owner = THIS_MODULE; in rt4803_probe()
180 desc->ops = &rt4803_regulator_ops; in rt4803_probe()
181 desc->min_uV = RT4803_VOUT_MINUV; in rt4803_probe()
182 desc->uV_step = RT4803_VOUT_STEPUV; in rt4803_probe()
183 desc->n_voltages = RT4803_VOUT_NUM; in rt4803_probe()
184 desc->vsel_mask = RT4803_VSEL_MASK; in rt4803_probe()
185 desc->of_map_mode = rt4803_of_map_mode; in rt4803_probe()
187 desc->vsel_reg = RT4803_REG_VSELH; in rt4803_probe()
189 desc->vsel_reg = RT4803_REG_VSELL; in rt4803_probe()
193 cfg.init_data = of_get_regulator_init_data(dev, dev_of_node(dev), desc); in rt4803_probe()
195 rdev = devm_regulator_register(dev, desc, &cfg); in rt4803_probe()