Skip to content

Commit 061a8ac

Browse files
tamirdojeda
authored andcommitted
samples: rust: platform: remove trailing commas
This prepares for a later commit in which we introduce a custom formatting macro; that macro doesn't handle trailing commas so just remove them. Acked-by: Danilo Krummrich <dakr@kernel.org> Reviewed-by: Benno Lossin <lossin@kernel.org> Signed-off-by: Tamir Duberstein <tamird@gmail.com> Link: https://patch.msgid.link/20251018-cstr-core-v18-1-9378a54385f8@gmail.com Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent 211ddde commit 061a8ac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

samples/rust/rust_driver_platform.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ impl SampleDriver {
146146

147147
let name = c_str!("test,u32-optional-prop");
148148
let prop = fwnode.property_read::<u32>(name).or(0x12);
149-
dev_info!(dev, "'{name}'='{prop:#x}' (default = 0x12)\n",);
149+
dev_info!(dev, "'{name}'='{prop:#x}' (default = 0x12)\n");
150150

151151
// A missing required property will print an error. Discard the error to
152152
// prevent properties_parse from failing in that case.
@@ -161,7 +161,7 @@ impl SampleDriver {
161161
let prop: [i16; 4] = fwnode.property_read(name).required_by(dev)?;
162162
dev_info!(dev, "'{name}'='{prop:?}'\n");
163163
let len = fwnode.property_count_elem::<u16>(name)?;
164-
dev_info!(dev, "'{name}' length is {len}\n",);
164+
dev_info!(dev, "'{name}' length is {len}\n");
165165

166166
let name = c_str!("test,i16-array");
167167
let prop: KVec<i16> = fwnode.property_read_array_vec(name, 4)?.required_by(dev)?;

0 commit comments

Comments
 (0)