From: Boris Brezillon <boris.brezillon@collabora.com>
To: Deborah Brouwer <deborah.brouwer@collabora.com>
Cc: dri-devel@lists.freedesktop.org, rust-for-linux@vger.kernel.org,
daniel.almeida@collabora.com, aliceryhl@google.com
Subject: Re: [PATCH] drm/tyr: Use DRM device type alias across driver
Date: Tue, 3 Mar 2026 11:25:00 +0100 [thread overview]
Message-ID: <20260303112500.1f47d56e@fedora> (raw)
In-Reply-To: <20260302202331.176140-1-deborah.brouwer@collabora.com>
On Mon, 2 Mar 2026 12:23:31 -0800
Deborah Brouwer <deborah.brouwer@collabora.com> wrote:
> 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>
> ---
> drivers/gpu/drm/tyr/file.rs | 7 +++++--
> drivers/gpu/drm/tyr/gem.rs | 7 +++++--
> 2 files changed, 10 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/tyr/file.rs b/drivers/gpu/drm/tyr/file.rs
> index 450be5ab9aaf..31411da203c5 100644
> --- a/drivers/gpu/drm/tyr/file.rs
> +++ b/drivers/gpu/drm/tyr/file.rs
> @@ -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> {
> diff --git a/drivers/gpu/drm/tyr/gem.rs b/drivers/gpu/drm/tyr/gem.rs
> index 514524ae07ef..5cd0cd9585e8 100644
> --- a/drivers/gpu/drm/tyr/gem.rs
> +++ b/drivers/gpu/drm/tyr/gem.rs
> @@ -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 {})
> }
> }
>
> base-commit: 15da5bc9f3adab7242867db0251fe451ac3ddb72
next prev parent reply other threads:[~2026-03-03 10:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-02 20:23 [PATCH] drm/tyr: Use DRM device type alias across driver Deborah Brouwer
2026-03-03 8:55 ` Alice Ryhl
2026-03-03 10:25 ` Boris Brezillon [this message]
2026-03-09 9:27 ` Alice Ryhl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260303112500.1f47d56e@fedora \
--to=boris.brezillon@collabora.com \
--cc=aliceryhl@google.com \
--cc=daniel.almeida@collabora.com \
--cc=deborah.brouwer@collabora.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=rust-for-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox