]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
CLK: SPEAr: make aux_clk_masks structures const
authorBhumika Goyal <bhumirks@gmail.com>
Tue, 17 Oct 2017 14:38:34 +0000 (16:38 +0200)
committerStephen Boyd <sboyd@codeaurora.org>
Thu, 2 Nov 2017 06:23:01 +0000 (23:23 -0700)
Make these const as they are either stored in the masks 'const' field
of a clk_aux structure or passed to the function clk_register_aux
having the argument as const.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/spear/clk-aux-synth.c
drivers/clk/spear/spear1310_clock.c
drivers/clk/spear/spear1340_clock.c

index 8bea5dfc770b1d1411968f604c753c298b973b3f..2f145e398a108bd4efa79ed248949e95a772da27 100644 (file)
@@ -29,7 +29,7 @@
 
 #define to_clk_aux(_hw) container_of(_hw, struct clk_aux, hw)
 
-static struct aux_clk_masks default_aux_masks = {
+static const  struct aux_clk_masks default_aux_masks = {
        .eq_sel_mask = AUX_EQ_SEL_MASK,
        .eq_sel_shift = AUX_EQ_SEL_SHIFT,
        .eq1_mask = AUX_EQ1_SEL,
index 2f86e3f94efa6f2fe306fbbecd581bd70e4b392e..591248c9a88e797295a712abcb9b26b6d00a95e9 100644 (file)
@@ -284,7 +284,7 @@ static struct frac_rate_tbl clcd_rtbl[] = {
 };
 
 /* i2s prescaler1 masks */
-static struct aux_clk_masks i2s_prs1_masks = {
+static const struct aux_clk_masks i2s_prs1_masks = {
        .eq_sel_mask = AUX_EQ_SEL_MASK,
        .eq_sel_shift = SPEAR1310_I2S_PRS1_EQ_SEL_SHIFT,
        .eq1_mask = AUX_EQ1_SEL,
index cbb19a90f2d614569f48ad7ffec1c287714e5810..e5bc8c828cf0d84a420fd087ae726d961f5f05c2 100644 (file)
@@ -323,7 +323,7 @@ static struct frac_rate_tbl clcd_rtbl[] = {
 };
 
 /* i2s prescaler1 masks */
-static struct aux_clk_masks i2s_prs1_masks = {
+static const struct aux_clk_masks i2s_prs1_masks = {
        .eq_sel_mask = AUX_EQ_SEL_MASK,
        .eq_sel_shift = SPEAR1340_I2S_PRS1_EQ_SEL_SHIFT,
        .eq1_mask = AUX_EQ1_SEL,