diff options
| author | Brian Masney <bmasney@redhat.com> | 2026-05-11 21:35:07 -0400 |
|---|---|---|
| committer | Brian Masney <bmasney@redhat.com> | 2026-06-29 17:51:43 -0400 |
| commit | 4750122e2f6baa7b46e39510cd97624516a7cc62 (patch) | |
| tree | 094353d22ceb2f397d4b0189e1d1cd0a53fe66c3 | |
| parent | 378ca82af05ade38ff4fa63bc2bbbcb51cc882b6 (diff) | |
| download | linux-stable-4750122e2f6baa7b46e39510cd97624516a7cc62.tar.gz linux-stable-4750122e2f6baa7b46e39510cd97624516a7cc62.zip | |
clk: test: convert constants to use HZ_PER_MHZ
Convert the DUMMY_CLOCK_* constants over to use HZ_PER_MHZ.
Reviewed-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Brian Masney <bmasney@redhat.com>
| -rw-r--r-- | drivers/clk/clk_test.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/clk/clk_test.c b/drivers/clk/clk_test.c index 94972f38e2e1..1c5c8b7c1f3c 100644 --- a/drivers/clk/clk_test.c +++ b/drivers/clk/clk_test.c @@ -7,6 +7,7 @@ #include <linux/clk/clk-conf.h> #include <linux/of.h> #include <linux/platform_device.h> +#include <linux/units.h> /* Needed for clk_hw_get_clk() */ #include "clk.h" @@ -21,9 +22,9 @@ static const struct clk_ops empty_clk_ops = { }; -#define DUMMY_CLOCK_INIT_RATE (42 * 1000 * 1000) -#define DUMMY_CLOCK_RATE_1 (142 * 1000 * 1000) -#define DUMMY_CLOCK_RATE_2 (242 * 1000 * 1000) +#define DUMMY_CLOCK_INIT_RATE (42 * HZ_PER_MHZ) +#define DUMMY_CLOCK_RATE_1 (142 * HZ_PER_MHZ) +#define DUMMY_CLOCK_RATE_2 (242 * HZ_PER_MHZ) struct clk_dummy_context { struct clk_hw hw; |
