* Re: [PATCH] rust: make `clk::Hertz` methods const
2025-06-18 9:14 [PATCH] rust: make `clk::Hertz` methods const Onur Özkan
@ 2025-06-18 9:22 ` Alice Ryhl
2025-06-19 10:34 ` Viresh Kumar
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Alice Ryhl @ 2025-06-18 9:22 UTC (permalink / raw)
To: Onur Özkan
Cc: rust-for-linux, linux-clk, linux-kernel, mturquette, sboyd, ojeda,
alex.gaynor, boqun.feng, gary, bjorn3_gh, lossin, a.hindborg,
tmgross, dakr
On Wed, Jun 18, 2025 at 11:16 AM Onur Özkan <work@onurozkan.dev> wrote:
>
> Marks `Hertz` methods as `const` to make them available
> for `const` contexts. This can be useful when defining
> static/compile-time frequency parameters in drivers/subsystems.
>
> Signed-off-by: Onur Özkan <work@onurozkan.dev>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] rust: make `clk::Hertz` methods const
2025-06-18 9:14 [PATCH] rust: make `clk::Hertz` methods const Onur Özkan
2025-06-18 9:22 ` Alice Ryhl
@ 2025-06-19 10:34 ` Viresh Kumar
2025-06-19 13:41 ` Alexandre Courbot
2025-06-19 19:42 ` Stephen Boyd
3 siblings, 0 replies; 5+ messages in thread
From: Viresh Kumar @ 2025-06-19 10:34 UTC (permalink / raw)
To: Onur Özkan
Cc: rust-for-linux, linux-clk, linux-kernel, mturquette, sboyd, ojeda,
alex.gaynor, boqun.feng, gary, bjorn3_gh, lossin, a.hindborg,
aliceryhl, tmgross, dakr
On Wed, Jun 18, 2025 at 2:46 PM Onur Özkan <work@onurozkan.dev> wrote:
>
> Marks `Hertz` methods as `const` to make them available
> for `const` contexts. This can be useful when defining
> static/compile-time frequency parameters in drivers/subsystems.
>
> Signed-off-by: Onur Özkan <work@onurozkan.dev>
> ---
> rust/kernel/clk.rs | 14 +++++++-------
> 1 file changed, 7 insertions(+), 7 deletions(-)
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] rust: make `clk::Hertz` methods const
2025-06-18 9:14 [PATCH] rust: make `clk::Hertz` methods const Onur Özkan
2025-06-18 9:22 ` Alice Ryhl
2025-06-19 10:34 ` Viresh Kumar
@ 2025-06-19 13:41 ` Alexandre Courbot
2025-06-19 19:42 ` Stephen Boyd
3 siblings, 0 replies; 5+ messages in thread
From: Alexandre Courbot @ 2025-06-19 13:41 UTC (permalink / raw)
To: Onur Özkan, rust-for-linux, linux-clk, linux-kernel
Cc: mturquette, sboyd, ojeda, alex.gaynor, boqun.feng, gary,
bjorn3_gh, lossin, a.hindborg, aliceryhl, tmgross, dakr
On Wed Jun 18, 2025 at 6:14 PM JST, Onur Özkan wrote:
> Marks `Hertz` methods as `const` to make them available
> for `const` contexts. This can be useful when defining
> static/compile-time frequency parameters in drivers/subsystems.
>
> Signed-off-by: Onur Özkan <work@onurozkan.dev>
FWIW,
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] rust: make `clk::Hertz` methods const
2025-06-18 9:14 [PATCH] rust: make `clk::Hertz` methods const Onur Özkan
` (2 preceding siblings ...)
2025-06-19 13:41 ` Alexandre Courbot
@ 2025-06-19 19:42 ` Stephen Boyd
3 siblings, 0 replies; 5+ messages in thread
From: Stephen Boyd @ 2025-06-19 19:42 UTC (permalink / raw)
To: Onur Özkan, linux-clk, linux-kernel, rust-for-linux
Cc: mturquette, ojeda, alex.gaynor, boqun.feng, gary, bjorn3_gh,
lossin, a.hindborg, aliceryhl, tmgross, dakr, Onur Özkan
Quoting Onur Özkan (2025-06-18 02:14:42)
> Marks `Hertz` methods as `const` to make them available
> for `const` contexts. This can be useful when defining
> static/compile-time frequency parameters in drivers/subsystems.
>
> Signed-off-by: Onur Özkan <work@onurozkan.dev>
> ---
Applied to clk-next
^ permalink raw reply [flat|nested] 5+ messages in thread