Re: [PATCH v3] rust: regulator: add a bare minimum regulator abstraction

From: Mark Brown
Date: Mon May 19 2025 - 05:55:50 EST


On Sun, May 18, 2025 at 09:49:00PM +0900, Alexandre Courbot wrote:

> What things that are possible with the C API do you think should *not*
> ever be done? That's typically around these kind of restrictions that
> Rust abstractions should be designed, so you cannot end up in any
> undesired state no matter what sequence of methods you call.

There's nothing that should *never* be used, but there's a bunch of
things like _is_enabled() and _get_optional() where the uses are
specialist and people are far too enthusiastic about using them.

Attachment: signature.asc
Description: PGP signature