On Tue, Aug 25, 2026 at 09:04:04PM +0200, Linus Walleij wrote: >The regulator core can clamp a requested voltage against device tree >constraints, but it cannot account for discrete values supported by the >hardware. > >Add an optional set_value_clamp() driver callback. Apply the regulator >constraints in the core before asking the driver to select the closest >supported voltage in the resulting range. Drivers without the callback >retain the existing behavior. > >Signed-off-by: Linus Walleij <[email protected]>
Reviewed-by: Peng Fan <[email protected]>
