clk: s2mps11: constify clk_ops structure

The clk_ops structure is only stored in the ops fields 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>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
This commit is contained in:
Julia Lawall 2018-10-27 07:47:40 +02:00 коммит произвёл Stephen Boyd
Родитель 5fc6eb7d74
Коммит 56950ff823
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -71,7 +71,7 @@ static unsigned long s2mps11_clk_recalc_rate(struct clk_hw *hw,
return 32768;
}
static struct clk_ops s2mps11_clk_ops = {
static const struct clk_ops s2mps11_clk_ops = {
.prepare = s2mps11_clk_prepare,
.unprepare = s2mps11_clk_unprepare,
.is_prepared = s2mps11_clk_is_prepared,