devm_regulator_register
The interface has the following parameters.
- Synopsis:
struct regulator_dev *devm_regulator_register(struct device *dev, const struct regulator_desc *regulator_desc, const struct regulator_config *config);
- Description: Register regulator.
- Parameter:
- dev: The target i2c device
- regulator_desc: The regulator information provided by PMIC
- config: The configuration information of regulator.
- Return:
- Success: 0.
- Fail: Error code.