diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-28 10:58:52 +0530 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2017-08-30 22:30:27 -0700 |
commit | fdda6ee947cd4faf8d0d5bc4d9888f896358355d (patch) | |
tree | bc1e1544627b65793a6f870803d8e754ade8984e /drivers/clk/imx/clk-imx7d.c | |
parent | 9959989fc49d61f0c53524a3b95c55db7b7b9b3f (diff) | |
download | lwn-fdda6ee947cd4faf8d0d5bc4d9888f896358355d.tar.gz lwn-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-imx7d.c')
-rw-r--r-- | drivers/clk/imx/clk-imx7d.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/imx/clk-imx7d.c b/drivers/clk/imx/clk-imx7d.c index 3da121826b1b..2305699db467 100644 --- a/drivers/clk/imx/clk-imx7d.c +++ b/drivers/clk/imx/clk-imx7d.c @@ -27,7 +27,7 @@ static u32 share_count_sai2; static u32 share_count_sai3; static u32 share_count_nand; -static struct clk_div_table test_div_table[] = { +static const struct clk_div_table test_div_table[] = { { .val = 3, .div = 1, }, { .val = 2, .div = 1, }, { .val = 1, .div = 2, }, @@ -35,7 +35,7 @@ static struct clk_div_table test_div_table[] = { { } }; -static struct clk_div_table post_div_table[] = { +static const struct clk_div_table post_div_table[] = { { .val = 3, .div = 4, }, { .val = 2, .div = 1, }, { .val = 1, .div = 2, }, |