[PATCH 1/2] rust: fix clippy::too-long-first-doc-paragraph

From: Benno Lossin
Date: Sun Feb 16 2025 - 16:39:20 EST


Before enabling the `too-long-first-doc-paragraph` clippy lint, fix the
only violation by prepending a short, single line description.

Fixes: ea7e18289f44 ("rust: implement generic driver registration")
Signed-off-by: Benno Lossin <benno.lossin@xxxxxxxxx>
---
rust/kernel/driver.rs | 2 ++
1 file changed, 2 insertions(+)

diff --git a/rust/kernel/driver.rs b/rust/kernel/driver.rs
index 2a16d5e64e6c..65c9c1776556 100644
--- a/rust/kernel/driver.rs
+++ b/rust/kernel/driver.rs
@@ -10,6 +10,8 @@
use core::pin::Pin;
use macros::{pin_data, pinned_drop};

+/// Generic interface for subsystem driver registrations.
+///
/// The [`RegistrationOps`] trait serves as generic interface for subsystems (e.g., PCI, Platform,
/// Amba, etc.) to provide the corresponding subsystem specific implementation to register /
/// unregister a driver of the particular type (`RegType`).

base-commit: beeb78d46249cab8b2b8359a2ce8fa5376b5ad2d
--
2.47.2