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

index d0f870eff0d6aec1ed5fd3319ab3529383a0befa..e00f270bc6aa813b395d9fddb15c6bcb2ded0936 100644 (file)
@@ -61,7 +61,7 @@
 #define LPC32XX_USB_CLK_CTRL           0xF4
 #define LPC32XX_USB_CLK_STS            0xF8
 
-static struct regmap_config lpc32xx_scb_regmap_config = {
+static const struct regmap_config lpc32xx_scb_regmap_config = {
        .name = "scb",
        .reg_bits = 32,
        .val_bits = 32,