diff options
| author | Jonas Karlman <[email protected]> | 2026-07-09 23:02:39 +0000 |
|---|---|---|
| committer | Peng Fan <[email protected]> | 2026-07-12 16:18:32 +0800 |
| commit | 0663b4f553789f8d38220a543116563885693120 (patch) | |
| tree | 1489ab9e163db08b39b80e8d6cd9cb3acd724db0 /tools/scripts | |
| parent | 5badf4e82a529e0212479c1b0f8fd695d0be95be (diff) | |
power: regulator: Add helper to set voltage within an acceptable range
Add regulator_set_value_clamp() that clamps a requested target voltage
to both caller-provided limits and the regulator constraints before
setting the regulator voltage value.
Return -EINVAL when the caller limits cannot be satisfied by the
regulator constraints or when the requested range is invalid.
This helper will initially be used to set vqmmc-supply voltage within an
acceptable range according to SD Standards, i.e. 1.70V-1.95V and
2.7V-3.6V.
Signed-off-by: Jonas Karlman <[email protected]>
Signed-off-by: Peng Fan <[email protected]>
Diffstat (limited to 'tools/scripts')
0 files changed, 0 insertions, 0 deletions
