Skip to content
Snippets Groups Projects
Commit 91788fc7 authored by Lyude Paul's avatar Lyude Paul
Browse files

fixup! WIP: rust: drm/kms: Add OpaqueCrtc and OpaqueCrtcState

parent d75435c6
No related branches found
No related tags found
Loading
...@@ -454,8 +454,8 @@ impl<T: KmsDriver> AsRawCrtc for OpaqueCrtc<T> { ...@@ -454,8 +454,8 @@ impl<T: KmsDriver> AsRawCrtc for OpaqueCrtc<T> {
} }
} }
// SAFETY: We don't expose Opaque<T> to users before `base` is initialized in Crtc::<T>::new(), so // SAFETY: We don't expose OpaqueCrtc<T> to users before `base` is initialized in Crtc::<T>::new(),
// `raw_mode_obj` always returns a valid poiner to a bindings::drm_mode_object. // so `raw_mode_obj` always returns a valid pointer to a bindings::drm_mode_object.
unsafe impl<T: KmsDriver> ModeObject for OpaqueCrtc<T> { unsafe impl<T: KmsDriver> ModeObject for OpaqueCrtc<T> {
type Driver = T; type Driver = T;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment