mirror of
https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux
synced 2025-10-08 03:03:31 +10:00
rust: io: fix devres test with new io accessor functions
Fix doctest of `Devres` which still used `writeb` instead of `write8`.
Fixes: 354fd6e86f
("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>
This commit is contained in:
parent
354fd6e86f
commit
040b17ae0e
@ -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(())
|
||||
/// # }
|
||||
/// ```
|
||||
|
Loading…
Reference in New Issue
Block a user