Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

samples: rust: pci: Remove some additional `.as_ref()` for `dev_*` print

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>

authored by

Dirk Behme and committed by
Danilo Krummrich
408e4f94 21bab791

+3 -3
+3 -3
samples/rust/rust_driver_pci.rs
··· 73 73 // TODO: use the register!() macro for defining PCI configuration space registers once it 74 74 // has been move out of nova-core. 75 75 dev_info!( 76 - pdev.as_ref(), 76 + pdev, 77 77 "pci-testdev config space read8 rev ID: {:x}\n", 78 78 config.read8(0x8) 79 79 ); 80 80 81 81 dev_info!( 82 - pdev.as_ref(), 82 + pdev, 83 83 "pci-testdev config space read16 vendor ID: {:x}\n", 84 84 config.read16(0) 85 85 ); 86 86 87 87 dev_info!( 88 - pdev.as_ref(), 88 + pdev, 89 89 "pci-testdev config space read32 BAR 0: {:x}\n", 90 90 config.read32(0x10) 91 91 );