Skip to content

Commit a555d92

Browse files
Danilo Krummrichjannau
authored andcommitted
rust: platform: implement the dma::Device trait
The platform bus is potentially capable of performing DMA, hence implement the `dma:Device` trait for `platform::Device`. Signed-off-by: Danilo Krummrich <dakr@kernel.org> Signed-off-by: Abdiel Janulgue <abdiel.janulgue@gmail.com>
1 parent bf03c02 commit a555d92

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

rust/kernel/platform.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,3 +319,5 @@ impl AsRef<device::Device> for Device {
319319
&self.0
320320
}
321321
}
322+
323+
impl crate::dma::Device for Device {}

0 commit comments

Comments
 (0)