Skip to content

Commit 9a17090

Browse files
javiercarrascocruzlag-linaro
authored andcommitted
mfd: tps6105x: Constify struct regmap_config
`tps6105x_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 e8b4dd6 commit 9a17090

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mfd/tps6105x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include <linux/mfd/core.h>
2424
#include <linux/mfd/tps6105x.h>
2525

26-
static struct regmap_config tps6105x_regmap_config = {
26+
static const struct regmap_config tps6105x_regmap_config = {
2727
.reg_bits = 8,
2828
.val_bits = 8,
2929
.max_register = TPS6105X_REG_3,

0 commit comments

Comments
 (0)