]> git.ipfire.org Git - thirdparty/linux.git/commit
rust: clk: use `CStr::as_char_ptr`
authorTamir Duberstein <tamird@gmail.com>
Sat, 18 Oct 2025 19:16:35 +0000 (15:16 -0400)
committerMiguel Ojeda <ojeda@kernel.org>
Wed, 22 Oct 2025 05:15:19 +0000 (07:15 +0200)
commit1dcd763ba1f62c1305a03bc7d5bd1d44c20a4f5e
treebb743e1540291441cdeead15273b7cdde0fdba7f
parent9ce084e579bf550ee92b1ecbadf1c29a76c1062c
rust: clk: use `CStr::as_char_ptr`

Replace the use of `as_ptr` which works through `<CStr as
Deref<Target=&[u8]>::deref()` in preparation for replacing
`kernel::str::CStr` with `core::ffi::CStr` as the latter does not
implement `Deref<Target=&[u8]>`.

Signed-off-by: Tamir Duberstein <tamird@gmail.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Link: https://patch.msgid.link/20251018-cstr-core-v18-14-9378a54385f8@gmail.com
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/clk.rs