Re: [PATCH 2/2] rust: device: implement Device::as_bound()
From: Danilo Krummrich
Date: Tue Jul 15 2025 - 16:30:43 EST
On Sun Jul 13, 2025 at 8:26 PM CEST, Danilo Krummrich wrote:
> Provide an unsafe functions for abstractions to convert a regular
> &Device to a &Device<Bound>.
>
> This is useful for registrations that provide certain guarantees for the
> scope of their callbacks, such as IRQs or certain class device
> registrations (e.g. PWM, miscdevice).
>
> Signed-off-by: Danilo Krummrich <dakr@xxxxxxxxxx>
Applied to driver-core-testing, thanks!
[ Remove unnecessary cast(). - Danilo ]