diff options
| author | Shankari Anand <shankari.ak0208@gmail.com> | 2025-11-23 14:54:34 +0530 |
|---|---|---|
| committer | Uwe Kleine-König <ukleinek@kernel.org> | 2026-01-20 18:38:05 +0100 |
| commit | 5025569cb63060255834c95ab3779905aecf67b0 (patch) | |
| tree | ade6efbd17508f56fc403eb648c5f8d6d4cd59c8 /rust/kernel | |
| parent | 0a155a8a24ddc647aaf28ce7cdb14af7270c158f (diff) | |
rust: pwm: Update ARef and AlwaysRefCounted imports to use sync::aref
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>
Diffstat (limited to 'rust/kernel')
| -rw-r--r-- | rust/kernel/pwm.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rust/kernel/pwm.rs b/rust/kernel/pwm.rs index cb00f8a8765c..1605d13d5d64 100644 --- a/rust/kernel/pwm.rs +++ b/rust/kernel/pwm.rs @@ -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}; |
