summaryrefslogtreecommitdiffstats
path: root/drivers/clk/xilinx/xlnx_vcu.c
diff options
context:
space:
mode:
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>2024-07-03 11:50:23 +0200
committerStephen Boyd <sboyd@kernel.org>2024-07-08 22:32:26 +0200
commitdb8061ef919aade4c8a0e0b6aec5944de488b314 (patch)
treeaf8c4e7dec4240b3f613fde66b81ddad2189b24c /drivers/clk/xilinx/xlnx_vcu.c
parentdt-bindings: clock: sprd,sc9860-clk: convert to YAML (diff)
downloadlinux-db8061ef919aade4c8a0e0b6aec5944de488b314.tar.xz
linux-db8061ef919aade4c8a0e0b6aec5944de488b314.zip
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>
Diffstat (limited to 'drivers/clk/xilinx/xlnx_vcu.c')
-rw-r--r--drivers/clk/xilinx/xlnx_vcu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/xilinx/xlnx_vcu.c b/drivers/clk/xilinx/xlnx_vcu.c
index 60a3ed7c7263..d983fab12756 100644
--- a/drivers/clk/xilinx/xlnx_vcu.c
+++ b/drivers/clk/xilinx/xlnx_vcu.c
@@ -68,7 +68,7 @@ struct xvcu_device {
struct clk_hw_onecell_data *clk_data;
};
-static struct regmap_config vcu_settings_regmap_config = {
+static const struct regmap_config vcu_settings_regmap_config = {
.name = "regmap",
.reg_bits = 32,
.val_bits = 32,