summaryrefslogtreecommitdiff
path: root/drivers/clk/actions/owl-common.h
diff options
context:
space:
mode:
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>2018-08-10 15:21:05 +0530
committerStephen Boyd <sboyd@kernel.org>2018-10-16 14:40:54 -0700
commit3a23eb725b5c37dae17d1b7e2a2f9dc276ec767c (patch)
treec2e14654f43929eb44af0663b183646fd6e76905 /drivers/clk/actions/owl-common.h
parent5b394b2ddf0347bef56e50c69a58773c94343ff3 (diff)
clk: actions: Cache regmap info in private clock descriptor
In order to support the reset controller, regmap info needs to be cached in the private clock descriptor, owl_clk_desc. Hence, save that and also make the clock descriptor struct non const. Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/actions/owl-common.h')
-rw-r--r--drivers/clk/actions/owl-common.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/clk/actions/owl-common.h b/drivers/clk/actions/owl-common.h
index 4fd726ec54a6..56f01f7774aa 100644
--- a/drivers/clk/actions/owl-common.h
+++ b/drivers/clk/actions/owl-common.h
@@ -26,6 +26,7 @@ struct owl_clk_desc {
struct owl_clk_common **clks;
unsigned long num_clks;
struct clk_hw_onecell_data *hw_clks;
+ struct regmap *regmap;
};
static inline struct owl_clk_common *
@@ -35,7 +36,7 @@ static inline struct owl_clk_common *
}
int owl_clk_regmap_init(struct platform_device *pdev,
- const struct owl_clk_desc *desc);
+ struct owl_clk_desc *desc);
int owl_clk_probe(struct device *dev, struct clk_hw_onecell_data *hw_clks);
#endif /* _OWL_COMMON_H_ */