linux/samples/rust
Gary Guo bd8e8087cf rust: dma: update to keyworded index projection syntax
Demonstrate the preferred syntax of index projection in DMA documentation
and examples. A few `[i]?` cases are converted to demonstrate the new
variant.

Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Andreas Hindborg <a.hindborg@kernel.org>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Gary Guo <gary@garyguo.net>
Acked-by: Danilo Krummrich <dakr@kernel.org>
Link: https://patch.msgid.link/20260602-projection-syntax-rework-v2-4-6989470f5440@garyguo.net
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
History 2026-06-05 10:16:46 +02:00
..
hostprogs samples: add first Rust examples 2022-09-28 09:03:08 +02:00
Kconfig rust: Add SoC Driver Sample 2025-12-28 12:44:31 +01:00
Makefile rust: Add SoC Driver Sample 2025-12-28 12:44:31 +01:00
rust_configfs.rs rust: configfs: replace kernel::c_str! with C-Strings 2026-01-15 09:26:49 +01:00
rust_debugfs.rs samples: rust: debugfs: replace kernel::c_str! with C-Strings 2025-12-22 17:30:35 +01:00
rust_debugfs_scoped.rs samples: rust: debugfs: replace kernel::c_str! with C-Strings 2025-12-22 17:30:35 +01:00
rust_dma.rs rust: dma: update to keyworded index projection syntax 2026-06-05 10:16:46 +02:00
rust_driver_auxiliary.rs Driver core changes for 7.0-rc1 2026-02-11 17:43:59 -08:00
rust_driver_faux.rs rust: samples: driver-core: remove redundant .as_ref() for dev_* print 2026-01-24 01:12:49 +01:00
rust_driver_i2c.rs samples: rust: i2c: replace kernel::c_str! with C-Strings 2026-01-19 01:13:23 +01:00
rust_driver_pci.rs sample: rust: pci: use register! macro 2026-03-17 20:04:11 +01:00
rust_driver_platform.rs rust: samples: driver-core: remove redundant .as_ref() for dev_* print 2026-01-24 01:12:49 +01:00
rust_driver_usb.rs rust: usb: use "kernel vertical" style for imports 2026-01-07 16:12:48 +01:00
rust_i2c_client.rs samples: rust: i2c: replace kernel::c_str! with C-Strings 2026-01-19 01:13:23 +01:00
rust_minimal.rs rust: samples: add a module parameter to the rust_minimal sample 2025-11-03 14:42:34 +01:00
rust_misc_device.rs Char/Misc/IIO driver changes for 7.0-rc1 2026-02-17 09:11:04 -08:00
rust_print_events.c rust: samples: add tracepoint to Rust sample 2024-11-04 16:21:44 -05:00
rust_print_main.rs samples: rust: remove imports available via prelude 2026-01-26 18:15:20 +01:00
rust_soc.rs rust: samples: driver-core: remove redundant .as_ref() for dev_* print 2026-01-24 01:12:49 +01:00