Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: lpc32xx: Constify struct regmap_config

`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>

authored by

Javier Carrasco and committed by
Stephen Boyd
7b34303d db8061ef

+1 -1
+1 -1
drivers/clk/nxp/clk-lpc32xx.c
··· 61 61 #define LPC32XX_USB_CLK_CTRL 0xF4 62 62 #define LPC32XX_USB_CLK_STS 0xF8 63 63 64 - static struct regmap_config lpc32xx_scb_regmap_config = { 64 + static const struct regmap_config lpc32xx_scb_regmap_config = { 65 65 .name = "scb", 66 66 .reg_bits = 32, 67 67 .val_bits = 32,