[PATCH v3 04/13] drm/tyr: rename TyrObject to BoData

From: Deborah Brouwer

Date: Mon Apr 13 2026 - 18:34:02 EST


From: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxx>

Currently the GEM inner driver data object is called `TyrObject` which
is a fairly generic name. To make the code easier to understand,
rename `TyrObject` to `BoData` so that the name better reflects its
role.

No functional change is intended.

Reviewed-by: Daniel Almeida <daniel.almeida@xxxxxxxxxxxxx>
Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
Signed-off-by: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxx>
Co-developed-by: Deborah Brouwer <deborah.brouwer@xxxxxxxxxxxxx>
Signed-off-by: Deborah Brouwer <deborah.brouwer@xxxxxxxxxxxxx>
---
drivers/gpu/drm/tyr/driver.rs | 4 ++--
drivers/gpu/drm/tyr/gem.rs | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/gpu/drm/tyr/driver.rs b/drivers/gpu/drm/tyr/driver.rs
index 3057f3af10e3..f2e7157221f1 100644
--- a/drivers/gpu/drm/tyr/driver.rs
+++ b/drivers/gpu/drm/tyr/driver.rs
@@ -38,7 +38,7 @@

use crate::{
file::TyrDrmFileData,
- gem::TyrObject,
+ gem::BoData,
gpu,
gpu::GpuInfo,
regs::gpu_control::*, //
@@ -183,7 +183,7 @@ fn drop(self: Pin<&mut Self>) {}
impl drm::Driver for TyrDrmDriver {
type Data = TyrDrmDeviceData;
type File = TyrDrmFileData;
- type Object<R: drm::DeviceContext> = drm::gem::Object<TyrObject, R>;
+ type Object<R: drm::DeviceContext> = drm::gem::Object<BoData, R>;

const INFO: drm::DriverInfo = INFO;

diff --git a/drivers/gpu/drm/tyr/gem.rs b/drivers/gpu/drm/tyr/gem.rs
index fa8d663fb523..11951b507b18 100644
--- a/drivers/gpu/drm/tyr/gem.rs
+++ b/drivers/gpu/drm/tyr/gem.rs
@@ -15,9 +15,9 @@

/// GEM Object inner driver data
#[pin_data]
-pub(crate) struct TyrObject {}
+pub(crate) struct BoData {}

-impl gem::DriverObject for TyrObject {
+impl gem::DriverObject for BoData {
type Driver = TyrDrmDriver;
type Args = ();

@@ -26,6 +26,6 @@ fn new<Ctx: DeviceContext>(
_size: usize,
_args: Self::Args,
) -> impl PinInit<Self, Error> {
- try_pin_init!(TyrObject {})
+ try_pin_init!(BoData {})
}
}

--
2.53.0