summaryrefslogtreecommitdiff
path: root/drivers/clk/sunxi/clk-mod0.c
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2016-01-25 16:15:38 +0300
committerMaxime Ripard <maxime.ripard@free-electrons.com>2016-01-27 18:50:38 +0300
commitb3e919e03ce84d9768c0e1c12066f502c5bbd485 (patch)
tree445f6bb02820f560cc2cc2515c1caf8ca8287d96 /drivers/clk/sunxi/clk-mod0.c
parent63d8c7b9c32004506516f498fa05881c8d258442 (diff)
downloadlinux-b3e919e03ce84d9768c0e1c12066f502c5bbd485.tar.xz
clk: sunxi: factors: Make struct clk_factors_config table const
struct clk_factors_config contains shifts/widths for the factors of the factors clk. This is used to read out the factors from the register value. In no case is it written to, so make it const. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'drivers/clk/sunxi/clk-mod0.c')
-rw-r--r--drivers/clk/sunxi/clk-mod0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/sunxi/clk-mod0.c b/drivers/clk/sunxi/clk-mod0.c
index d167e1efb927..c67fea1a128d 100644
--- a/drivers/clk/sunxi/clk-mod0.c
+++ b/drivers/clk/sunxi/clk-mod0.c
@@ -62,7 +62,7 @@ static void sun4i_a10_get_mod0_factors(u32 *freq, u32 parent_rate,
}
/* user manual says "n" but it's really "p" */
-static struct clk_factors_config sun4i_a10_mod0_config = {
+static const struct clk_factors_config sun4i_a10_mod0_config = {
.mshift = 0,
.mwidth = 4,
.pshift = 16,