1 // SPDX-License-Identifier: GPL-2.0 or MIT 2 3 use kernel::{ 4 drm::gem, 5 prelude::*, // 6 }; 7 8 use crate::driver::{ 9 TyrDrmDevice, 10 TyrDrmDriver, // 11 }; 12 13 /// GEM Object inner driver data 14 #[pin_data] 15 pub(crate) struct TyrObject {} 16 17 impl gem::DriverObject for TyrObject { 18 type Driver = TyrDrmDriver; 19 type Args = (); 20 21 fn new(_dev: &TyrDrmDevice, _size: usize, _args: ()) -> impl PinInit<Self, Error> { 22 try_pin_init!(TyrObject {}) 23 } 24 } 25