diff options
author | Chen-Yu Tsai <wenst@chromium.org> | 2024-08-29 16:51:22 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-08-29 14:20:23 +0100 |
commit | 753b9d86adb9d2c5882ac8ee0c3816aa48697eaa (patch) | |
tree | 184a9643c63488edba5e80cba379aef0cf6b05cc /drivers/regulator/da9052-regulator.c | |
parent | caa08dd8cdb8e58bf810e986cd6f9081ad056018 (diff) |
regulator: core: Fix regulator_is_supported_voltage() kerneldoc return value
The kerneldoc for regulator_is_supported_voltage() states that the
return value is a boolean. That is not correct, as it could return an
error number if the check failed.
Fix the description by expanding it to cover the valid return values and
error conditions. The description is also converted to a proper "Return"
section.
Fixes: c5f3939b8fe0 ("regulator: core: Support fixed voltages in regulator_is_supported_voltage()")
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-3-wenst@chromium.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/da9052-regulator.c')
0 files changed, 0 insertions, 0 deletions