Skip to contentSkip to conversation

regulator: core: Fix comment for regulator_register()

PATCH Applied Axel Lin 2 participants 2 messages Jan 3, 2013 Voltage and current regulator framework

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 regulator: core: Fix comment for regulator_register()

regulator_register() does not return 0 on success, fix the comment.

---
 drivers/regulator/core.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/regulator/core.c +2 -1
index 9afcdda3..861cda1 100644
@@ -3337,7 +3337,8 @@ static void rdev_init_debugfs(struct regulator_dev *rdev)
  * @config: runtime configuration for 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 *
 regulator_register(const struct regulator_desc *regulator_desc,
Signature · 1 line
1.7.9.5
Applied
#1 lore raw
Quoted 1 line · Axel Lin

regulator_register() does not return 0 on success, fix the comment.

Applied, thanks.