Commit 284ae0be authored by Lee Jones's avatar Lee Jones Committed by Greg Kroah-Hartman
Browse files

rust: miscdevice: Provide accessor to pull out miscdevice::this_device



There are situations where a pointer to a `struct device` will become
necessary (e.g. for calling into dev_*() functions).  This accessor
allows callers to pull this out from the `struct miscdevice`.

Signed-off-by: default avatarLee Jones <lee@kernel.org>
Signed-off-by: default avatarAlice Ryhl <aliceryhl@google.com>
Tested-by: default avatarLee Jones <lee@kernel.org>
Reviewed-by: default avatarDanilo Krummrich <dakr@kernel.org>
Link: https://lore.kernel.org/r/20241210-miscdevice-file-param-v3-3-b2a79b666dc5@google.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 88441d5c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment