]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
regulator: max77857: Constify struct regmap_config
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>
Thu, 4 Jul 2024 18:13:08 +0000 (20:13 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 4 Jul 2024 18:15:55 +0000 (19:15 +0100)
`max77857_remgap_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://patch.msgid.link/20240704-regulator-const-regmap-v1-2-bce0ddef63ea@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/max77857-regulator.c

index 145ad02818578570b54d456fe0892fef85a9111c..bc28dc8503a8705fa332ea68c1e545d396b8103d 100644 (file)
@@ -67,7 +67,7 @@ static bool max77857_volatile_reg(struct device *dev, unsigned int reg)
        }
 }
 
-static struct regmap_config max77857_regmap_config = {
+static const struct regmap_config max77857_regmap_config = {
        .reg_bits = 8,
        .val_bits = 8,
        .cache_type = REGCACHE_MAPLE,