mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 04:21:09 -04:00
drm/tyr: Use DRM device type alias across driver
Currently Tyr defines a convenience type alias for its DRM device type, `TyrDrmDevice` but it does not use the alias outside of `tyr/driver.rs`. Replace `drm::Device<TyrDrmDriver>` with the alias `TyrDrmDevice` across the driver. This change will ease future upstream Tyr development by reducing the diffs when multiple series are touching these files. No functional changes are intended. Signed-off-by: Deborah Brouwer <deborah.brouwer@collabora.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Alice Ryhl <aliceryhl@google.com> Link: https://patch.msgid.link/20260302202331.176140-1-deborah.brouwer@collabora.com Signed-off-by: Alice Ryhl <aliceryhl@google.com>
This commit is contained in:
committed by
Alice Ryhl
parent
17d7c97f73
commit
dd8a93dafe
@@ -7,7 +7,10 @@
|
||||
uapi, //
|
||||
};
|
||||
|
||||
use crate::driver::TyrDrmDriver;
|
||||
use crate::driver::{
|
||||
TyrDrmDevice,
|
||||
TyrDrmDriver, //
|
||||
};
|
||||
|
||||
#[pin_data]
|
||||
pub(crate) struct TyrDrmFileData {}
|
||||
@@ -25,7 +28,7 @@ fn open(_dev: &drm::Device<Self::Driver>) -> Result<Pin<KBox<Self>>> {
|
||||
|
||||
impl TyrDrmFileData {
|
||||
pub(crate) fn dev_query(
|
||||
ddev: &drm::Device<TyrDrmDriver>,
|
||||
ddev: &TyrDrmDevice,
|
||||
devquery: &mut uapi::drm_panthor_dev_query,
|
||||
_file: &TyrDrmFile,
|
||||
) -> Result<u32> {
|
||||
|
||||
@@ -5,7 +5,10 @@
|
||||
prelude::*, //
|
||||
};
|
||||
|
||||
use crate::driver::TyrDrmDriver;
|
||||
use crate::driver::{
|
||||
TyrDrmDevice,
|
||||
TyrDrmDriver, //
|
||||
};
|
||||
|
||||
/// GEM Object inner driver data
|
||||
#[pin_data]
|
||||
@@ -14,7 +17,7 @@ pub(crate) struct TyrObject {}
|
||||
impl gem::DriverObject for TyrObject {
|
||||
type Driver = TyrDrmDriver;
|
||||
|
||||
fn new(_dev: &kernel::drm::Device<TyrDrmDriver>, _size: usize) -> impl PinInit<Self, Error> {
|
||||
fn new(_dev: &TyrDrmDevice, _size: usize) -> impl PinInit<Self, Error> {
|
||||
try_pin_init!(TyrObject {})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user