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>
This commit is contained in:
Danilo Krummrich 2025-10-21 00:34:23 +02:00
commit 6bbaa93912
5 changed files with 7 additions and 7 deletions