]> git.ipfire.org Git - thirdparty/linux.git/commit
samples: rust: auxiliary: illustrate driver interaction
authorDanilo Krummrich <dakr@kernel.org>
Mon, 20 Oct 2025 22:34:30 +0000 (00:34 +0200)
committerDanilo Krummrich <dakr@kernel.org>
Wed, 29 Oct 2025 17:29:32 +0000 (18:29 +0100)
commitb0b7301b004301afe920b3d08caa6171dd3f4011
treee6ee133d6c8601f866e92eb18f0154bede9ea11f
parent710ac546883c2cae6e8e7b5dcf7757b8a49d75a1
samples: rust: auxiliary: illustrate driver interaction

Illustrate how a parent driver of an auxiliary driver can take advantage
of the device context guarantees given by the auxiliary bus and
subsequently safely derive its device private data.

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