]> git.ipfire.org Git - thirdparty/linux.git/commit
samples: rust: i2c: replace `kernel::c_str!` with C-Strings
authorTamir Duberstein <tamird@gmail.com>
Mon, 22 Dec 2025 12:14:33 +0000 (13:14 +0100)
committerMiguel Ojeda <ojeda@kernel.org>
Mon, 19 Jan 2026 00:13:23 +0000 (01:13 +0100)
commit32d61c516f75c15b8c6420d8ef749d80615943df
tree884a46f2484df9ba8dab6b2f8f52ad400eb4abed
parenteeaad2f021def7efdaa441b104550615ca328a48
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 <tamird@gmail.com>
Acked-by: Igor Korotin <igor.korotin.linux@gmail.com>
Reviewed-by: Daniel Almeida <daniel.almeida@collabora.com>
Link: https://patch.msgid.link/20251222-cstr-i2c-v1-2-df1c258d4615@gmail.com
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
samples/rust/rust_driver_i2c.rs
samples/rust/rust_i2c_client.rs