summaryrefslogtreecommitdiffstats
path: root/drivers/clk/zte
diff options
context:
space:
mode:
authorChunyan Zhang <chunyan.zhang@spreadtrum.com>2017-12-07 13:57:04 +0100
committerStephen Boyd <sboyd@codeaurora.org>2017-12-22 00:00:38 +0100
commit1ded879e12310b1f8f81b1f84e293933a3b69f14 (patch)
treea61e861703b0758e7443c743557811ee8fc76820 /drivers/clk/zte
parentLinux 4.15-rc1 (diff)
downloadlinux-1ded879e12310b1f8f81b1f84e293933a3b69f14.tar.xz
linux-1ded879e12310b1f8f81b1f84e293933a3b69f14.zip
clk: move clock common macros out from vendor directories
These macros are used by more than one SoC vendor platforms, avoid to have many copies of these code, this patch moves them to the common header file which every clock drivers can access to. Signed-off-by: Chunyan Zhang <chunyan.zhang@spreadtrum.com> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/zte')
-rw-r--r--drivers/clk/zte/clk.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/drivers/clk/zte/clk.h b/drivers/clk/zte/clk.h
index 4df0f121b56d..f1041e36bcf1 100644
--- a/drivers/clk/zte/clk.h
+++ b/drivers/clk/zte/clk.h
@@ -14,24 +14,6 @@
#define PNAME(x) static const char *x[]
-#define CLK_HW_INIT(_name, _parent, _ops, _flags) \
- &(struct clk_init_data) { \
- .flags = _flags, \
- .name = _name, \
- .parent_names = (const char *[]) { _parent }, \
- .num_parents = 1, \
- .ops = _ops, \
- }
-
-#define CLK_HW_INIT_PARENTS(_name, _parents, _ops, _flags) \
- &(struct clk_init_data) { \
- .flags = _flags, \
- .name = _name, \
- .parent_names = _parents, \
- .num_parents = ARRAY_SIZE(_parents), \
- .ops = _ops, \
- }
-
struct zx_pll_config {
unsigned long rate;
u32 cfg0;