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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent db46908 commit db8061e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)