]> git.karo-electronics.de Git - linux-beck.git/commitdiff
regulator: ltc3589: Constify ltc3589_reg_defaults
authorAxel Lin <axel.lin@ingics.com>
Tue, 7 Jul 2015 11:21:44 +0000 (19:21 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 7 Jul 2015 13:24:17 +0000 (14:24 +0100)
ltc3589_reg_defaults[] is not modified after initialized, so make it const.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/ltc3589.c

index 0ce8e4e0fa7308dfd5056a0553ad7b5d9050b4a3..c31dfa8805d97e373c50d10be6ad7c4263699f27 100644 (file)
@@ -378,7 +378,7 @@ static bool ltc3589_volatile_reg(struct device *dev, unsigned int reg)
        return false;
 }
 
-static struct reg_default ltc3589_reg_defaults[] = {
+static const struct reg_default ltc3589_reg_defaults[] = {
        { LTC3589_SCR1,   0x00 },
        { LTC3589_OVEN,   0x00 },
        { LTC3589_SCR2,   0x00 },