Skip to content
Snippets Groups Projects
Commit 141318cf authored by Maíra Canal's avatar Maíra Canal Committed by Lyude Paul
Browse files

rust: device: add Device Resource Management abstraction

Create an abstraction to allow Rust drivers to open a new devres group for
the device with a defined id. Moreover, implement the related Drop trait
to release the devres group.

[Lyude: cherry picked from 8e57c7d478ddeabe61c53b6dd01fd326e3256221 from
https://github.com/mairacanal/linux/pull/11

 ]

Signed-off-by: default avatarMaíra Canal <mcanal@igalia.com>
[Rebased]
Signed-off-by: Lyude Paul's avatarLyude Paul <lyude@redhat.com>
parent c07ac449
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment