Skip to content

Commit

Permalink
CLK: SPEAr: make aux_clk_masks structures const
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Viresh Kumar <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
  • Loading branch information
goyalbhumika authored and bebarino committed Nov 2, 2017
1 parent 71bf5ab commit 37d2f45
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/clk/spear/clk-aux-synth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion drivers/clk/spear/spear1310_clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion drivers/clk/spear/spear1340_clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 37d2f45

Please sign in to comment.