@@ -114,7 +114,7 @@ unsafe impl<T: IntoGEMObject> AlwaysRefCounted for T {
114114 }
115115}
116116
117- extern "C" fn open_callback < T : DriverObject > (
117+ extern "C" fn open_callback < T : BaseDriverObject > (
118118 raw_obj : * mut bindings:: drm_gem_object ,
119119 raw_file : * mut bindings:: drm_file ,
120120) -> core:: ffi:: c_int {
@@ -131,7 +131,7 @@ extern "C" fn open_callback<T: DriverObject>(
131131 }
132132}
133133
134- extern "C" fn close_callback < T : DriverObject > (
134+ extern "C" fn close_callback < T : BaseDriverObject > (
135135 raw_obj : * mut bindings:: drm_gem_object ,
136136 raw_file : * mut bindings:: drm_file ,
137137) {
@@ -186,7 +186,7 @@ pub trait BaseObject: IntoGEMObject {
186186 where
187187 Self : AllocImpl < Driver = D > ,
188188 D : drm:: Driver < Object = O , File = F > ,
189- F : drm:: file:: DriverFile < Driver = D > ,
189+ F : drm:: file:: DriverFile ,
190190 O : BaseDriverObject < Object = Self > ,
191191 {
192192 let mut handle: u32 = 0 ;
@@ -202,7 +202,7 @@ pub trait BaseObject: IntoGEMObject {
202202 where
203203 Self : AllocImpl < Driver = D > ,
204204 D : drm:: Driver < Object = O , File = F > ,
205- F : drm:: file:: DriverFile < Driver = D > ,
205+ F : drm:: file:: DriverFile ,
206206 O : BaseDriverObject < Object = Self > ,
207207 {
208208 // SAFETY: The arguments are all valid per the type invariants.
@@ -280,14 +280,14 @@ impl<T: IntoGEMObject> BaseObjectPrivate for T {}
280280/// - `self.dev` is always a valid pointer to a `struct drm_device`.
281281#[ repr( C ) ]
282282#[ pin_data]
283- pub struct Object < T : DriverObject + Send + Sync > {
283+ pub struct Object < T : BaseDriverObject + Send + Sync > {
284284 obj : Opaque < bindings:: drm_gem_object > ,
285285 dev : NonNull < drm:: Device < T :: Driver > > ,
286286 #[ pin]
287287 data : T ,
288288}
289289
290- impl < T : DriverObject > Object < T > {
290+ impl < T : BaseDriverObject > Object < T > {
291291 const OBJECT_FUNCS : bindings:: drm_gem_object_funcs = bindings:: drm_gem_object_funcs {
292292 free : Some ( Self :: free_callback) ,
293293 open : Some ( open_callback :: < T > ) ,
@@ -381,7 +381,7 @@ impl<T: BaseDriverObject> Deref for Object<T> {
381381 }
382382}
383383
384- impl < T : DriverObject > AllocImpl for Object < T > {
384+ impl < T : BaseDriverObject > AllocImpl for Object < T > {
385385 type Driver = T :: Driver ;
386386
387387 const ALLOC_OPS : AllocOps = AllocOps {
0 commit comments