summaryrefslogtreecommitdiffstats
path: root/drivers/regulator
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2015-07-07 13:21:44 +0200
committerMark Brown <broonie@kernel.org>2015-07-07 15:24:17 +0200
commitec8677267f4ef126275b2e0a429211b256f1a94a (patch)
tree1ea826715af245c0d14e0170a99bb86c36eae445 /drivers/regulator
parentLinux 4.2-rc1 (diff)
downloadlinux-ec8677267f4ef126275b2e0a429211b256f1a94a.tar.xz
linux-ec8677267f4ef126275b2e0a429211b256f1a94a.zip
regulator: ltc3589: Constify ltc3589_reg_defaults
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>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/ltc3589.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/ltc3589.c b/drivers/regulator/ltc3589.c
index 0ce8e4e0fa73..c31dfa8805d9 100644
--- a/drivers/regulator/ltc3589.c
+++ b/drivers/regulator/ltc3589.c
@@ -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 },