Re: [PATCH v3] rust: regulator: add a bare minimum regulator abstraction
From: Daniel Almeida
Date: Mon May 19 2025 - 07:03:37 EST
Minor correction:
> This is explicitly not supported, because (given the current code) why should it be?
>
> If you want a given regulator to be enabled, just make sure you have
> Regulator<Enabled> in your kernel::types::Either container.
>
> You don't need a counter either: Regulator<Enabled> has a count of one, and
> when that goes out of scope, it's decremented.
Regulator<Enabled> has a +1 on the count. The actual underlying count is unknown.
— Daniel