]> git.ipfire.org Git - thirdparty/linux.git/commit
rust: auxiliary: consider auxiliary devices always have a parent
authorDanilo Krummrich <dakr@kernel.org>
Mon, 20 Oct 2025 22:34:25 +0000 (00:34 +0200)
committerDanilo Krummrich <dakr@kernel.org>
Wed, 29 Oct 2025 17:29:32 +0000 (18:29 +0100)
commit589b061975db3c7e87b819cc9a8006eb99ac4b5f
tree838952fca95ab6006909560fa441bca6eabccfb6
parent6f61a2637abe4f89877da3280775565baedb60e0
rust: auxiliary: consider auxiliary devices always have a parent

An auxiliary device is guaranteed to always have a parent device (both
in C and Rust), hence don't return an Option<&auxiliary::Device> in
auxiliary::Device::parent().

Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
drivers/gpu/drm/nova/file.rs
rust/kernel/auxiliary.rs
samples/rust/rust_driver_auxiliary.rs