]> git.ipfire.org Git - thirdparty/linux.git/commit
rust: device: narrow the generic of drvdata_obtain()
authorDanilo Krummrich <dakr@kernel.org>
Mon, 20 Oct 2025 22:34:23 +0000 (00:34 +0200)
committerDanilo Krummrich <dakr@kernel.org>
Wed, 29 Oct 2025 15:40:28 +0000 (16:40 +0100)
commit6bbaa93912bfdfd5ffdc804275cc6a444c9400af
tree0dfcce7cb635ce77609d8a13275f4c04a70e9f5b
parent37022410f4a3cc11614626a58cd08bcf8ea529e9
rust: device: narrow the generic of drvdata_obtain()

Let T be the actual private driver data type without the surrounding
box, as it leaves less room for potential bugs.

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
rust/kernel/device.rs
rust/kernel/pci.rs
rust/kernel/platform.rs
rust/kernel/usb.rs