diff options
author | Taniya Das <tdas@codeaurora.org> | 2018-06-23 16:19:25 +0200 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2018-07-07 01:45:51 +0200 |
commit | da172d2b6ba8c98101b9c18a986758662a91adbb (patch) | |
tree | 1e908726fc852a7f6d4890bf8bb194302893c3ba /drivers/clk/qcom/clk-rcg.h | |
parent | Linux 4.18-rc1 (diff) | |
download | linux-da172d2b6ba8c98101b9c18a986758662a91adbb.tar.xz linux-da172d2b6ba8c98101b9c18a986758662a91adbb.zip |
clk: qcom: Move frequency table macro to common file
Frequency table macro is used by multiple clock drivers, move frequency
table macro to common header file.
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/qcom/clk-rcg.h')
-rw-r--r-- | drivers/clk/qcom/clk-rcg.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/clk/qcom/clk-rcg.h b/drivers/clk/qcom/clk-rcg.h index b209a2fe86b9..dbd5a9e83554 100644 --- a/drivers/clk/qcom/clk-rcg.h +++ b/drivers/clk/qcom/clk-rcg.h @@ -7,6 +7,8 @@ #include <linux/clk-provider.h> #include "clk-regmap.h" +#define F(f, s, h, m, n) { (f), (s), (2 * (h) - 1), (m), (n) } + struct freq_tbl { unsigned long freq; u8 src; |