summaryrefslogtreecommitdiff
path: root/drivers/clk/socfpga/clk-pll-s10.c
diff options
context:
space:
mode:
authorDinh Nguyen <dinguyen@kernel.org>2020-05-12 21:16:45 +0300
committerStephen Boyd <sboyd@kernel.org>2020-05-27 05:13:05 +0300
commitd52579ce21e0f8b915cb62501789716677f9264a (patch)
treebc7239494b1cf8ffad97fcd5e92d400891446a0b /drivers/clk/socfpga/clk-pll-s10.c
parent535d936f6103caee3daa0fb2be180aaed322a8b9 (diff)
downloadlinux-d52579ce21e0f8b915cb62501789716677f9264a.tar.xz
clk: socfpga: add const to _ops data structures
All the static clk_ops data structure need a const. Signed-off-by: Dinh Nguyen <dinguyen@kernel.org> Link: https://lkml.kernel.org/r/20200512181647.5071-3-dinguyen@kernel.org Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/socfpga/clk-pll-s10.c')
-rw-r--r--drivers/clk/socfpga/clk-pll-s10.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/socfpga/clk-pll-s10.c b/drivers/clk/socfpga/clk-pll-s10.c
index 9faa80ff3b53..5c3e1ee44f6b 100644
--- a/drivers/clk/socfpga/clk-pll-s10.c
+++ b/drivers/clk/socfpga/clk-pll-s10.c
@@ -98,13 +98,13 @@ static int clk_pll_prepare(struct clk_hw *hwclk)
return 0;
}
-static struct clk_ops clk_pll_ops = {
+static const struct clk_ops clk_pll_ops = {
.recalc_rate = clk_pll_recalc_rate,
.get_parent = clk_pll_get_parent,
.prepare = clk_pll_prepare,
};
-static struct clk_ops clk_boot_ops = {
+static const struct clk_ops clk_boot_ops = {
.recalc_rate = clk_boot_clk_recalc_rate,
.get_parent = clk_boot_get_parent,
.prepare = clk_pll_prepare,