Re: [PATCH v2 2/2] rust: regulator: add devm_enable and devm_enable_optional
From: Mark Brown
Date: Tue Sep 09 2025 - 17:10:33 EST
On Tue, Sep 09, 2025 at 10:15:55AM -0700, Boqun Feng wrote:
> On Tue, Sep 09, 2025 at 06:11:24PM +0100, Mark Brown wrote:
> > The C stubs are all inlined so should have zero impact on the resulting
> > binary (as are all equivalent stubs generally).
> Yeah, but for a rust_helper, right now a function and an exported symbol
> will be generated so that Rust can do FFI. That's the size impact I'm
> talking about. And for regulator, we only have helpers if
> CONFIG_REGULATOR=n.
That seems like it should be solvable on the Rust side in a similar
manner to how it's solved on the C side?
Attachment:
signature.asc
Description: PGP signature