diff options
Diffstat (limited to 'drivers/gpu/nova-core')
| -rw-r--r-- | drivers/gpu/nova-core/gpu.rs | 5 | ||||
| -rw-r--r-- | drivers/gpu/nova-core/gsp/fw.rs | 6 |
2 files changed, 4 insertions, 7 deletions
diff --git a/drivers/gpu/nova-core/gpu.rs b/drivers/gpu/nova-core/gpu.rs index 19755af6ad04..629c9d2dc994 100644 --- a/drivers/gpu/nova-core/gpu.rs +++ b/drivers/gpu/nova-core/gpu.rs @@ -227,13 +227,12 @@ impl TryFrom<regs::NV_PMC_BOOT_42> for Spec { impl fmt::Display for Spec { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - write!( - f, + f.write_fmt(fmt!( "Chipset: {}, Architecture: {:?}, Revision: {}", self.chipset, self.chipset.arch(), self.revision - ) + )) } } diff --git a/drivers/gpu/nova-core/gsp/fw.rs b/drivers/gpu/nova-core/gsp/fw.rs index 8deec5e0a1d4..abffd6beec65 100644 --- a/drivers/gpu/nova-core/gsp/fw.rs +++ b/drivers/gpu/nova-core/gsp/fw.rs @@ -6,13 +6,11 @@ mod r570_144; // Alias to avoid repeating the version number with every use. use r570_144 as bindings; -use core::{ - fmt, - ops::Range, // -}; +use core::ops::Range; use kernel::{ dma::CoherentAllocation, + fmt, prelude::*, ptr::{ Alignable, |