On Sun, 2026-09-13 at 16:15 +0000, Markus Probst wrote:
quoted hunk ↗ jump to hunk
Add the `led::Mode` trait to allow for other types of led class devices
in `led::LedOps`.
Signed-off-by: Markus Probst <markus.probst@posteo.de>
---
rust/kernel/led.rs | 37 ++++++++++++++++++++++++++-----------
rust/kernel/led/normal.rs | 12 ++++++++++--
2 files changed, 36 insertions(+), 13 deletions(-)
diff --git a/rust/kernel/led.rs b/rust/kernel/led.rs
index deda8cc548a8..7cd8f0504649 100644
--- a/rust/kernel/led.rs
+++ b/rust/kernel/led.rs
@@ -4,11 +4,7 @@
//!
//! C header: [`include/linux/leds.h`](srctree/include/linux/leds.h)
-use core::{
- marker::PhantomData,
- mem::transmute,
- ptr::NonNull, //
-};
+use core::{marker::PhantomData, mem::transmute, ops::Deref, ptr::NonNull};
supposed to be vertical.
Thanks
- Markus Probst