Lines Matching refs:regulator_desc
3610 regulator_register(const struct regulator_desc *regulator_desc, in regulator_register() argument
3621 if (regulator_desc == NULL || cfg == NULL) in regulator_register()
3627 if (regulator_desc->name == NULL || regulator_desc->ops == NULL) in regulator_register()
3630 if (regulator_desc->type != REGULATOR_VOLTAGE && in regulator_register()
3631 regulator_desc->type != REGULATOR_CURRENT) in regulator_register()
3635 WARN_ON(regulator_desc->ops->get_voltage && in regulator_register()
3636 regulator_desc->ops->get_voltage_sel); in regulator_register()
3637 WARN_ON(regulator_desc->ops->set_voltage && in regulator_register()
3638 regulator_desc->ops->set_voltage_sel); in regulator_register()
3641 if (regulator_desc->ops->get_voltage_sel && in regulator_register()
3642 !regulator_desc->ops->list_voltage) { in regulator_register()
3645 if (regulator_desc->ops->set_voltage_sel && in regulator_register()
3646 !regulator_desc->ops->list_voltage) { in regulator_register()
3664 init_data = regulator_of_get_init_data(dev, regulator_desc, config, in regulator_register()
3675 rdev->owner = regulator_desc->owner; in regulator_register()
3676 rdev->desc = regulator_desc; in regulator_register()
3728 else if (regulator_desc->supply_name) in regulator_register()
3729 rdev->supply_name = regulator_desc->supply_name; in regulator_register()