]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
rust: usb: Update AlwaysRefCounted imports to use sync::aref
authorShankari Anand <shankari.ak0208@gmail.com>
Fri, 2 Jan 2026 20:27:13 +0000 (01:57 +0530)
committerMiguel Ojeda <ojeda@kernel.org>
Sun, 15 Mar 2026 19:30:29 +0000 (20:30 +0100)
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>
rust/kernel/usb.rs

index 0e1b9a88f4f1b5c94bb63ccdc2442f1515e86ef2..9c17a672cd275af30401410719eeb190d51b6dce 100644 (file)
@@ -18,10 +18,8 @@ use crate::{
         to_result, //
     },
     prelude::*,
-    types::{
-        AlwaysRefCounted,
-        Opaque, //
-    },
+    sync::aref::AlwaysRefCounted,
+    types::Opaque,
     ThisModule, //
 };
 use core::{