public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] rust: leds: add led classdev abstractions
@ 2025-10-09 17:07 Markus Probst
  2025-10-09 17:07 ` [PATCH 1/2] rust: add basic Pin<Vec<T, A>> abstractions Markus Probst
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Markus Probst @ 2025-10-09 17:07 UTC (permalink / raw)
  To: Danilo Krummrich, Miguel Ojeda, Alex Gaynor, Lee Jones,
	Pavel Machek
  Cc: Lorenzo Stoakes, Vlastimil Babka, Liam R. Howlett,
	Uladzislau Rezki, Boqun Feng, Gary Guo, bjorn3_gh, Benno Lossin,
	Andreas Hindborg, Alice Ryhl, Trevor Gross, Markus Probst,
	rust-for-linux, linux-kernel, linux-leds

This patch series has previously been contained in
https://lore.kernel.org/rust-for-linux/20251008181027.662616-1-markus.probst@posteo.de/T/#t
which added a rust written led driver for a microcontroller via i2c.

As the reading and writing to the i2c client via the register!
macro has not been implemented yet [1], the patch series will only
contain the additional abstractions required.

[1] https://lore.kernel.org/rust-for-linux/DDDS2V0V2NVJ.16ZKXCKUA1HUV@kernel.org/

The following changes were made:
* add basic Pin<Vec<T, A>> abstractions, that allow to initialize PinInit items with
  the gurantee that these will never be moved.

* add basic led classdev abstractions to register and unregister leds


Markus Probst (2):
  rust: add basic Pin<Vec<T, A>> abstractions
  rust: leds: add basic led classdev abstractions

 rust/kernel/alloc.rs      |   1 +
 rust/kernel/alloc/kvec.rs |  86 +++++++++++
 rust/kernel/led.rs        | 296 ++++++++++++++++++++++++++++++++++++++
 rust/kernel/lib.rs        |   1 +
 rust/kernel/prelude.rs    |   2 +-
 5 files changed, 385 insertions(+), 1 deletion(-)
 create mode 100644 rust/kernel/led.rs

-- 
2.49.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-10-10 18:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-09 17:07 [PATCH 0/2] rust: leds: add led classdev abstractions Markus Probst
2025-10-09 17:07 ` [PATCH 1/2] rust: add basic Pin<Vec<T, A>> abstractions Markus Probst
2025-10-09 17:45   ` Onur Özkan
2025-10-09 17:07 ` [PATCH 2/2] rust: leds: add basic led classdev abstractions Markus Probst
2025-10-09 17:49   ` Onur Özkan
2025-10-10 18:36   ` Danilo Krummrich
2025-10-09 17:46 ` [PATCH 0/2] rust: leds: add " Onur Özkan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox