]> git.ipfire.org Git - thirdparty/linux.git/commit
rust: auxiliary: implement parent() for Device<Bound>
authorDanilo Krummrich <dakr@kernel.org>
Mon, 20 Oct 2025 22:34:28 +0000 (00:34 +0200)
committerDanilo Krummrich <dakr@kernel.org>
Wed, 29 Oct 2025 17:29:32 +0000 (18:29 +0100)
commit675e514edd659b5cfc15eb70bd8abf53568947cc
treed1878e9025a9064991a2628ff0abf6aced78c90e
parentb69165a09727b653993934d700a02d32a8961327
rust: auxiliary: implement parent() for Device<Bound>

Take advantage of the fact that if the auxiliary device is bound the
parent is guaranteed to be bound as well and implement a separate
parent() method for auxiliary::Device<Bound>.

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