aboutsummaryrefslogtreecommitdiffstats
path: root/rust/kernel/of.rs
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@gmail.com>2025-06-24 07:58:46 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-07-01 11:21:04 +0200
commit9b5cdd5f40191d11d3b535ab7978751a4a3e4bc5 (patch)
tree794b9155280e1d1705f4a6e9c22324755e05ee0d /rust/kernel/of.rs
parentrust: devres: get rid of Devres' inner Arc (diff)
downloadlinux-9b5cdd5f40191d11d3b535ab7978751a4a3e4bc5.tar.gz
linux-9b5cdd5f40191d11d3b535ab7978751a4a3e4bc5.zip
rust: fix typo in #[repr(transparent)] comments
Fix a typo in several comments where `#[repr(transparent)]` was mistakenly written as `#[repr(transparent)` (missing closing bracket). Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com> Link: https://lore.kernel.org/r/20250623225846.169805-1-fujita.tomonori@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'rust/kernel/of.rs')
-rw-r--r--rust/kernel/of.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/kernel/of.rs b/rust/kernel/of.rs
index 04f2d8ef29cb..52fe0c77b9a1 100644
--- a/rust/kernel/of.rs
+++ b/rust/kernel/of.rs
@@ -13,7 +13,7 @@ pub type IdTable<T> = &'static dyn kernel::device_id::IdTable<DeviceId, T>;
pub struct DeviceId(bindings::of_device_id);
// SAFETY:
-// * `DeviceId` is a `#[repr(transparent)` wrapper of `struct of_device_id` and does not add
+// * `DeviceId` is a `#[repr(transparent)]` wrapper of `struct of_device_id` and does not add
// additional invariants, so it's safe to transmute to `RawType`.
// * `DRIVER_DATA_OFFSET` is the offset to the `data` field.
unsafe impl RawDeviceId for DeviceId {