提交 0384618a 编写于 作者: A Axel Lin 提交者: Mark Brown

regulator: core: Fix comment for regulator_register()

regulator_register() does not return 0 on success, fix the comment.
Signed-off-by: NAxel Lin <axel.lin@ingics.com>
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 19280e40
...@@ -3321,7 +3321,8 @@ static void rdev_init_debugfs(struct regulator_dev *rdev) ...@@ -3321,7 +3321,8 @@ static void rdev_init_debugfs(struct regulator_dev *rdev)
* @config: runtime configuration for regulator * @config: runtime configuration for regulator
* *
* Called by regulator drivers to register a regulator. * Called by regulator drivers to register a regulator.
* Returns 0 on success. * Returns a valid pointer to struct regulator_dev on success
* or an ERR_PTR() on error.
*/ */
struct regulator_dev * struct regulator_dev *
regulator_register(const struct regulator_desc *regulator_desc, regulator_register(const struct regulator_desc *regulator_desc,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册