diff options
| author | Tamir Duberstein <tamird@gmail.com> | 2025-08-13 11:39:46 -0400 |
|---|---|---|
| committer | Miguel Ojeda <ojeda@kernel.org> | 2025-09-16 09:26:58 +0200 |
| commit | 4b4d06a7630e14c4a8567d0dae6847260eba8a3c (patch) | |
| tree | 80dae950ef384c14e591ba409aec98745f2e6c2a /drivers/gpu/nova-core/regs | |
| parent | bf87a41b85d67695a04b422499b77748fe845945 (diff) | |
| download | linux-next-4b4d06a7630e14c4a8567d0dae6847260eba8a3c.tar.gz linux-next-4b4d06a7630e14c4a8567d0dae6847260eba8a3c.zip | |
gpu: nova-core: use `kernel::{fmt,prelude::fmt!}`
Reduce coupling to implementation details of the formatting machinery by
avoiding direct use for `core`'s formatting traits and macros.
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Benno Lossin <lossin@kernel.org>
Acked-by: Danilo Krummrich <dakr@kernel.org>
Signed-off-by: Tamir Duberstein <tamird@gmail.com>
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'drivers/gpu/nova-core/regs')
| -rw-r--r-- | drivers/gpu/nova-core/regs/macros.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nova-core/regs/macros.rs b/drivers/gpu/nova-core/regs/macros.rs index a3e6de1779d4..6b9df4205f46 100644 --- a/drivers/gpu/nova-core/regs/macros.rs +++ b/drivers/gpu/nova-core/regs/macros.rs @@ -149,10 +149,10 @@ macro_rules! register { // TODO[REGA]: display the raw hex value, then the value of all the fields. This requires // matching the fields, which will complexify the syntax considerably... - impl ::core::fmt::Debug for $name { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + impl ::kernel::fmt::Debug for $name { + fn fmt(&self, f: &mut ::kernel::fmt::Formatter<'_>) -> ::kernel::fmt::Result { f.debug_tuple(stringify!($name)) - .field(&format_args!("0x{0:x}", &self.0)) + .field(&::kernel::prelude::fmt!("0x{0:x}", &self.0)) .finish() } } |
