rust: miscdevice: update ARef import to sync::aref

Update the import of `ARef` in misc_device sample to use
`sync::aref` instead of `types`.

This is part of the ongoing effort to move `ARef` and
`AlwaysRefCounted` to the `sync` module for better modularity
and type organization.

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>
Reviewed-by: Benno Lossin <lossin@kernel.org>
Link: https://lore.kernel.org/r/20250818132806.134248-1-shankari.ak0208@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Shankari Anand 2025-08-18 18:58:06 +05:30 committed by Greg Kroah-Hartman
parent 89fb7d737f
commit 9e57dbcbde
1 changed files with 1 additions and 2 deletions

View File

@ -105,8 +105,7 @@
miscdevice::{MiscDevice, MiscDeviceOptions, MiscDeviceRegistration}, miscdevice::{MiscDevice, MiscDeviceOptions, MiscDeviceRegistration},
new_mutex, new_mutex,
prelude::*, prelude::*,
sync::Mutex, sync::{aref::ARef, Mutex},
types::ARef,
uaccess::{UserSlice, UserSliceReader, UserSliceWriter}, uaccess::{UserSlice, UserSliceReader, UserSliceWriter},
}; };