]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
rust: pwm: Update ARef and AlwaysRefCounted imports to use sync::aref
authorShankari Anand <shankari.ak0208@gmail.com>
Sun, 23 Nov 2025 09:24:34 +0000 (14:54 +0530)
committerUwe Kleine-König <ukleinek@kernel.org>
Tue, 20 Jan 2026 17:38:05 +0000 (18:38 +0100)
Update call sites in `pwm.rs` 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: Benno Lossin <lossin@kernel.org>
Link: https://github.com/Rust-for-Linux/linux/issues/1173
Signed-off-by: Shankari Anand <shankari.ak0208@gmail.com>
Acked-by: Michal Wilczynski <m.wilczynski@samsung.com>
Link: https://patch.msgid.link/20251123092438.182251-7-shankari.ak0208@gmail.com
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
rust/kernel/pwm.rs

index cb00f8a8765c8ec58ed78a73275b022b02bf7aa3..1605d13d5d64aa593f5dd126a256d09779c1e2b2 100644 (file)
@@ -13,7 +13,8 @@ use crate::{
     devres,
     error::{self, to_result},
     prelude::*,
-    types::{ARef, AlwaysRefCounted, Opaque}, //
+    sync::aref::{ARef, AlwaysRefCounted},
+    types::Opaque, //
 };
 use core::{marker::PhantomData, ptr::NonNull};