Skip to content

Commit db8061e

Browse files
javiercarrascocruzbebarino
authored andcommitted
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>
1 parent db46908 commit db8061e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/clk/xilinx/xlnx_vcu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ struct xvcu_device {
6868
struct clk_hw_onecell_data *clk_data;
6969
};
7070

71-
static struct regmap_config vcu_settings_regmap_config = {
71+
static const struct regmap_config vcu_settings_regmap_config = {
7272
.name = "regmap",
7373
.reg_bits = 32,
7474
.val_bits = 32,

0 commit comments

Comments
 (0)