Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: xilinx: Constify struct regmap_config

`vcu_settings_regmap_config` is not modified and can be declared as
const to move its data to a read-only section.

Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://lore.kernel.org/r/20240703-clk-const-regmap-v1-10-7d15a0671d6f@gmail.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Javier Carrasco and committed by
Stephen Boyd
db8061ef db469084

+1 -1
+1 -1
drivers/clk/xilinx/xlnx_vcu.c
··· 68 68 struct clk_hw_onecell_data *clk_data; 69 69 }; 70 70 71 - static struct regmap_config vcu_settings_regmap_config = { 71 + static const struct regmap_config vcu_settings_regmap_config = { 72 72 .name = "regmap", 73 73 .reg_bits = 32, 74 74 .val_bits = 32,