Skip to content

Commit 7b34303

Browse files
javiercarrascocruzbebarino
authored andcommitted
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>
1 parent db8061e commit 7b34303

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/clk/nxp/clk-lpc32xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
#define LPC32XX_USB_CLK_CTRL 0xF4
6262
#define LPC32XX_USB_CLK_STS 0xF8
6363

64-
static struct regmap_config lpc32xx_scb_regmap_config = {
64+
static const struct regmap_config lpc32xx_scb_regmap_config = {
6565
.name = "scb",
6666
.reg_bits = 32,
6767
.val_bits = 32,

0 commit comments

Comments
 (0)