]> git.ipfire.org Git - thirdparty/linux.git/commit
rust: devres: provide an accessor for the device
authorDanilo Krummrich <dakr@kernel.org>
Sun, 13 Jul 2025 18:26:53 +0000 (20:26 +0200)
committerDanilo Krummrich <dakr@kernel.org>
Tue, 15 Jul 2025 12:46:13 +0000 (14:46 +0200)
commit85aa5b16fef7040213581df9ff093dae27bf8675
tree85e6b5292347a4db1e4ca285314deff3b577c34d
parent91ae26b06aab476bdd8b56cd99e127f029490330
rust: devres: provide an accessor for the device

Provide an accessor for the Device a Devres instance has been created
with.

For instance, this is useful when registrations want to provide a
&Device<Bound> for a scope that is protected by Devres.

Suggested-by: Benno Lossin <lossin@kernel.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Benno Lossin <lossin@kernel.org>
Link: https://lore.kernel.org/r/20250713182737.64448-1-dakr@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/kernel/devres.rs