diff --git a/embassy-stm32/src/ospi/mod.rs b/embassy-stm32/src/ospi/mod.rs index 398c3298f..c25ac4d24 100644 --- a/embassy-stm32/src/ospi/mod.rs +++ b/embassy-stm32/src/ospi/mod.rs @@ -969,17 +969,6 @@ fn finish_dma(regs: Regs) { }); } -trait RegsExt { - fn dr_ptr(&self) -> *mut W; -} - -impl RegsExt for Regs { - fn dr_ptr(&self) -> *mut W { - let dr = self.dr(); - dr.as_ptr() as *mut W - } -} - pub(crate) trait SealedInstance { const REGS: Regs; }