Commit Graph
2 Commits
Author SHA1 Message Date
Tamir Duberstein 32d61c516f samples: rust: i2c: replace kernel::c_str! with C-Strings
C-String literals were added in Rust 1.77. Replace instances of
`kernel::c_str!` with C-String literals where possible.

Signed-off-by: Tamir Duberstein <[email protected]>
Acked-by: Igor Korotin <[email protected]>
Reviewed-by: Daniel Almeida <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Miguel Ojeda <[email protected]>
2026-01-19 01:13:23 +01:00
Igor Korotin 13ae55e24a samples: rust: add Rust I2C client registration sample
Add a new `rust_i2c_client` sample, showing how to create a new
i2c client using `i2c::Registration`

Acked-by: Wolfram Sang <[email protected]>
Signed-off-by: Igor Korotin <[email protected]>
Link: https://patch.msgid.link/[email protected]
[ * Remove dependency to I2C_CHARDEV, depend on I2C=y.
  * Remove unnecessary impl Drop for SampleDriver.
  * Rename i2c::Registration, import Devres.
  * Fixup module description.
  * Add new source file to MAINTAINERS.
  - Danilo ]
Signed-off-by: Danilo Krummrich <[email protected]>
2025-11-18 10:31:41 +13:00