diff options
| author | Jerome Brunet <[email protected]> | 2024-10-08 16:07:01 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2024-10-22 19:49:13 +0000 |
| commit | cd7a38c40b231350a3cd0fd774f4e6bb68c4b411 (patch) | |
| tree | e2ded8453f44613976e8990afdca7b3b5283e338 /drivers/fpga/socfpga-a10.c | |
| parent | Linux 6.12-rc4 (diff) | |
| download | kernel-cd7a38c40b231350a3cd0fd774f4e6bb68c4b411.tar.gz kernel-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 <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/fpga/socfpga-a10.c')
0 files changed, 0 insertions, 0 deletions
