aboutsummaryrefslogtreecommitdiffstats
path: root/samples/rust/rust_driver_faux.rs
diff options
context:
space:
mode:
authorLyude Paul <[email protected]>2025-02-27 19:35:06 +0000
committerGreg Kroah-Hartman <[email protected]>2025-02-28 02:03:17 +0000
commit95cb0cb546c2892b7a31ff2fce6573f201a214b8 (patch)
treeb92d8f68f7f01ad4e8c317fcc7b6649308d809ed /samples/rust/rust_driver_faux.rs
parentrust/faux: Drop #[repr(transparent)] from faux::Registration (diff)
downloadkernel-95cb0cb546c2892b7a31ff2fce6573f201a214b8.tar.gz
kernel-95cb0cb546c2892b7a31ff2fce6573f201a214b8.zip
rust/faux: Add missing parent argument to Registration::new()
A little late in the review of the faux device interface, we added the ability to specify a parent device when creating new faux devices - but this never got ported over to the rust bindings. So, let's add the missing argument now so we don't have to convert other users later down the line. Signed-off-by: Lyude Paul <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'samples/rust/rust_driver_faux.rs')
-rw-r--r--samples/rust/rust_driver_faux.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/rust/rust_driver_faux.rs b/samples/rust/rust_driver_faux.rs
index 048c6cb98b29..58a3a94121bf 100644
--- a/samples/rust/rust_driver_faux.rs
+++ b/samples/rust/rust_driver_faux.rs
@@ -20,7 +20,7 @@ impl Module for SampleModule {
fn init(_module: &'static ThisModule) -> Result<Self> {
pr_info!("Initialising Rust Faux Device Sample\n");
- let reg = faux::Registration::new(c_str!("rust-faux-sample-device"))?;
+ let reg = faux::Registration::new(c_str!("rust-faux-sample-device"), None)?;
dev_info!(reg.as_ref(), "Hello from faux device!\n");