rust: make `clk::Hertz` methods const
authorOnur Özkan <work@onurozkan.dev>
Wed, 18 Jun 2025 09:14:42 +0000 (12:14 +0300)
committerStephen Boyd <sboyd@kernel.org>
Thu, 19 Jun 2025 19:42:26 +0000 (12:42 -0700)
commitbbbaea850e52c408654a586e0c4fbff8c1efc6f1
treef75db2175e148225873abd6b97b1fe512090d8b6
parent19272b37aa4f83ca52bdf9c16d5d81bdd1354494
rust: make `clk::Hertz` methods const

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>
Link: https://lore.kernel.org/r/20250618091442.29104-1-work@onurozkan.dev
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
rust/kernel/clk.rs