aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/clk/spear/clk-vco-pll.c
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-22 18:44:50 +0530
committerStephen Boyd <sboyd@codeaurora.org>2017-11-01 23:24:37 -0700
commitba3892df525b9ff203d0ad116a41306bf5081215 (patch)
treed6fc09f0656c5ea8a738fca12728684a743387f3 /drivers/clk/spear/clk-vco-pll.c
parentCLK: SPEAr: make aux_clk_masks structures const (diff)
downloadwireguard-linux-ba3892df525b9ff203d0ad116a41306bf5081215.tar.xz
wireguard-linux-ba3892df525b9ff203d0ad116a41306bf5081215.zip
clk: spear: make clk_ops const
Make these const as they are only stored in the const field of a clk_init_data structure. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/spear/clk-vco-pll.c')
-rw-r--r--drivers/clk/spear/clk-vco-pll.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/spear/clk-vco-pll.c b/drivers/clk/spear/clk-vco-pll.c
index dc21ca4601aa..069b48a44f80 100644
--- a/drivers/clk/spear/clk-vco-pll.c
+++ b/drivers/clk/spear/clk-vco-pll.c
@@ -165,7 +165,7 @@ static int clk_pll_set_rate(struct clk_hw *hw, unsigned long drate,
return 0;
}
-static struct clk_ops clk_pll_ops = {
+static const struct clk_ops clk_pll_ops = {
.recalc_rate = clk_pll_recalc_rate,
.round_rate = clk_pll_round_rate,
.set_rate = clk_pll_set_rate,
@@ -266,7 +266,7 @@ static int clk_vco_set_rate(struct clk_hw *hw, unsigned long drate,
return 0;
}
-static struct clk_ops clk_vco_ops = {
+static const struct clk_ops clk_vco_ops = {
.recalc_rate = clk_vco_recalc_rate,
.round_rate = clk_vco_round_rate,
.set_rate = clk_vco_set_rate,