summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAxel Lin2013-01-03 14:01:47 +0100
committerMark Brown2013-01-03 14:02:39 +0100
commit0384618a79ccfafd05ca1538867764f7c4b7916b (patch)
tree7f2de7250c84a6ad8fd57383f7e0f73e685a9f4b
parentregulator: core: Fix continuous_voltage_range case in regulator_can_change_vo... (diff)
downloadkernel-qcow2-linux-0384618a79ccfafd05ca1538867764f7c4b7916b.tar.gz
kernel-qcow2-linux-0384618a79ccfafd05ca1538867764f7c4b7916b.tar.xz
kernel-qcow2-linux-0384618a79ccfafd05ca1538867764f7c4b7916b.zip
regulator: core: Fix comment for regulator_register()
regulator_register() does not return 0 on success, fix the comment. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r--drivers/regulator/core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index d7448adc7a2c..278584302f2d 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -3321,7 +3321,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,