summaryrefslogtreecommitdiff
path: root/drivers/regulator/helpers.c
diff options
context:
space:
mode:
authorChiYuan Huang <cy_huang@richtek.com>2023-06-16 05:08:18 +0300
committerMark Brown <broonie@kernel.org>2023-06-16 14:56:16 +0300
commitd3b555e563a0ac80383b66f4ffd8bee2f6272779 (patch)
treee8b90b6160a3c1bc6e326e490f8fbdf5b4bce234 /drivers/regulator/helpers.c
parentd2b2613d363d3104179d389623e7c5df81d38cc4 (diff)
downloadlinux-d3b555e563a0ac80383b66f4ffd8bee2f6272779.tar.xz
regulator: helper: Document ramp_delay parameter of regulator_set_ramp_delay_regmap()
With W=1: drivers/regulator/helpers.c:947: warning: Function parameter or member 'ramp_delay' not described in 'regulator_set_ramp_delay_regmap' Fix it by documenting the parameter. Fixes: fb8fee9efdcf ("regulator: Add regmap helper for ramp-delay setting") Signed-off-by: ChiYuan Huang <cy_huang@richtek.com> Link: https://lore.kernel.org/r/1686881298-28333-1-git-send-email-cy_huang@richtek.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/helpers.c')
-rw-r--r--drivers/regulator/helpers.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/helpers.c b/drivers/regulator/helpers.c
index 586f42e378ee..e6c999ba3fa2 100644
--- a/drivers/regulator/helpers.c
+++ b/drivers/regulator/helpers.c
@@ -952,6 +952,7 @@ EXPORT_SYMBOL_GPL(regulator_find_closest_bigger);
* regulator_set_ramp_delay_regmap - set_ramp_delay() helper
*
* @rdev: regulator to operate on
+ * @ramp_delay: ramp-rate value given in units V/S (uV/uS)
*
* Regulators that use regmap for their register I/O can set the ramp_reg
* and ramp_mask fields in their descriptor and then use this as their