summaryrefslogtreecommitdiff
path: root/drivers/clk/mmp/clk-frac.c
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-22 16:35:55 +0300
committerStephen Boyd <sboyd@codeaurora.org>2017-11-02 09:25:47 +0300
commite90a7da4f75435ba0e5fcb12ed65fa6d4bd7a364 (patch)
treea4551b8d7cfbbe4ffcc214908c678d9f9d513c88 /drivers/clk/mmp/clk-frac.c
parent9108620d2d52d7a58bbf6192e56903355eace907 (diff)
downloadlinux-e90a7da4f75435ba0e5fcb12ed65fa6d4bd7a364.tar.xz
clk: mmp: 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> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/mmp/clk-frac.c')
-rw-r--r--drivers/clk/mmp/clk-frac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/mmp/clk-frac.c b/drivers/clk/mmp/clk-frac.c
index 584a9927993b..ea47a968ad9b 100644
--- a/drivers/clk/mmp/clk-frac.c
+++ b/drivers/clk/mmp/clk-frac.c
@@ -149,7 +149,7 @@ static void clk_factor_init(struct clk_hw *hw)
spin_unlock_irqrestore(factor->lock, flags);
}
-static struct clk_ops clk_factor_ops = {
+static const struct clk_ops clk_factor_ops = {
.recalc_rate = clk_factor_recalc_rate,
.round_rate = clk_factor_round_rate,
.set_rate = clk_factor_set_rate,