rust: time: remove leftover "clock source" wording from doc comments
Subsystems (2)
PATCH 1/1 rust: time: remove leftover "clock source" wording from doc comments
From: FUJITA Tomonori <[email protected]>
Commit 6a8e2c63f2fe ("rust: time: rename ClockSource trait to ClockId") renamed the trait because it represents a clockid_t, not the C struct clocksource. Two doc comments still say "clock source".
Replace them with "clock". This matches the ClockId doc ("Get the current time from the clock") and the C hrtimer_setup() kerneldoc ("@clock_id: the clock to be used").
No functional change.
--- rust/kernel/time.rs | 2 +- rust/kernel/time/hrtimer.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
rust/kernel/time.rs +1 -1
@@ -198,7 +198,7 @@ fn clone(&self) -> Self {impl <C :ClockId >Copy for Instant <C > {}impl <C :ClockId >Instant <C > { -/// Get the current time from the clock source. +/// Get the current time from the clock `C`. #[inline] pub fn now () ->Self {// INVARIANT: The `ClockId::ktime_get()` function returns a value in the range
rust/kernel/time/hrtimer.rs +1 -1
@@ -904,7 +904,7 @@ pub trait HrTimerMode: private::Sealed {/// The C representation of hrtimer mode. const C_MODE : bindings::hrtimer_mode ; -/// Type representing the clock source. +/// The clock to be used by the timer. type Clock :ClockId ;/// Type representing the expiration specification (absolute or relative time).
base-commit: c339f4010dea8b0d754f84ace70cd1b089878ef8
Signature · 1 line
2.43.0
Quoted 6 lines · FUJITA Tomonori
From: FUJITA Tomonori <[email protected]>
Commit
6a8e2c63f2fe("rust: time: rename ClockSource trait to ClockId") renamed the trait because it represents aclockid_t, not the Cstruct clocksource. Two doc comments still say "clock source".
Quoted 7 lines
Replace them with "clock". This matches the
ClockIddoc ("Get the current time from the clock") and the Chrtimer_setup()kerneldoc ("@clock_id: the clock to be used").No functional change.
Signed-off-by FUJITA Tomonori <[email protected]>
FWIW,
Quoted 6 lines · FUJITA Tomonori
From: FUJITA Tomonori <[email protected]>
Commit
6a8e2c63f2fe("rust: time: rename ClockSource trait to ClockId") renamed the trait because it represents aclockid_t, not the Cstruct clocksource. Two doc comments still say "clock source".
Quoted 7 lines
Replace them with "clock". This matches the
ClockIddoc ("Get the current time from the clock") and the Chrtimer_setup()kerneldoc ("@clock_id: the clock to be used").No functional change.
Signed-off-by FUJITA Tomonori <[email protected]>
Best regards,
Andreas Hindborg