summaryrefslogtreecommitdiff
path: root/rust/kernel/device.rs
diff options
context:
space:
mode:
authorDanilo Krummrich <dakr@kernel.org>2025-04-14 15:18:06 +0200
committerDanilo Krummrich <dakr@kernel.org>2025-04-19 10:54:25 +0200
commitce735e73dd59b169b877cedd0753297c81c2a091 (patch)
tree2d9bc06557bef51a97eb409a4d11a1aa27d9e6b8 /rust/kernel/device.rs
parenta4c9f71e3440dc6e944fa05bb7fcb3949fe5bcd4 (diff)
rust: auxiliary: add auxiliary device / driver abstractions
Implement the basic auxiliary abstractions required to implement a driver matching an auxiliary device. The design and implementation is analogous to PCI and platform and is based on the generic device / driver abstractions. Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Reviewed-by: Alice Ryhl <aliceryhl@google.com> Link: https://lore.kernel.org/r/20250414131934.28418-4-dakr@kernel.org [ Fix typos, `let _ =` => `drop()`, use `kernel::ffi`. - Danilo ] Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'rust/kernel/device.rs')
-rw-r--r--rust/kernel/device.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/rust/kernel/device.rs b/rust/kernel/device.rs
index 0d237cebd65e..40c1f549b0ba 100644
--- a/rust/kernel/device.rs
+++ b/rust/kernel/device.rs
@@ -68,7 +68,6 @@ impl<Ctx: DeviceContext> Device<Ctx> {
}
/// Returns a reference to the parent device, if any.
- #[expect(unused)]
pub(crate) fn parent(&self) -> Option<&Self> {
// SAFETY:
// - By the type invariant `self.as_raw()` is always valid.