]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
samples: rust: pci: Remove some additional `.as_ref()` for `dev_*` print
authorDirk Behme <dirk.behme@de.bosch.com>
Mon, 2 Feb 2026 06:40:01 +0000 (07:40 +0100)
committerDanilo Krummrich <dakr@kernel.org>
Fri, 6 Feb 2026 19:16:58 +0000 (20:16 +0100)
The commit 600de1c008b2 ("rust: pci: remove redundant `.as_ref()` for
`dev_*` print") removed `.as_ref()` for `dev_*` prints. Nearly at the
same time the commit e62e48adf76c ("sample: rust: pci: add tests for
config space routines") was merged. Which missed this removal, then.

Signed-off-by: Dirk Behme <dirk.behme@de.bosch.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Link: https://patch.msgid.link/20260202064001.176787-1-dirk.behme@de.bosch.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
samples/rust/rust_driver_pci.rs

index 4dfb8a6a47077d2c565b09f7c7822f7f5e2641c8..d3d4a7931deb0c1085cfd817990737717f466ea9 100644 (file)
@@ -73,19 +73,19 @@ impl SampleDriver {
         // TODO: use the register!() macro for defining PCI configuration space registers once it
         // has been move out of nova-core.
         dev_info!(
-            pdev.as_ref(),
+            pdev,
             "pci-testdev config space read8 rev ID: {:x}\n",
             config.read8(0x8)
         );
 
         dev_info!(
-            pdev.as_ref(),
+            pdev,
             "pci-testdev config space read16 vendor ID: {:x}\n",
             config.read16(0)
         );
 
         dev_info!(
-            pdev.as_ref(),
+            pdev,
             "pci-testdev config space read32 BAR 0: {:x}\n",
             config.read32(0x10)
         );