mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-28 07:54:36 -05:00
rust: io: mem: enable IoRequest doc-tests
When introduced, the IoRequest doc-tests did depend on infrastructure added in subsequent patches, hence they temporarily had to be disabled. Now that we have the corresponding platform device infrastructure, enable them. Link: https://lore.kernel.org/r/DBG39YMN2TX6.1VR4PEQSI8PSG@kernel.org Signed-off-by: Danilo Krummrich <dakr@kernel.org>
This commit is contained in:
@@ -43,7 +43,7 @@ pub(crate) unsafe fn new(device: &'a Device<Bound>, resource: &'a Resource) -> S
|
||||
/// The following example uses a [`platform::Device`] for illustration
|
||||
/// purposes.
|
||||
///
|
||||
/// ```ignore
|
||||
/// ```no_run
|
||||
/// use kernel::{bindings, c_str, platform, of, device::Core};
|
||||
/// struct SampleDriver;
|
||||
///
|
||||
@@ -101,7 +101,7 @@ pub fn iomap_exclusive_sized<const SIZE: usize>(
|
||||
/// The following example uses a [`platform::Device`] for illustration
|
||||
/// purposes.
|
||||
///
|
||||
/// ```ignore
|
||||
/// ```no_run
|
||||
/// use kernel::{bindings, c_str, platform, of, device::Core};
|
||||
/// struct SampleDriver;
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user