summaryrefslogtreecommitdiff
path: root/samples/rust/rust_driver_faux.rs
diff options
context:
space:
mode:
authorGary Guo <gary@garyguo.net>2026-01-23 17:58:40 +0000
committerDanilo Krummrich <dakr@kernel.org>2026-01-24 01:12:49 +0100
commit3be458a5a7ed57cb874474aee7929daed0d5d3aa (patch)
treea950f03cf7f741b6ac6c431ea4a35c2eb2f181c1 /samples/rust/rust_driver_faux.rs
parent600de1c008b2302b56d69ff27d12a9d8d14892ac (diff)
rust: samples: driver-core: remove redundant `.as_ref()` for `dev_*` print
This is now handled by the macro itself. Signed-off-by: Gary Guo <gary@garyguo.net> Link: https://patch.msgid.link/20260123175854.176735-3-gary@kernel.org Signed-off-by: Danilo Krummrich <dakr@kernel.org>
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 5330b77ea986..99876c8e3743 100644
--- a/samples/rust/rust_driver_faux.rs
+++ b/samples/rust/rust_driver_faux.rs
@@ -26,7 +26,7 @@ impl Module for SampleModule {
let reg = faux::Registration::new(c"rust-faux-sample-device", None)?;
- dev_info!(reg.as_ref(), "Hello from faux device!\n");
+ dev_info!(reg, "Hello from faux device!\n");
Ok(Self { _reg: reg })
}