Re: [PATCH RFC 2/3] rust: Add bindings for device properties

From: Miguel Ojeda
Date: Tue Oct 29 2024 - 14:58:06 EST


On Tue, Oct 29, 2024 at 7:48 PM Alice Ryhl <aliceryhl@xxxxxxxxxx> wrote:
>
> One option is to define a trait for integers:

+1, one more thing to consider is whether it makes sense to define a
DT-only trait that holds all the types that can be a device property
(like `bool` too, not just the `Integer`s).

Then we can avoid e.g. `property_read_bool` and simply do it in `property_read`.

Cheers,
Miguel