aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk/imx/clk-vf610.c
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-28 10:58:52 +0530
committerStephen Boyd <sboyd@codeaurora.org>2017-08-30 22:30:27 -0700
commitfdda6ee947cd4faf8d0d5bc4d9888f896358355d (patch)
treebc1e1544627b65793a6f870803d8e754ade8984e /drivers/clk/imx/clk-vf610.c
parentclk: uniphier: add ethernet clock control support (diff)
downloadlinux-dev-fdda6ee947cd4faf8d0d5bc4d9888f896358355d.tar.xz
linux-dev-fdda6ee947cd4faf8d0d5bc4d9888f896358355d.zip
clk: imx: constify clk_div_table
clk_div_table are not supposed to change at runtime. All functions working with clk_div_table provided by <linux/clk-provider.h> work with const clk_div_table. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Acked-by: Shawn Guo <shawnguo@kernel.org> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/imx/clk-vf610.c')
-rw-r--r--drivers/clk/imx/clk-vf610.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/imx/clk-vf610.c b/drivers/clk/imx/clk-vf610.c
index 59b1863deb88..6dae54325a91 100644
--- a/drivers/clk/imx/clk-vf610.c
+++ b/drivers/clk/imx/clk-vf610.c
@@ -102,7 +102,7 @@ static const char *ftm_ext_sels[] = {"sirc_128k", "sxosc", "fxosc_half", "audio_
static const char *ftm_fix_sels[] = { "sxosc", "ipg_bus", };
-static struct clk_div_table pll4_audio_div_table[] = {
+static const struct clk_div_table pll4_audio_div_table[] = {
{ .val = 0, .div = 1 },
{ .val = 1, .div = 2 },
{ .val = 2, .div = 6 },