Re: [PATCH v4 0/2] rust: leds: add led classdev abstractions
From: Benno Lossin
Date: Sun Oct 12 2025 - 12:27:53 EST
On Sun Oct 12, 2025 at 4:52 PM CEST, Markus Probst wrote:
> This patch series has previously been contained in
> https://lore.kernel.org/rust-for-linux/20251008181027.662616-1-markus.probst@xxxxxxxxx/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@xxxxxxxxxx/
>
> The following changes were made:
> * add basic Pin<Vec<T, A>> abstractions, that allow to initialize PinInit items with
> the guarantee that these will never be moved.
>
> * add basic led classdev abstractions to register and unregister leds
>
> Changes since v3:
> * fixed kunit tests failing because of example in documentation
Please give time for more feedback before sending a new version.
---
Cheers,
Benno