Re: [PATCH v3] rust: regulator: add a bare minimum regulator abstraction
From: Alexandre Courbot
Date: Sun May 18 2025 - 08:52:24 EST
On Sun May 18, 2025 at 9:20 PM JST, Mark Brown wrote:
> On Sun, May 18, 2025 at 05:14:41PM +0900, Alexandre Courbot wrote:
>
>> The initial proposal does such clamping by design, but I also suspect
>> the C API behave like it does for good reasons (which I am not familiar
>> enough to be aware of unfortunately).
>
> It's so that if you have multiple logical users within the device (eg,
> an interrupt handler and code for normal operation) they can work
> independently of each other. You could also request the regulator
> multiple times but that's often not idiomatic.
I guess this means that we want to preserve this use-case with Rust as
well?