linux/drivers/clk/spear
Nishka Dasgupta f5c009dbf1 clk: spear: Make structure i2s_sclk_masks constant
Static structure i2s_sclk_masks, having type aux_clk_masks, is only used
when it is passed as the sixth argument to function clk_register_aux().
However, clk_register_aux() is defined with its sixth argument as const.
Hence i2s_sclk_masks is not modified by clk_register_aux, which is also
the only usage of the former. Therefore make i2s_sclk_masks constant as
it is never modified.
Issue found with Coccinelle.

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Link: https://lkml.kernel.org/r/20190813085714.8079-1-nishkadg.linux@gmail.com
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2019-09-06 10:27:40 -07:00
..
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
clk-aux-synth.c Merge branch 'clk-cleanup' into clk-next 2017-11-15 08:16:13 -08:00
clk-frac-synth.c clk: SPEAr: pr_err() strings should end with newlines 2017-12-06 22:39:57 -08:00
clk-gpt-synth.c SPEAr: clk: pr_err() strings should end with newlines 2017-12-06 22:39:59 -08:00
clk-vco-pll.c Merge branch 'clk-cleanup' into clk-next 2017-11-15 08:16:13 -08:00
clk.c Update Viresh Kumar's email address 2015-07-17 16:39:53 -07:00
clk.h CLK: SPEAr: make structure field and function argument as const 2017-11-01 23:22:32 -07:00
spear3xx_clock.c clk: spear: Remove CLK_IS_ROOT 2016-03-02 17:46:55 -08:00
spear6xx_clock.c clk: spear: fix WDT clock definition on SPEAr600 2018-04-06 13:45:34 -07:00
spear1310_clock.c CLK: SPEAr: make aux_clk_masks structures const 2017-11-01 23:23:01 -07:00
spear1340_clock.c clk: spear: Make structure i2s_sclk_masks constant 2019-09-06 10:27:40 -07:00