summaryrefslogtreecommitdiff
path: root/tools/scripts
diff options
context:
space:
mode:
authorJonas Karlman <[email protected]>2026-07-09 23:02:39 +0000
committerPeng Fan <[email protected]>2026-07-12 16:18:32 +0800
commit0663b4f553789f8d38220a543116563885693120 (patch)
tree1489ab9e163db08b39b80e8d6cd9cb3acd724db0 /tools/scripts
parent5badf4e82a529e0212479c1b0f8fd695d0be95be (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