Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1// SPDX-License-Identifier: GPL-2.0 or MIT
2
3use kernel::{
4 drm::gem,
5 prelude::*, //
6};
7
8use crate::driver::{
9 TyrDrmDevice,
10 TyrDrmDriver, //
11};
12
13/// GEM Object inner driver data
14#[pin_data]
15pub(crate) struct TyrObject {}
16
17impl 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}