clk: palmas: constify clk_ops structure
The clk_ops structure is only stored in the ops field of clk_init_data structures. This field is const, so the clk_ops structure can be const as well. Identified and transformed using Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
This commit is contained in:
parent
25600dad41
commit
19aa8e32b9
|
@ -115,7 +115,7 @@ static int palmas_clks_is_prepared(struct clk_hw *hw)
|
|||
return !!(val & cinfo->clk_desc->enable_mask);
|
||||
}
|
||||
|
||||
static struct clk_ops palmas_clks_ops = {
|
||||
static const struct clk_ops palmas_clks_ops = {
|
||||
.prepare = palmas_clks_prepare,
|
||||
.unprepare = palmas_clks_unprepare,
|
||||
.is_prepared = palmas_clks_is_prepared,
|
||||
|
|
Loading…
Reference in New Issue