rust: replace literals with constants in `clk::Hertz`
authorOnur Özkan <work@onurozkan.dev>
Wed, 18 Jun 2025 09:28:10 +0000 (12:28 +0300)
committerStephen Boyd <sboyd@kernel.org>
Thu, 19 Jun 2025 19:48:41 +0000 (12:48 -0700)
commit2a7b4b228cbcebe273d9f4206ed8ee9cbba70ab0
tree5628e1ad17f2292354ab4479c7ba83fb7e63836f
parentb112dfc74b2040721959935b317d784455c5f635
rust: replace literals with constants in `clk::Hertz`

Replaces repeated numeric literals in `Hertz` conversions
with named constants.

Signed-off-by: Onur Özkan <work@onurozkan.dev>
Link: https://lore.kernel.org/r/20250618092810.29370-1-work@onurozkan.dev
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