regulator: core: add callback to perform runtime init
authorJerome Brunet <jbrunet@baylibre.com>
Tue, 8 Oct 2024 16:07:02 +0000 (18:07 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 22 Oct 2024 19:49:14 +0000 (20:49 +0100)
commitcfcdf395c21eeac4543d2b8fef9d29ae9e4559e9
treee9bcd01dc3bdd912cf7d4acf740014031a71b617
parentcd7a38c40b231350a3cd0fd774f4e6bb68c4b411
regulator: core: add callback to perform runtime init

Provide an initialisation callback to handle runtime parameters.
The idea is similar to the regulator_init() callback, but it provides
regulator specific structures, instead of just the driver specific data.

As an example, this allows the driver to amend the regulator constraints
based on runtime parameters if necessary.

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://patch.msgid.link/20241008-regulator-ignored-data-v2-2-d1251e0ee507@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c
include/linux/regulator/driver.h