summaryrefslogtreecommitdiff
path: root/samples/rust
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-12-29 09:25:34 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-12-29 09:25:34 +0100
commite46bcc4e856e0e4352752ff9247af6240334f822 (patch)
treed74cae7ec53d9fe6def8159cf910541eb026df95 /samples/rust
parent8995a37371bf489ede768271aac56e4e6a55bcb2 (diff)
parentf8f9c1f4d0c7a64600e2ca312dec824a0bc2f1da (diff)
Merge 6.19-rc3 into usb-next
We need the USB fixes in here as well. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'samples/rust')
-rw-r--r--samples/rust/rust_driver_pci.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/rust/rust_driver_pci.rs b/samples/rust/rust_driver_pci.rs
index 5823787bea8e..fa677991a5c4 100644
--- a/samples/rust/rust_driver_pci.rs
+++ b/samples/rust/rust_driver_pci.rs
@@ -48,7 +48,7 @@ impl SampleDriver {
// Select the test.
bar.write8(index.0, Regs::TEST);
- let offset = u32::from_le(bar.read32(Regs::OFFSET)) as usize;
+ let offset = bar.read32(Regs::OFFSET) as usize;
let data = bar.read8(Regs::DATA);
// Write `data` to `offset` to increase `count` by one.