Skip to content

Commit e8b4dd6

Browse files
javiercarrascocruzlag-linaro
authored andcommitted
mfd: wcd934x: Constify struct regmap_config
`wcd934x_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: Lee Jones <[email protected]>
1 parent 2f6a45c commit e8b4dd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mfd/wcd934x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ static const struct regmap_range_cfg wcd934x_ranges[] = {
109109
},
110110
};
111111

112-
static struct regmap_config wcd934x_regmap_config = {
112+
static const struct regmap_config wcd934x_regmap_config = {
113113
.reg_bits = 16,
114114
.val_bits = 8,
115115
.cache_type = REGCACHE_MAPLE,

0 commit comments

Comments
 (0)