diff options
author | Lee Jones <lee@kernel.org> | 2024-12-10 12:39:02 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-12-16 18:12:34 +0300 |
commit | 284ae0be4dcafff0a154c1e69e7430c144a7ddc2 (patch) | |
tree | 9c51223039af8413237737347f3d62ef4837d52b /rust/helpers/rcu.c | |
parent | 88441d5c6d17211bcbd5b429205b09c25598f756 (diff) | |
download | linux-284ae0be4dcafff0a154c1e69e7430c144a7ddc2.tar.xz |
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: Lee Jones <lee@kernel.org>
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Tested-by: Lee Jones <lee@kernel.org>
Reviewed-by: Danilo Krummrich <dakr@kernel.org>
Link: https://lore.kernel.org/r/20241210-miscdevice-file-param-v3-3-b2a79b666dc5@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'rust/helpers/rcu.c')
0 files changed, 0 insertions, 0 deletions