aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorFiona Behrens <me@kloenk.dev>2025-02-24 19:36:43 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-02-25 07:29:48 +0100
commit040b17ae0e15bd7100432e0a20c6557d463a8c9f (patch)
tree17077b9cfbbaa008e4b3aa99a5b6d666a642d3e3
parentrust: io: rename `io::Io` accessors (diff)
downloadwireguard-linux-040b17ae0e15bd7100432e0a20c6557d463a8c9f.tar.xz
wireguard-linux-040b17ae0e15bd7100432e0a20c6557d463a8c9f.zip
rust: io: fix devres test with new io accessor functions
Fix doctest of `Devres` which still used `writeb` instead of `write8`. Fixes: 354fd6e86fac ("rust: io: rename `io::Io` accessors") Signed-off-by: Fiona Behrens <me@kloenk.dev> Link: https://lore.kernel.org/r/20250224-rust-iowrite-read8-fix-v1-1-c6abee346897@kloenk.dev Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--rust/kernel/devres.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/kernel/devres.rs b/rust/kernel/devres.rs
index 942376f6f3af..ddb1ce4a78d9 100644
--- a/rust/kernel/devres.rs
+++ b/rust/kernel/devres.rs
@@ -92,7 +92,7 @@ struct DevresInner<T> {
/// let devres = Devres::new(&dev, iomem, GFP_KERNEL)?;
///
/// let res = devres.try_access().ok_or(ENXIO)?;
-/// res.writel(0x42, 0x0);
+/// res.write8(0x42, 0x0);
/// # Ok(())
/// # }
/// ```