Skip to content

Commit 38bded8

Browse files
javiercarrascocruzbebarino
authored andcommitted
clk: sunxi-ng r40: Constify struct regmap_config
`sun8i_r40_ccu_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] Reviewed-by: Andre Przywara <[email protected]> Acked-by: Chen-Yu Tsai <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
1 parent c181b16 commit 38bded8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/sunxi-ng/ccu-sun8i-r40.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1292,7 +1292,7 @@ static bool sun8i_r40_ccu_regmap_accessible_reg(struct device *dev,
12921292
return false;
12931293
}
12941294

1295-
static struct regmap_config sun8i_r40_ccu_regmap_config = {
1295+
static const struct regmap_config sun8i_r40_ccu_regmap_config = {
12961296
.reg_bits = 32,
12971297
.val_bits = 32,
12981298
.reg_stride = 4,

0 commit comments

Comments
 (0)