mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
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 <javier.carrasco.cruz@gmail.com> Link: https://lore.kernel.org/r/20240703-clk-const-regmap-v1-9-7d15a0671d6f@gmail.com Reviewed-by: Andre Przywara <andre.przywara@arm.com> Acked-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
This commit is contained in:
parent
c181b16fcb
commit
38bded8154
@ -1292,7 +1292,7 @@ static bool sun8i_r40_ccu_regmap_accessible_reg(struct device *dev,
|
||||
return false;
|
||||
}
|
||||
|
||||
static struct regmap_config sun8i_r40_ccu_regmap_config = {
|
||||
static const struct regmap_config sun8i_r40_ccu_regmap_config = {
|
||||
.reg_bits = 32,
|
||||
.val_bits = 32,
|
||||
.reg_stride = 4,
|
||||
|
Loading…
Reference in New Issue
Block a user