Skip to content

Commit e55f45b

Browse files
jbrun3tbroonie
authored andcommitted
regulator: doc: add missing documentation for init_cb
Add comment documenting introduced init_cb. This solves the following warning when building the kernel documentation: ./include/linux/regulator/driver.h:435: warning: Function parameter or struct member 'init_cb' not described in 'regulator_desc' Fixes: cfcdf39 ("regulator: core: add callback to perform runtime init") Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Closes: https://lore.kernel.org/lkml/20241023155120.6c4fea20@canb.auug.org.au/ Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> Link: https://patch.msgid.link/20241023-regulator-doc-fixup-v1-1-ec018742ad73@baylibre.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 5ddc236 commit e55f45b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/linux/regulator/driver.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,11 @@ enum regulator_type {
269269
* config but it cannot store it for later usage.
270270
* Callback should return 0 on success or negative ERRNO
271271
* indicating failure.
272+
* @init_cb: Optional callback called after the parsing of init_data.
273+
* Allows the regulator to perform runtime init if necessary,
274+
* such as synching the regulator and the parsed constraints.
275+
* Callback should return 0 on success or negative ERRNO
276+
* indicating failure.
272277
* @id: Numerical identifier for the regulator.
273278
* @ops: Regulator operations table.
274279
* @irq: Interrupt number for the regulator.

0 commit comments

Comments
 (0)