Re: [PATCH v3 3/3] rust: miscdevice: Provide accessor to pull out miscdevice::this_device

From: Lee Jones
Date: Fri Dec 13 2024 - 11:52:30 EST


On Tue, 10 Dec 2024, Alice Ryhl wrote:

> From: Lee Jones <lee@xxxxxxxxxx>
>
> 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@xxxxxxxxxx>
> Signed-off-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
> ---
> rust/kernel/miscdevice.rs | 11 +++++++++++
> 1 file changed, 11 insertions(+)

This might be superfluous, but:

Tested-by: Lee Jones <lee@xxxxxxxxxx>

--
Lee Jones [李琼斯]