summaryrefslogtreecommitdiff
path: root/rust/kernel
diff options
context:
space:
mode:
authorShankari Anand <shankari.ak0208@gmail.com>2026-01-03 01:57:13 +0530
committerMiguel Ojeda <ojeda@kernel.org>2026-03-15 20:30:29 +0100
commitebbed9d02ece592c3e693db72197afad8de70af8 (patch)
tree8843c9c0dadff9216551a7fa1a68d460d1281808 /rust/kernel
parentdfce283387274446ef5755de7c59baad1da0b93e (diff)
rust: usb: Update AlwaysRefCounted imports to use sync::aref
Update call sites in `usb.rs` to import `AlwaysRefCounted` from `sync::aref` instead of `types`. This aligns with the ongoing effort to move `ARef` and `AlwaysRefCounted` to sync. Suggested-by: Benno Lossin <lossin@kernel.org> Link: https://github.com/Rust-for-Linux/linux/issues/1173 Signed-off-by: Shankari Anand <shankari.ak0208@gmail.com> Link: https://patch.msgid.link/20260102202714.184223-4-shankari.ak0208@gmail.com [ Rebase. - Miguel ] Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'rust/kernel')
-rw-r--r--rust/kernel/usb.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/rust/kernel/usb.rs b/rust/kernel/usb.rs
index 0e1b9a88f4f1..9c17a672cd27 100644
--- a/rust/kernel/usb.rs
+++ b/rust/kernel/usb.rs
@@ -18,10 +18,8 @@ use crate::{
to_result, //
},
prelude::*,
- types::{
- AlwaysRefCounted,
- Opaque, //
- },
+ sync::aref::AlwaysRefCounted,
+ types::Opaque,
ThisModule, //
};
use core::{