mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 04:21:09 -04:00
pwm: th1520: 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> Reviewed-by: Michal Wilczynski <m.wilczynski@samsung.com> Reviewed-by: Daniel Almeida <daniel.almeida@collabora.com> Link: https://patch.msgid.link/20251222-cstr-pwm-v1-1-e8916d976f8d@gmail.com Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
This commit is contained in:
committed by
Uwe Kleine-König
parent
02a140d331
commit
269febe774
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user