drm/tyr: rename TyrObject to BoData

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@collabora.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Co-developed-by: Deborah Brouwer <deborah.brouwer@collabora.com>
Signed-off-by: Deborah Brouwer <deborah.brouwer@collabora.com>
Link: https://patch.msgid.link/20260428-fw-boot-prerequisites-v1-2-c69af9abe1af@collabora.com
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
This commit is contained in:
Boris Brezillon 2026-04-28 12:19:29 -07:00 committed by Alice Ryhl
parent 6c82e66e5e
commit 6f3096c427
2 changed files with 5 additions and 5 deletions

View File

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

View File

@ -12,13 +12,13 @@
/// 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 = ();
fn new(_dev: &TyrDrmDevice, _size: usize, _args: ()) -> impl PinInit<Self, Error> {
try_pin_init!(TyrObject {})
try_pin_init!(BoData {})
}
}