[PATCH v2 3/4] rust: usb: Update AlwaysRefCounted imports to use sync::aref

From: Shankari Anand
Date: Fri Jan 02 2026 - 17:00:32 EST


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@xxxxxxxxxx>
Link: https://github.com/Rust-for-Linux/linux/issues/1173
Signed-off-by: Shankari Anand <shankari.ak0208@xxxxxxxxx>
---
v1 -> v2:

Re-worded the commit title to rust: usb:

Link of v1: https://lore.kernel.org/all/20251123092438.182251-9-shankari.ak0208@xxxxxxxxx/

---
rust/kernel/usb.rs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/rust/kernel/usb.rs b/rust/kernel/usb.rs
index d10b65e9fb6a..79ff2f881572 100644
--- a/rust/kernel/usb.rs
+++ b/rust/kernel/usb.rs
@@ -12,7 +12,8 @@
error::{from_result, to_result, Result},
prelude::*,
str::CStr,
- types::{AlwaysRefCounted, Opaque},
+ sync::aref::AlwaysRefCounted,
+ types::Opaque,
ThisModule,
};
use core::{
--
2.34.1