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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent db8061e commit 7b34303

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)