diff options
author | 2024-10-08 18:07:01 +0200 | |
---|---|---|
committer | 2024-10-22 20:49:13 +0100 | |
commit | cd7a38c40b231350a3cd0fd774f4e6bb68c4b411 (patch) | |
tree | e2ded8453f44613976e8990afdca7b3b5283e338 /scripts/lib/kdoc/kdoc_parser.py | |
parent | Linux 6.12-rc4 (diff) | |
download | linux-rng-cd7a38c40b231350a3cd0fd774f4e6bb68c4b411.tar.xz linux-rng-cd7a38c40b231350a3cd0fd774f4e6bb68c4b411.zip |
regulator: core: do not silently ignore provided init_data
On DT platforms, if a regulator init_data is provided in config, it is
silently ignored in favor of the DT parsing done by the framework, if
of_match is set.
of_match is an indication that init_data is expected to be set based on DT
and the parsing should be done by the regulator framework.
If the regulator provider passed init_data it must be because it is useful
somehow, in such case of_match should be clear.
If the driver expects the framework to initialize this data on its
own, it should leave init_data clear.
Warn if both init_data and of_match are set, then default to the provided
init_data.
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://patch.msgid.link/20241008-regulator-ignored-data-v2-1-d1251e0ee507@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions