]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
rust: io: fix devres test with new io accessor functions
authorFiona Behrens <me@kloenk.dev>
Mon, 24 Feb 2025 18:36:43 +0000 (19:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Feb 2025 06:29:48 +0000 (07:29 +0100)
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>
rust/kernel/devres.rs

index 942376f6f3af4392e3696e68c90ae49ffb07f491..ddb1ce4a78d944fb4bc00d601b620aedf63bc9a5 100644 (file)
@@ -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(())
 /// # }
 /// ```