]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
clk: xilinx: Constify struct regmap_config
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>
Wed, 3 Jul 2024 09:50:23 +0000 (11:50 +0200)
committerStephen Boyd <sboyd@kernel.org>
Mon, 8 Jul 2024 20:32:26 +0000 (13:32 -0700)
`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>
drivers/clk/xilinx/xlnx_vcu.c

index 60a3ed7c7263bf10f8d4f326c3ee509a6dcc0cbe..d983fab12756a8aa497dbd34e1320aa46dbda6a3 100644 (file)
@@ -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,