Files
linux/rust/helpers
Michal Wilczynski 7b3dce814a rust: pwm: Add Kconfig and basic data structures
Introduce the foundational support for PWM abstractions in Rust.

This commit adds the `RUST_PWM_ABSTRACTIONS` Kconfig option to enable
the feature, along with the necessary build-system support and C
helpers.

It also introduces the first set of safe wrappers for the PWM
subsystem, covering the basic data carrying C structs and enums:
- `Polarity`: A safe wrapper for `enum pwm_polarity`.
- `Waveform`: A wrapper for `struct pwm_waveform`.
- `State`: A wrapper for `struct pwm_state`.

These types provide memory safe, idiomatic Rust representations of the
core PWM data structures and form the building blocks for the
abstractions that will follow.

Tested-by: Drew Fustini <fustini@kernel.org>
Reviewed-by: Daniel Almeida <daniel.almeida@collabora.com>
Reviewed-by: Elle Rhumsaa <elle@weathered-steel.dev>
Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com>
Link: https://patch.msgid.link/20251016-rust-next-pwm-working-fan-for-sending-v16-2-a5df2405d2bd@samsung.com
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
2025-11-07 10:03:54 +01:00
..
2025-09-15 09:38:32 +02:00
2025-09-15 09:38:34 +02:00
2025-09-19 09:40:46 +02:00
2025-09-22 15:52:44 -04:00
2025-09-22 15:52:44 -04:00
2025-07-23 02:05:58 +02:00
2025-05-19 12:55:40 +05:30
2025-05-19 12:55:40 +05:30
2025-07-09 00:04:33 +02:00
2025-09-21 14:22:19 -07:00
2025-05-11 17:48:24 -07:00
2025-09-19 09:40:46 +02:00
2024-10-08 15:44:36 +02:00
2025-08-21 16:58:07 +02:00
2024-12-20 17:19:26 +01:00
2025-09-19 09:40:46 +02:00
2025-09-24 13:13:04 +02:00