Re: [PATCH 1/2] rust: usb: add basic USB abstractions

From: Danilo Krummrich

Date: Tue Sep 23 2025 - 10:42:16 EST


On 9/23/25 4:37 PM, Greg Kroah-Hartman wrote:
> Yes, you are right, it can be gotten that way. But I can't wait to see
> how you wrap that C macro in rust :)

We can either create a Rust helper function for it, or just re-implement it; in
the end it boils down to just a container_of() on the parent device.