Re: [PATCH v6 04/13] power: regulator: Add driver voltage clamp callback

Peng Fan <[email protected]>
Newsgroups org.u-boot-project.lists.u-boot
Message-ID <[email protected]>
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]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.