Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: zte: 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>

authored by

Arvind Yadav and committed by
Stephen Boyd
59273246 fdda6ee9

+3 -3
+3 -3
drivers/clk/zte/clk-zx296718.c
··· 451 451 FFACTOR(0, "emmc_mux_div2", "emmc_mux", 1, 2, CLK_SET_RATE_PARENT), 452 452 }; 453 453 454 - static struct clk_div_table noc_div_table[] = { 454 + static const struct clk_div_table noc_div_table[] = { 455 455 { .val = 1, .div = 2, }, 456 456 { .val = 3, .div = 4, }, 457 457 }; ··· 644 644 return 0; 645 645 } 646 646 647 - static struct clk_div_table common_even_div_table[] = { 647 + static const struct clk_div_table common_even_div_table[] = { 648 648 { .val = 0, .div = 1, }, 649 649 { .val = 1, .div = 2, }, 650 650 { .val = 3, .div = 4, }, ··· 656 656 { .val = 15, .div = 16, }, 657 657 }; 658 658 659 - static struct clk_div_table common_div_table[] = { 659 + static const struct clk_div_table common_div_table[] = { 660 660 { .val = 0, .div = 1, }, 661 661 { .val = 1, .div = 2, }, 662 662 { .val = 2, .div = 3, },