aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/xarray.c
diff options
context:
space:
mode:
authorDanilo Krummrich <[email protected]>2025-07-13 18:26:54 +0000
committerDanilo Krummrich <[email protected]>2025-07-15 12:56:56 +0000
commit47e6715bb7ea388a9a3a13d31918827ba3aa3f4a (patch)
tree1a3f529f290c9e1b9cddaf8c84b6a9217313dd1f /rust/helpers/xarray.c
parentrust: devres: provide an accessor for the device (diff)
downloadkernel-47e6715bb7ea388a9a3a13d31918827ba3aa3f4a.tar.gz
kernel-47e6715bb7ea388a9a3a13d31918827ba3aa3f4a.zip
rust: device: implement Device::as_bound()
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). Reviewed-by: Benno Lossin <[email protected]> Link: https://lore.kernel.org/r/[email protected] [ Remove unnecessary cast(). - Danilo ] Signed-off-by: Danilo Krummrich <[email protected]>
Diffstat (limited to 'rust/helpers/xarray.c')
0 files changed, 0 insertions, 0 deletions