mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2026-01-27 12:47:24 +01:00
rust: drm: remove pin annotations from drm::Device
The #[pin_data] and #[pin] annotations are not necessary for
drm::Device, since we don't use any pin-init macros, but only
__pinned_init() on the impl PinInit<T::Data, Error> argument of
drm::Device::new().
Fixes: 1e4b8896c0 ("rust: drm: add device abstraction")
Reviewed-by: Benno Lossin <lossin@kernel.org>
Link: https://lore.kernel.org/r/20250731154919.4132-4-dakr@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
This commit is contained in:
parent
22ab0641b9
commit
0c04a81c1d
|
|
@ -54,10 +54,8 @@ macro_rules! drm_legacy_fields {
|
|||
///
|
||||
/// `self.dev` is a valid instance of a `struct device`.
|
||||
#[repr(C)]
|
||||
#[pin_data]
|
||||
pub struct Device<T: drm::Driver> {
|
||||
dev: Opaque<bindings::drm_device>,
|
||||
#[pin]
|
||||
data: T::Data,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user