Commit 7e25d84f authored by Shankari Anand's avatar Shankari Anand Committed by Danilo Krummrich
Browse files

rust: dma: Update ARef and AlwaysRefCounted imports from sync::aref



Update call sites in the dma subsystem to import `ARef` and
`AlwaysRefCounted` from `sync::aref` instead of `types`.

This aligns with the ongoing effort to move `ARef` and
`AlwaysRefCounted` to sync.

Suggested-by: default avatarBenno Lossin <lossin@kernel.org>
Link: https://github.com/Rust-for-Linux/linux/issues/1173


Signed-off-by: default avatarShankari Anand <shankari.ak0208@gmail.com>
Link: https://lore.kernel.org/r/20250814104133.350093-1-shankari.ak0208@gmail.com


Signed-off-by: default avatarDanilo Krummrich <dakr@kernel.org>
parent bb9749f3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -9,8 +9,8 @@
    device::{Bound, Core},
    error::{to_result, Result},
    prelude::*,
    sync::aref::ARef,
    transmute::{AsBytes, FromBytes},
    types::ARef,
};

/// Trait to be implemented by DMA capable bus devices.
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@
    dma::{CoherentAllocation, Device, DmaMask},
    pci,
    prelude::*,
    types::ARef,
    sync::aref::ARef,
};

struct DmaSampleDriver {