summaryrefslogtreecommitdiff
path: root/drivers/clk/qcom/common.h
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2014-09-04 13:21:50 -0700
committerStephen Boyd <sboyd@codeaurora.org>2014-09-22 15:16:52 -0700
commit50c6a50344c58f73c697e2fe38960dc176a2e69f (patch)
tree013a93a48415beb8abeeebdf7b6919673867ad31 /drivers/clk/qcom/common.h
parentdc1b3f657f25798b2dc9ed8928b80eb3183019a2 (diff)
clk: qcom: Consolidate frequency finding logic
There are two find_freq() functions in clk-rcg.c and clk-rcg2.c that are almost exactly the same. Consolidate them into one function to save on some code space. Cc: Mike Turquette <mturquette@linaro.org> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/qcom/common.h')
-rw-r--r--drivers/clk/qcom/common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/clk/qcom/common.h b/drivers/clk/qcom/common.h
index 2765e9d3da97..f519322acdf3 100644
--- a/drivers/clk/qcom/common.h
+++ b/drivers/clk/qcom/common.h
@@ -18,6 +18,7 @@ struct regmap_config;
struct clk_regmap;
struct qcom_reset_map;
struct regmap;
+struct freq_tbl;
struct qcom_cc_desc {
const struct regmap_config *config;
@@ -27,6 +28,9 @@ struct qcom_cc_desc {
size_t num_resets;
};
+extern const struct freq_tbl *qcom_find_freq(const struct freq_tbl *f,
+ unsigned long rate);
+
extern struct regmap *qcom_cc_map(struct platform_device *pdev,
const struct qcom_cc_desc *desc);
extern int qcom_cc_really_probe(struct platform_device *pdev,