]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
regulator: fixed-helper: Add missing "Return" kerneldoc section
authorChen-Yu Tsai <wenst@chromium.org>
Thu, 29 Aug 2024 08:51:27 +0000 (16:51 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 29 Aug 2024 13:20:28 +0000 (14:20 +0100)
kernel-doc complains about missing "Return" section for the function
regulator_register_always_on().

Add a "Return" section for it based on its behavior.

Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Reported-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20240829085131.1361701-8-wenst@chromium.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/fixed-helper.c

index 2d5a42b2b3d801e11fc97befd1e077a779b285bc..b6cb0aaac3b1692411dee37d5a0fcc333ebeaa74 100644 (file)
@@ -26,6 +26,8 @@ static void regulator_fixed_release(struct device *dev)
  * @supplies: consumers for this regulator
  * @num_supplies: number of consumers
  * @uv: voltage in microvolts
+ *
+ * Return: Pointer to registered platform device, or %NULL if memory allocation fails.
  */
 struct platform_device *regulator_register_always_on(int id, const char *name,
        struct regulator_consumer_supply *supplies, int num_supplies, int uv)