mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] rust: i2c: replace `kernel::c_str!` with C-Strings
@ 2025-12-22 12:14 Tamir Duberstein
  2025-12-22 12:14 ` [PATCH 1/2] " Tamir Duberstein
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Tamir Duberstein @ 2025-12-22 12:14 UTC (permalink / raw)
  To: Igor Korotin, Danilo Krummrich, Daniel Almeida, Miguel Ojeda,
	Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin,
	Andreas Hindborg, Alice Ryhl, Trevor Gross
  Cc: rust-for-linux, linux-kernel, Tamir Duberstein

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>
---
Tamir Duberstein (2):
      rust: i2c: replace `kernel::c_str!` with C-Strings
      samples: rust: i2c: replace `kernel::c_str!` with C-Strings

 rust/kernel/i2c.rs              | 8 ++++----
 samples/rust/rust_driver_i2c.rs | 7 +++----
 samples/rust/rust_i2c_client.rs | 7 +++----
 3 files changed, 10 insertions(+), 12 deletions(-)
---
base-commit: 8f0b4cce4481fb22653697cced8d0d04027cb1e8
change-id: 20251222-cstr-i2c-fce258eb7e5d

Best regards,
--  
Tamir Duberstein <tamird@gmail.com>


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-01-19  8:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-22 12:14 [PATCH 0/2] rust: i2c: replace `kernel::c_str!` with C-Strings Tamir Duberstein
2025-12-22 12:14 ` [PATCH 1/2] " Tamir Duberstein
2025-12-22 12:14 ` [PATCH 2/2] samples: " Tamir Duberstein
2025-12-22 14:37 ` [PATCH 0/2] " Daniel Almeida
2025-12-22 18:17 ` Igor Korotin
2025-12-22 18:45   ` Miguel Ojeda
2026-01-19  8:20 ` Miguel Ojeda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®