Skip to content

Commit dff1151

Browse files
committed
gpu: nova-core: vbios: replace pci::Device with device::Device
The passed pci::Device is exclusively used for logging purposes, so it can be replaced by a regular device::Device, which allows us to remove the `as_ref()` indirections at each logging site. Reviewed-by: Joel Fernandes <joelagnelf@nvidia.com> Acked-by: Danilo Krummrich <dakr@kernel.org> Link: https://lore.kernel.org/r/20250808-vbios_device-v1-1-834bbbab6471@nvidia.com Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
1 parent 09f9025 commit dff1151

2 files changed

Lines changed: 57 additions & 80 deletions

File tree

drivers/gpu/nova-core/gpu.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ impl Gpu {
298298
let fb_layout = FbLayout::new(spec.chipset, bar)?;
299299
dev_dbg!(pdev.as_ref(), "{:#x?}\n", fb_layout);
300300

301-
let bios = Vbios::new(pdev, bar)?;
301+
let bios = Vbios::new(pdev.as_ref(), bar)?;
302302

303303
Self::run_fwsec_frts(pdev.as_ref(), &gsp_falcon, bar, &bios, &fb_layout)?;
304304

0 commit comments

Comments
 (0)