mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-30 22:54:17 -04:00
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>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user