]> git.baikalelectronics.ru Git - kernel.git/commit
clk: pxa: Constify static struct clk_ops
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Tue, 22 Sep 2020 18:47:15 +0000 (20:47 +0200)
committerStephen Boyd <sboyd@kernel.org>
Wed, 14 Oct 2020 02:49:11 +0000 (19:49 -0700)
commit1fbee253882ade20261bbedbed12a0ebee924fbf
tree8029f3de77786fb65bfa399b081f1298ccdd0bad
parentdd44bddf04c5fd83529b139fbfac0a5372c1a87d
clk: pxa: Constify static struct clk_ops

Constify a couple of static struct clk_ops that are not modified. Their
only usage is inside the macros and their address is passed to
clk_register_composite() which takes pointers to const struct clk_ops.
This allows the compiler to put them in read-only memory.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Link: https://lore.kernel.org/r/20200922184715.1854-1-rikard.falkeborn@gmail.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/pxa/clk-pxa.h