Re: [PATCH v3 2/4] rust: driver: Add ACPI id table support to Adapter trait
From: Miguel Ojeda
Date: Mon Jun 09 2025 - 09:43:12 EST
On Mon, Jun 9, 2025 at 3:09 PM Igor Korotin
<igor.korotin.linux@xxxxxxxxx> wrote:
>
> Let me know if this pattern is acceptable. To my opinion it is not much
> different from the original 2 functions conditioned by #[cfg] and
> requires some nasty changes.
In general, the more local a `cfg` can be made, the better, because we
can share more, e.g. the docs and signature.
But maybe in this case it doesn't work -- what would be the "nasty
changes" required?
Cheers,
Miguel