From: Michal Wilczynski <m.wilczynski@samsung.com>
To: "Uwe Kleine-König" <ukleinek@kernel.org>,
"Tamir Duberstein" <tamird@gmail.com>
Cc: "Drew Fustini" <fustini@kernel.org>,
"Guo Ren" <guoren@kernel.org>, "Fu Wei" <wefu@redhat.com>,
"Miguel Ojeda" <ojeda@kernel.org>,
"Boqun Feng" <boqun.feng@gmail.com>,
"Gary Guo" <gary@garyguo.net>,
"Björn Roy Baron" <bjorn3_gh@protonmail.com>,
"Benno Lossin" <lossin@kernel.org>,
"Andreas Hindborg" <a.hindborg@kernel.org>,
"Alice Ryhl" <aliceryhl@google.com>,
"Trevor Gross" <tmgross@umich.edu>,
"Danilo Krummrich" <dakr@kernel.org>,
linux-riscv@lists.infradead.org, linux-pwm@vger.kernel.org,
linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org
Subject: Re: [PATCH] drivers: pwm: replace `kernel::c_str!` with C-Strings
Date: Mon, 19 Jan 2026 22:48:30 +0100 [thread overview]
Message-ID: <2cdba52f-9bec-4550-912f-d61c58e2852a@samsung.com> (raw)
In-Reply-To: <2wmijhs5pbrynsgxuropvlxuozsubk7euybxzwc5ox2a3izfci@v6hzmzs5pmml>
On 1/19/26 17:53, Uwe Kleine-König wrote:
> Hello,
>
> On Sat, Jan 03, 2026 at 09:30:31PM -0500, Tamir Duberstein wrote:
>> On Mon, Dec 22, 2025 at 7:24 AM Tamir Duberstein <tamird@kernel.org> wrote:
>>>
>>> From: Tamir Duberstein <tamird@gmail.com>
>>>
>>> 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>
>>> ---
>>> drivers/pwm/pwm_th1520.rs | 3 +--
>>> 1 file changed, 1 insertion(+), 2 deletions(-)
>>>
>>> diff --git a/drivers/pwm/pwm_th1520.rs b/drivers/pwm/pwm_th1520.rs
>>> index e3b7e77356fc..8ae8f852ec02 100644
>>> --- a/drivers/pwm/pwm_th1520.rs
>>> +++ b/drivers/pwm/pwm_th1520.rs
>>> @@ -22,7 +22,6 @@
>>>
>>> use core::ops::Deref;
>>> use kernel::{
>>> - c_str,
>>> clk::Clk,
>>> device::{Bound, Core, Device},
>>> devres,
>>> @@ -327,7 +326,7 @@ fn drop(self: Pin<&mut Self>) {
>>> OF_TABLE,
>>> MODULE_OF_TABLE,
>>> <Th1520PwmPlatformDriver as platform::Driver>::IdInfo,
>>> - [(of::DeviceId::new(c_str!("thead,th1520-pwm")), ())]
>>> + [(of::DeviceId::new(c"thead,th1520-pwm"), ())]
>>> );
>>>
>>> impl platform::Driver for Th1520PwmPlatformDriver {
>>>
>>> ---
>>> base-commit: 8f0b4cce4481fb22653697cced8d0d04027cb1e8
>>> change-id: 20251222-cstr-pwm-c9b9a4701157
>>>
>>> Best regards,
>>> --
>>> Tamir Duberstein <tamird@gmail.com>
>>>
>>
>> @Uwe could you please have a look?
>
> I did, but given I'm more or less rust illiterate I would welcome
> feedback by Michal Wilczynski. I only now notice that he wasn't on Cc:
> up to now.
>
> Best regards
> Uwe
I think the patch is correct. Thanks !
Reviewed-by: Michal Wilczynski <m.wilczynski@samsung.com>
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
next prev parent reply other threads:[~2026-01-19 21:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-22 12:24 [PATCH] drivers: pwm: replace `kernel::c_str!` with C-Strings Tamir Duberstein
2025-12-22 14:21 ` Daniel Almeida
2026-01-04 2:30 ` Tamir Duberstein
2026-01-19 12:54 ` Tamir Duberstein
2026-01-19 16:53 ` Uwe Kleine-König
2026-01-19 18:01 ` Miguel Ojeda
2026-01-19 18:17 ` Uwe Kleine-König
2026-01-19 21:48 ` Michal Wilczynski [this message]
2026-01-20 8:39 ` Uwe Kleine-König
2026-01-20 16:15 ` Tamir Duberstein
2026-01-21 11:05 ` Uwe Kleine-König
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2cdba52f-9bec-4550-912f-d61c58e2852a@samsung.com \
--to=m.wilczynski@samsung.com \
--cc=a.hindborg@kernel.org \
--cc=aliceryhl@google.com \
--cc=bjorn3_gh@protonmail.com \
--cc=boqun.feng@gmail.com \
--cc=dakr@kernel.org \
--cc=fustini@kernel.org \
--cc=gary@garyguo.net \
--cc=guoren@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pwm@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=lossin@kernel.org \
--cc=ojeda@kernel.org \
--cc=rust-for-linux@vger.kernel.org \
--cc=tamird@gmail.com \
--cc=tmgross@umich.edu \
--cc=ukleinek@kernel.org \
--cc=wefu@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox