Skip to contentSkip to conversation

Regulator: core.c: Fix kerneldoc comments

PATCH New Tamara Diaconita 1 participant 1 message Mar 29, 2017 Voltage and current regulator framework

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Regulator: core.c: Fix kerneldoc comments

Remove the description for the non-existing 'ret' to fix the build
warning: ./drivers/regulator/core.c:1467: warning:
Excess function parameter 'ret' description in 'regulator_dev_lookup'. The description found for the return value is: @ret: 0 on success, -ENODEV if lookup fails permanently, -EPROBE_DEFER if lookup could succeed in the future.

---
Changes since v1:
*Wrap commit messages to less than 80 characters per line.

 drivers/regulator/core.c | 2 --
 1 file changed, 2 deletions(-)
drivers/regulator/core.c +0 -2
index 53d4fc7..219b665 100644
@@ -1451,8 +1451,6 @@ static struct regulator_dev *regulator_lookup_by_name(const char *name)
  * regulator_dev_lookup - lookup a regulator device.
  * @dev: device for regulator "consumer".
  * @supply: Supply name or regulator ID.
- * @ret: 0 on success, -ENODEV if lookup fails permanently, -EPROBE_DEFER if
- * lookup could succeed in the future.
  *
  * If successful, returns a struct regulator_dev that corresponds to the name
  * @supply and with the embedded struct device refcount incremented by one.
Signature · 1 line
2.9.3