Thread (28 messages) 28 messages, 6 authors, 2024-11-15

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

From: Miguel Ojeda <hidden>
Date: 2024-10-29 18:57:55
Also in: lkml, rust-for-linux

On Tue, Oct 29, 2024 at 7:48 PM Alice Ryhl [off-list ref] 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help